[{"name":"weaction_login","title":"WeAction Login","description":"Autentica na plataforma WeON.\n\nIMPORTANTE: Antes de autenticar, pergunte ao usuário:\n1. \"Você é agente, supervisor ou admin (acesso total)?\"\n\nMapeamento de roles:\n  - \"agent\"      → type: \"agent_member\"\n  - \"supervisor\" → type: \"supervisor\"\n  - \"admin\"      → type: null (acesso total)\n\nNAO pergunte org_unit_id antes do login — ele retorna automaticamente no response e e salvo.\norg_unit_id e org_unit_ids sao opcionais — omita-os ao chamar esta tool a menos que o usuario informe explicitamente.\n\nEndpoint: POST {base_url}/weaction-api/api/weon/v1/auth/login\nToken retornado no HEADER \"Authorization\" da resposta.\nSe retornar erro, NAO autentica e retorna a mensagem de erro.","inputSchema":{"type":"object","properties":{"base_url":{"type":"string","minLength":1,"description":"Base URL (ex: https://develop.weon.com.br) ou subdomain (ex: develop)"},"role":{"type":"string","enum":["agent","supervisor","admin"],"description":"Tipo de acesso: agent (atendente), supervisor, admin (acesso total)"},"identifier":{"type":"string","minLength":1,"description":"Identificador/login do usuário"},"password":{"type":"string","minLength":1,"description":"Senha"},"org_unit_id":{"type":"integer","description":"Opcional. ID da unidade organizacional — retorna automaticamente no response do login. So informe se o usuario fornecer explicitamente."},"org_unit_ids":{"type":"array","items":{"type":"integer"},"description":"Opcional. IDs de multiplas unidades para supervisor. So informe se o usuario fornecer explicitamente."}},"required":["base_url","role","identifier","password"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_auth_status","title":"WeAction Auth Status","description":"Verifica o status atual de autenticação. Não expõe o token.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_init","title":"WeAction Init (Copilot)","description":"Inicializa a partir de uma sessão de browser já autenticada no WeON. Injeta token diretamente.","inputSchema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"description":"Base URL (ex: https://develop.weon.com.br)"},"token":{"type":"string","minLength":1,"description":"Bearer token da sessão existente"}},"required":["url","token"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_set_token","title":"WeAction Set Token","description":"Injeta um Bearer token diretamente (override manual).","inputSchema":{"type":"object","properties":{"token":{"type":"string","minLength":1},"base_url":{"type":"string","description":"Base URL ou subdomain"}},"required":["token"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_logout","title":"WeAction Logout","description":"Remove o token da sessao. Base URL e preservada.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_users","title":"WeAction List Users","description":"List all users (agents) in the WeON system with their status per channel.\n\nReturns user id, name, email, and status object with per-channel status:\n- \"available\" → user is available\n- \"busy\"       → user is in an active attendance\n- \"pause (reason)\" → user is paused (reason may be included)\n- \"offline\"    → user is not online in that channel\n\nChannels: whatsapp, chat, voice\n\nArgs:\n  - user_id (string, optional): Filter to a single user by ID\n\nReturns JSON array of users.","inputSchema":{"type":"object","properties":{"user_id":{"type":"string","description":"Filter to a specific user ID"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_pause_user","title":"WeAction Pause User","description":"Put one or more users into pause state.\n\nArgs:\n  - user_ids (array of strings): IDs of users to pause\n  - pause_id (string, optional): ID of the pause type/reason\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Array of user IDs to pause"},"pause_id":{"type":"string","description":"Pause type ID (reason for pause)"}},"required":["user_ids"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_unpause_user","title":"WeAction Unpause User","description":"Remove pause state from one or more users (make them available again).\n\nArgs:\n  - user_ids (array of strings): IDs of users to unpause\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Array of user IDs to unpause"}},"required":["user_ids"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_disconnect_user","title":"WeAction Disconnect User","description":"Force disconnect one or more users from the WeON platform.\n\nArgs:\n  - user_ids (array of strings): IDs of users to disconnect\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Array of user IDs to disconnect"}},"required":["user_ids"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_pauses","title":"WeAction List Pause Types","description":"List all configured pause types/reasons in the system.\n\nReturns pause id, name, and other configuration properties.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_user_events","title":"WeAction User Events","description":"Retrieve pause, login, and attendance events for voice and WhatsApp channels.\n\nUseful for auditing agent activity, calculating time-in-state, and building reports.\n\nArgs:\n  - start_date (string, optional): Start date filter (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date filter (YYYY-MM-DD hh:mm:ss)\n  - user_ids (array of strings, optional): Filter by user IDs\n\nReturns array of event objects.","inputSchema":{"type":"object","properties":{"start_date":{"type":"string","description":"Start date (YYYY-MM-DD hh:mm:ss)"},"end_date":{"type":"string","description":"End date (YYYY-MM-DD hh:mm:ss)"},"user_ids":{"type":"array","items":{"type":"string"},"description":"Filter by user IDs"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_agent_status_times","title":"WeAction Agent Status Times","description":"Get time-based status listing for agents (CPJ integration).\n\nReturns detailed time breakdowns per agent status (available, busy, pause, offline).\nUseful for productivity and SLA reports.\n\nArgs:\n  - start_date (string, optional): Start date (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date (YYYY-MM-DD hh:mm:ss)\n\nReturns array of agent time objects.","inputSchema":{"type":"object","properties":{"start_date":{"type":"string","description":"Start date (YYYY-MM-DD hh:mm:ss)"},"end_date":{"type":"string","description":"End date (YYYY-MM-DD hh:mm:ss)"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_jobs","title":"WeAction List Active Attendances (Jobs)","description":"List the active attendances (jobs) of an agent, paginated.\n\nPOST /v1/agents/{agent_id}/jobs/active/paginated\n\nReturns: { agentId, attendances[], total, totalPages, currentPage, offset }.\nEach attendance includes id, protocol, channelAddress, contact, qualification,\nattendant, channel, group, campaign, type, times and status.\n\nArgs:\n  - agent_id (number, optional): Agent ID. Defaults to the logged-in agent (JWT sub).\n  - channels (array, optional): [\"voice\",\"chat\",\"whatsapp\"] (default: all three)\n  - only_events (\"Y\"|\"N\", optional): Only attendances with events (default: \"Y\")\n  - only_unread (\"Y\"|\"N\", optional): Only unread attendances (default: \"N\")\n  - per_page (number, optional): Results per page (default: 40)\n  - offset (number, optional): Pagination offset (default: 0)\n\nReturns the paginated list of active jobs.","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"Agent ID (defaults to logged-in agent)"},"channels":{"type":"array","items":{"type":"string","enum":["voice","chat","whatsapp"]},"description":"Channels filter (default: all)"},"only_events":{"type":"string","enum":["Y","N"],"description":"Only attendances with events (default \"Y\")"},"only_unread":{"type":"string","enum":["Y","N"],"description":"Only unread attendances (default \"N\")"},"per_page":{"type":"integer","minimum":1,"description":"Results per page (default 40)"},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default 0)"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_job","title":"WeAction Start Attendance","description":"Start a new attendance (job) in the WeON system.\n\nArgs:\n  - contact_id (string): ID of the contact for this attendance\n  - group_id (string): ID of the attendance group (queue)\n  - channel (string): Channel for the attendance (voice, whatsapp, chat)\n  - user_id (string, optional): Assign to a specific agent\n  - campaign_id (string, optional): Associate with a campaign\n\nReturns the created job object.","inputSchema":{"type":"object","properties":{"contact_id":{"type":"string","minLength":1,"description":"Contact ID"},"group_id":{"type":"string","minLength":1,"description":"Attendance group ID"},"channel":{"type":"string","enum":["voice","whatsapp","chat"],"description":"Channel"},"user_id":{"type":"string","description":"Assign to specific agent (user ID)"},"campaign_id":{"type":"string","description":"Associate with campaign ID"}},"required":["contact_id","group_id","channel"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_end_job","title":"WeAction End Attendance (Voice)","description":"End/hang up an active voice attendance (job).\n\nArgs:\n  - job_id (string): ID of the job/attendance to end\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"job_id":{"type":"string","minLength":1,"description":"Job/attendance ID to end"}},"required":["job_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_qualify_job","title":"WeAction Qualify/Register Attendance","description":"Register/qualify a completed attendance (tabulation).\n\nArgs:\n  - job_id (string): ID of the job/attendance to qualify\n  - qualification_id (string): ID of the qualification/disposition\n  - observation (string, optional): Free-text observation/note\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"job_id":{"type":"string","minLength":1,"description":"Job/attendance ID"},"qualification_id":{"type":"string","minLength":1,"description":"Qualification/disposition ID"},"observation":{"type":"string","description":"Free-text observation"}},"required":["job_id","qualification_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_qualify_external_activity","title":"WeAction Qualify External Activity","description":"Qualify/register an external activity (non-platform attendance).\n\nUsed for registering activities that happened outside the WeON platform\n(e.g. face-to-face contact, physical documents, etc.).\n\nArgs:\n  - qualification_id (string): Qualification ID\n  - contact_id (string, optional): Contact ID\n  - observation (string, optional): Free-text observation\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"qualification_id":{"type":"string","minLength":1,"description":"Qualification ID"},"contact_id":{"type":"string","description":"Contact ID"},"observation":{"type":"string","description":"Free-text observation"}},"required":["qualification_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_contact_history","title":"WeAction Histórico do Contato (jornada)","description":"Histórico de atendimentos/atividades de um contato (timeline), agrupado por data.\nGET /v1/contacts/history\n\nCada item traz: protocol, channel, agent_name, qualify_path (qualificação), attendanceGroupName,\ninit_date/final_date, attendance_type. USE para avaliar a jornada do contato (risco / oportunidade /\netapa de relacionamento) e gerar um resumo executivo. Para LER a conversa de um atendimento\nespecífico, use weaction_conversation_messages(protocol).\n\nArgs:\n  - contact_identifier (string): identificador do contato (não é o id; vem do contato/carteira)\n  - org_unit_id (number, opcional): default = do contexto\n  - initial_date / final_date (string, opcional): \"YYYY-MM-DD\" (default: últimos 90 dias)\n  - channel (string, opcional): filtrar canal\n  - page (number, opcional, default 1)","inputSchema":{"type":"object","properties":{"contact_identifier":{"type":"string","minLength":1,"description":"Identificador do contato"},"org_unit_id":{"type":"integer"},"initial_date":{"type":"string","description":"YYYY-MM-DD"},"final_date":{"type":"string","description":"YYYY-MM-DD"},"channel":{"type":"string"},"page":{"type":"integer"}},"required":["contact_identifier"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_conversation_messages","title":"WeAction Mensagens da Conversa (transcrição)","description":"Mensagens trocadas em um atendimento (transcrição da conversa).\nGET /v1/job/{protocol}/messages\n\nCada mensagem: created_at, from, to, message_type, message (texto), status.\nUSE para LER o teor da conversa e avaliar sentimento, risco, oportunidade ou resumir.\nPegue o 'protocol' do weaction_contact_history.\n\nArgs:\n  - protocol (string|number): protocolo do atendimento","inputSchema":{"type":"object","properties":{"protocol":{"type":["string","number"],"description":"Protocolo do atendimento"}},"required":["protocol"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_search_contacts","title":"WeAction Buscar Contatos (nome/telefone/whatsapp)","description":"Busca contatos da base por nome, TELEFONE ou WhatsApp (busca ampla = full_search).\nGET /v1/contacts?full_search={termo}\n\nUSE esta tool para ENCONTRAR/RESOLVER um contato citado pelo usuário — funciona por NOME e por NÚMERO\n(diferente de weaction_contact_filters_list, que filtra só por nome). Retorna o contato com id/identifier\npara usar em weaction_contact_history, weaction_create_task, etc.\n\nArgs:\n  - full_search (string): termo (nome, telefone ou whatsapp). Ex.: \"João\" ou \"5568985457736\"\n  - org_unit (number, opcional): default = do contexto\n  - per_page (number, opcional, default 20), page (number, opcional, default 1)","inputSchema":{"type":"object","properties":{"full_search":{"type":"string","minLength":1,"description":"Nome, telefone ou whatsapp do contato"},"agent_id":{"type":"integer","description":"ID do agente (default: logado)"},"per_page":{"type":"integer"},"page":{"type":"integer"}},"required":["full_search"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_contact","title":"WeAction Create Contact","description":"Create a new contact in the WeON system.\n\nArgs:\n  - name (string): Contact full name\n  - phone (string, optional): Phone number (used for WhatsApp/voice)\n  - email (string, optional): Email address\n  - channel_addresses (object, optional): Additional channel addresses (e.g. {\"whatsapp\": \"5511999999999\"})\n  - details (object, optional): Custom field values defined by the organization\n\nReturns the created contact object.","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Contact full name"},"phone":{"type":"string","description":"Phone number"},"email":{"type":"string","description":"Email address"},"channel_addresses":{"type":"object","additionalProperties":{"type":"string"},"description":"Channel addresses (e.g. {\"whatsapp\": \"5511999999999\"})"},"details":{"type":"object","additionalProperties":{},"description":"Custom fields defined by the organization"}},"required":["name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_update_contact","title":"WeAction Update Contact","description":"Update an existing contact's details in the WeON system.\n\nArgs:\n  - contact_id (string): ID of the contact to update\n  - name (string, optional): New name\n  - phone (string, optional): New phone number\n  - email (string, optional): New email address\n  - channel_addresses (object, optional): Updated channel addresses\n  - details (object, optional): Updated custom field values\n\nReturns the updated contact object.","inputSchema":{"type":"object","properties":{"contact_id":{"type":"string","minLength":1,"description":"Contact ID to update"},"name":{"type":"string","description":"New name"},"phone":{"type":"string","description":"New phone number"},"email":{"type":"string","description":"New email"},"channel_addresses":{"type":"object","additionalProperties":{"type":"string"},"description":"Updated channel addresses"},"details":{"type":"object","additionalProperties":{},"description":"Updated custom fields"}},"required":["contact_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_create_multiple_contacts","title":"WeAction Create Multiple Contacts","description":"Bulk create multiple contacts in a single request.\n\nArgs:\n  - contacts (array): Array of contact objects, each with:\n    - name (string, required): Contact name\n    - phone (string, optional): Phone number\n    - email (string, optional): Email\n    - channel_addresses (object, optional): Channel addresses\n    - details (object, optional): Custom fields\n\nReturns array of created contact results.","inputSchema":{"type":"object","properties":{"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Contact name"},"phone":{"type":"string"},"email":{"type":"string"},"channel_addresses":{"type":"object","additionalProperties":{"type":"string"}},"details":{"type":"object","additionalProperties":{}}},"required":["name"],"additionalProperties":false},"minItems":1,"description":"Array of contacts to create"}},"required":["contacts"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_groups","title":"WeAction List Groups","description":"List all attendance groups (queues) configured in the WeON system.\n\nReturns group id, name, channel, and current queue metrics.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_agent_attendance_groups","title":"WeAction Grupos de Atendimento do Agente","description":"Lista os grupos/filas de atendimento de UM agente (por-agente).\nGET /v1/attendance-group/agent?agent={id}\n\nCada grupo traz: id, name, channel (voice/whatsapp/chat), broadcastEnabled.\n\nUSE para descobrir o attendanceGroupId ao montar uma CAMPANHA / lista de transmissão\n(weaction_create_whatsapp_broadcast). Passe only_whatsapp_broadcast=true para receber\nAPENAS os grupos válidos para broadcast (channel='whatsapp' E broadcastEnabled=true) —\nexatamente o filtro que a UI aplica. O attendanceGroupId DEVE ser um desses.\n\nArgs:\n  - agent_id (string, opcional): ID do agente (default: agente logado)\n  - only_whatsapp_broadcast (boolean, opcional): filtra só grupos WhatsApp com broadcast habilitado","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: logado, via JWT)"},"only_whatsapp_broadcast":{"type":"boolean","description":"Só grupos WhatsApp com broadcast habilitado"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_group","title":"WeAction Create Group","description":"Create a new attendance group (queue) in the WeON system.\n\nArgs:\n  - name (string): Group name\n  - channel (string, optional): Associated channel (voice, whatsapp, chat)\n  - description (string, optional): Group description\n\nReturns the created group object.","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Group name"},"channel":{"type":"string","enum":["voice","whatsapp","chat"],"description":"Channel"},"description":{"type":"string","description":"Group description"}},"required":["name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_queue_abandonment_events","title":"WeAction Queue Abandonment Events","description":"Retrieve raw queue abandonment events — contacts who left the queue before being served.\n\nUseful for calculating abandonment rate, average wait time before abandon, and SLA impact.\n\nArgs:\n  - start_date (string, optional): Start date (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date (YYYY-MM-DD hh:mm:ss)\n  - groups (array of strings, optional): Filter by group IDs\n\nReturns array of queue abandonment event objects.","inputSchema":{"type":"object","properties":{"start_date":{"type":"string","description":"Start date (YYYY-MM-DD hh:mm:ss)"},"end_date":{"type":"string","description":"End date (YYYY-MM-DD hh:mm:ss)"},"groups":{"type":"array","items":{"type":"string"},"description":"Filter by group IDs"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_campaigns","title":"WeAction List Voice Campaigns","description":"List all voice campaigns configured in the WeON system.\n\nReturns campaign id, name, type, status, and configuration details.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_mailing","title":"WeAction List Mailing (Voice Campaign)","description":"List mailings for a specific voice campaign (group type).\n\nArgs:\n  - campaign_id (string): Campaign ID\n\nReturns array of mailing objects.","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1,"description":"Campaign ID"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_mailing","title":"WeAction Create Mailing (Voice Campaign - Group)","description":"Create a new mailing list for a voice group campaign.\n\nArgs:\n  - campaign_id (string): Campaign ID\n  - name (string): Mailing name\n  - description (string, optional): Description\n\nReturns the created mailing object.","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1,"description":"Campaign ID"},"name":{"type":"string","minLength":1,"description":"Mailing name"},"description":{"type":"string","description":"Mailing description"}},"required":["campaign_id","name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_create_mailing_telemensagem","title":"WeAction Create Mailing (URA/Audio Campaign)","description":"Create a new mailing for a URA or audio/telemensagem campaign.\n\nArgs:\n  - campaign_id (string): Campaign ID\n  - name (string): Mailing name\n  - description (string, optional): Description\n\nReturns the created mailing object.","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1,"description":"Campaign ID"},"name":{"type":"string","minLength":1,"description":"Mailing name"},"description":{"type":"string"}},"required":["campaign_id","name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_add_contacts_to_mailing","title":"WeAction Add Contacts to Mailing (Voice Campaign)","description":"Add contacts to a mailing list in a voice group campaign.\n\nArgs:\n  - campaign_id (string): Campaign ID\n  - mailing_id (string): Mailing ID\n  - contacts (array): Array of contact objects to add\n  - campaign_type (string): \"group\" for group campaigns or \"telemensagem\" for URA/audio\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1,"description":"Campaign ID"},"mailing_id":{"type":"string","minLength":1,"description":"Mailing ID"},"contacts":{"type":"array","items":{"type":"object","additionalProperties":{}},"minItems":1,"description":"Contacts to add"},"campaign_type":{"type":"string","enum":["group","telemensagem"],"default":"group","description":"Campaign type: 'group' or 'telemensagem'"}},"required":["campaign_id","mailing_id","contacts"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_remove_contacts_from_mailing","title":"WeAction Remove Contacts from Mailing","description":"Remove contacts from a mailing list in a voice campaign.\n\nArgs:\n  - campaign_id (string): Campaign ID\n  - mailing_id (string): Mailing ID\n  - contact_ids (array of strings): Contact IDs to remove\n\nReturns confirmation from the API.","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1},"mailing_id":{"type":"string","minLength":1},"contact_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Contact IDs to remove"}},"required":["campaign_id","mailing_id","contact_ids"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_dialer_logs","title":"WeAction Dialer Logs","description":"Retrieve dialer (auto-dialer) event logs from voice campaigns.\n\nUseful for analyzing dialer performance, connection rates, and campaign results.\n\nArgs:\n  - start_date (string, optional): Start date (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date (YYYY-MM-DD hh:mm:ss)\n  - campaign_id (string, optional): Filter to a specific campaign\n\nReturns array of dialer log events.","inputSchema":{"type":"object","properties":{"start_date":{"type":"string"},"end_date":{"type":"string"},"campaign_id":{"type":"string","description":"Filter to specific campaign"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_whatsapp_campaigns","title":"WeAction List WhatsApp Campaigns","description":"List all WhatsApp mass-send campaigns configured in the WeON system.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_whatsapp_mailing","title":"WeAction List WhatsApp Campaign Mailing","description":"List mailings for a specific WhatsApp campaign.\n\nArgs:\n  - campaign_id (string): WhatsApp campaign ID","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1,"description":"WhatsApp campaign ID"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_whatsapp_broadcast","title":"WeAction WhatsApp Broadcast (Lista de Transmissão)","description":"Dispara uma LISTA DE TRANSMISSÃO / campanha em lote de WhatsApp para vários contatos.\nPOST /v1/broadcast/whatsapp\n\nUse ESTA tool para \"campanha\", \"lista de transmissão\", \"enviar em lote\". (NÃO use\nweaction_create_whatsapp_mailing, que é outro fluxo e exige campaign_id.)\n\nCampos obrigatórios da instância (causam 422 se faltarem):\n  - template_id: ID do template de WhatsApp aprovado. Descubra com weaction_list_whatsapp_campaigns.\n  - attendance_group_id: ID do grupo/fila de atendimento. Descubra com weaction_list_groups.\n  - contacts: lista de contatos (cada um precisa de contactId e contactWhatsAppIdentifier).\n\nArgs:\n  - name (string): nome da lista de transmissão\n  - message (string): texto da mensagem (template message)\n  - template_id (number): ID do template WhatsApp\n  - attendance_group_id (number): ID do grupo/fila\n  - contacts (array): [{ contactId, contactWhatsAppIdentifier, contactName?, contactIdentifier?, disabled? }]\n  - media_url (string|null, opcional): URL de mídia\n  - agent_id (string, opcional): default = agente logado","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Nome da lista de transmissão"},"message":{"type":"string","minLength":1,"description":"Texto da mensagem (template message)"},"template_id":{"type":"integer","description":"ID do template de WhatsApp (obrigatório)"},"attendance_group_id":{"type":"integer","description":"ID do grupo/fila de atendimento (obrigatório)"},"contacts":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":"integer","description":"ID interno do contato"},"contactWhatsAppIdentifier":{"type":"string","minLength":1,"description":"Número WhatsApp, ex.: 5511986824466"},"contactName":{"type":"string"},"contactIdentifier":{"type":"string"},"disabled":{"type":"boolean"}},"required":["contactId","contactWhatsAppIdentifier"],"additionalProperties":false},"minItems":1,"description":"Contatos da transmissão"},"media_url":{"type":["string","null"],"description":"URL de mídia (opcional)"},"agent_id":{"type":"string","description":"ID do agente (default: logado)"}},"required":["name","message","template_id","attendance_group_id","contacts"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_whatsapp_broadcasts","title":"WeAction Listar Transmissões + status (lido/respondeu)","description":"Lista as listas de transmissão (campanhas) de WhatsApp do agente, COM o status de cada envio.\nGET /v1/broadcast/whatsapp/agent/{agent_id}\n\nStatus por contato: QUEUED, SENDING, SENT, DELIVERED, READ (lido), ANSWERED (respondeu),\ne vários ERROR_* (falhas: sessão expirada, sem opt-in, etc.).\nUSE para responder \"quantos leram / responderam / falharam\" numa campanha.\n\nArgs:\n  - broadcast_id (number, opcional): filtra uma transmissão específica\n  - summarize (boolean, opcional, default true): devolve contagem por status (enxuto);\n    false devolve o payload completo (pode truncar se grande)\n  - agent_id (number, opcional): default = agente logado","inputSchema":{"type":"object","properties":{"broadcast_id":{"type":"integer","description":"Filtra uma transmissão específica"},"summarize":{"type":"boolean","description":"Resumo por status (default true)"},"agent_id":{"type":"integer","description":"ID do agente (default: logado)"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_search_broadcast_contacts","title":"WeAction Buscar Contatos p/ Transmissão","description":"Busca contatos do agente para montar a lista de uma CAMPANHA/transmissão.\nGET /v1/contacts?agent={agent_id}&name={query}&broadcast=false\n\nRetorna cada contato JÁ no formato esperado por weaction_create_whatsapp_broadcast:\n{ contactId, contactWhatsAppIdentifier, contactName, contactIdentifier }.\nUse o resultado direto no campo 'contacts' do broadcast.\n\nArgs:\n  - query (string): termo de busca (nome do contato)\n  - agent_id (number, opcional): default = agente logado","inputSchema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Termo de busca (nome do contato)"},"agent_id":{"type":"integer","description":"ID do agente (default: logado)"}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_whatsapp_templates","title":"WeAction Templates de WhatsApp (Gupshup) por Grupo","description":"Lista os templates de WhatsApp (preset messages) disponíveis para um grupo/fila.\nGET /v1/gupshup/templates/group/{attendance_group_id}\n\nUSE para descobrir o template_id ao montar uma CAMPANHA (weaction_create_whatsapp_broadcast).\nCada item retornado tem 'preset_message_id' — ESSE é o valor a passar como template_id\nno broadcast. Também traz preset_message_name e preset_message_description (o texto).\n\nFluxo de campanha: (1) weaction_list_agent_attendance_groups(only_whatsapp_broadcast=true)\n→ pega o attendance_group_id; (2) ESTA tool com esse grupo → pega o template_id;\n(3) weaction_create_whatsapp_broadcast.\n\nArgs:\n  - attendance_group_id (number): ID do grupo/fila","inputSchema":{"type":"object","properties":{"attendance_group_id":{"type":"integer","description":"ID do grupo/fila"}},"required":["attendance_group_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_whatsapp_mailing","title":"WeAction Create WhatsApp Mailing","description":"Create a mailing list for a WhatsApp campaign.\n\nArgs:\n  - campaign_id (string): WhatsApp campaign ID\n  - name (string): Mailing name","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"description":"Mailing name"}},"required":["campaign_id","name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_add_contact_to_whatsapp_mailing","title":"WeAction Add Contact to WhatsApp Mailing","description":"Add a contact to a WhatsApp campaign mailing list.\n\nArgs:\n  - campaign_id (string): WhatsApp campaign ID\n  - mailing_id (string): Mailing ID\n  - contact (object): Contact data to add","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1},"mailing_id":{"type":"string","minLength":1},"contact":{"type":"object","additionalProperties":{},"description":"Contact data to add"}},"required":["campaign_id","mailing_id","contact"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_remove_contact_from_whatsapp_mailing","title":"WeAction Remove Contact from WhatsApp Mailing","description":"Remove a contact from a WhatsApp campaign mailing list.\n\nArgs:\n  - campaign_id (string): Campaign ID\n  - mailing_id (string): Mailing ID\n  - contact_id (string): Contact ID to remove","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"string","minLength":1},"mailing_id":{"type":"string","minLength":1},"contact_id":{"type":"string","minLength":1,"description":"Contact ID to remove"}},"required":["campaign_id","mailing_id","contact_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_send_whatsapp_message","title":"WeAction Send WhatsApp Message","description":"Send a WhatsApp message through the WeON platform.\n\nArgs:\n  - to (string): Recipient phone number (with country code, e.g. \"5511999999999\")\n  - message (string): Text message content\n  - template_id (string, optional): Template ID for template messages (HSM)\n  - template_params (array of strings, optional): Parameters to fill the template\n  - media_url (string, optional): URL of media to attach (image, document, audio, video)\n  - media_type (string, optional): Media type: \"image\", \"document\", \"audio\", \"video\"\n  - channel_id (string, optional): Specific WhatsApp channel/number to send from\n\nReturns message ID and delivery status from the API.","inputSchema":{"type":"object","properties":{"to":{"type":"string","minLength":1,"description":"Recipient phone number with country code (e.g. 5511999999999)"},"message":{"type":"string","description":"Text message content"},"template_id":{"type":"string","description":"Template ID for HSM/template messages"},"template_params":{"type":"array","items":{"type":"string"},"description":"Template parameter values"},"media_url":{"type":"string","format":"uri","description":"URL of media attachment"},"media_type":{"type":"string","enum":["image","document","audio","video"],"description":"Media type"},"channel_id":{"type":"string","description":"Specific WhatsApp channel to send from"}},"required":["to"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_start_bot_flow","title":"WeAction Start Bot Flow","description":"Trigger the start of a bot attendance flow for a contact on WhatsApp.\n\nUsed to proactively initiate a bot conversation with a contact.\n\nArgs:\n  - phone (string): Contact phone number (with country code)\n  - bot_id (string, optional): Specific bot ID to trigger\n  - group_id (string, optional): Attendance group to route to after bot\n\nReturns confirmation and the created attendance session.","inputSchema":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"description":"Contact phone number with country code"},"bot_id":{"type":"string","description":"Bot ID to trigger"},"group_id":{"type":"string","description":"Group to route after bot completion"}},"required":["phone"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_whatsapp_message_status","title":"WeAction WhatsApp Message Status","description":"Check the delivery status of sent WhatsApp messages.\n\nQueries the queue-events endpoint to get current status (sent, delivered, read, failed).\n\nArgs:\n  - message_id (string, optional): Specific message ID to check\n  - start_date (string, optional): Start date for status query (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date for status query\n\nReturns array of message status events.","inputSchema":{"type":"object","properties":{"message_id":{"type":"string","description":"Specific message ID"},"start_date":{"type":"string","description":"Start date (YYYY-MM-DD hh:mm:ss)"},"end_date":{"type":"string","description":"End date"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_whatsapp_history","title":"WeAction WhatsApp Attendance History","description":"Retrieve the full message history for a WhatsApp attendance by protocol number.\n\nReturns all messages exchanged during the attendance, including timestamps, direction\n(inbound/outbound), media attachments, and agent/bot info.\n\nArgs:\n  - protocol (string): Attendance protocol number\n\nReturns array of message objects for the attendance.","inputSchema":{"type":"object","properties":{"protocol":{"type":"string","minLength":1,"description":"Attendance protocol number"}},"required":["protocol"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_conversation_logs","title":"WeAction List Conversation Logs","description":"Retrieve real-time messages and recordings from WeON attendances.\n\nReturns detailed conversation content including messages, media, and call recordings.\nUseful for quality monitoring, transcription review, and compliance auditing.\n\nArgs:\n  - start_date (string, optional): Start date (YYYY-MM-DD hh:mm:ss)\n  - end_date (string, optional): End date (YYYY-MM-DD hh:mm:ss)\n  - job_ids (array of strings, optional): Filter by specific attendance (job) IDs\n  - protocols (array of strings, optional): Filter by protocol numbers\n  - channels (array of strings, optional): Filter by channel: \"voice\", \"whatsapp\", \"chat\"\n  - users (array of strings, optional): Filter by agent user IDs\n  - groups (array of strings, optional): Filter by group IDs\n  - include (array of strings, optional): Show only these properties\n  - exclude (array of strings, optional): Exclude these properties\n\nReturns array of conversation log objects.","inputSchema":{"type":"object","properties":{"start_date":{"type":"string","description":"Start date (YYYY-MM-DD hh:mm:ss)"},"end_date":{"type":"string","description":"End date (YYYY-MM-DD hh:mm:ss)"},"job_ids":{"type":"array","items":{"type":"string"},"description":"Filter by attendance IDs"},"protocols":{"type":"array","items":{"type":"string"},"description":"Filter by protocol numbers"},"channels":{"type":"array","items":{"type":"string","enum":["voice","whatsapp","chat"]},"description":"Filter by channel"},"users":{"type":"array","items":{"type":"string"},"description":"Filter by agent user IDs"},"groups":{"type":"array","items":{"type":"string"},"description":"Filter by group IDs"},"include":{"type":"array","items":{"type":"string"},"description":"Include only these properties"},"exclude":{"type":"array","items":{"type":"string"},"description":"Exclude these properties"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_qualifications","title":"WeAction List Qualification Trees","description":"List all qualification (tabulation/disposition) trees configured in the WeON system.\n\nQualifications are used to categorize attendance outcomes (e.g. \"Sale\", \"No contact\",\n\"Callback scheduled\"). Each qualification has a type: POSITIVE, NEUTRAL, or NEGATIVE.\n\nReturns array of qualification tree objects with their full path structure.","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_qualification","title":"WeAction Create Qualification / Service Channel","description":"Create a new qualification (disposition/tabulation) or service channel configuration.\n\nArgs:\n  - name (string): Qualification name\n  - type (string): Qualification type: \"POSITIVE\", \"NEUTRAL\", or \"NEGATIVE\"\n  - parent_id (string, optional): Parent qualification ID (for tree structure)\n  - description (string, optional): Description\n\nReturns the created qualification object.","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Qualification name"},"type":{"type":"string","enum":["POSITIVE","NEUTRAL","NEGATIVE"],"description":"Qualification type"},"parent_id":{"type":"string","description":"Parent qualification ID for nested tree"},"description":{"type":"string","description":"Description"}},"required":["name","type"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_integrations","title":"WeAction Listar Integrações [INTERNO]","description":"[INTERNO] Lista todas as integrações disponíveis. Filtro opcional por nome.\nGET /v1/integrations","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Filtrar por nome da integração"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_get_integration_instance","title":"WeAction Get Instância Integração [INTERNO]","description":"[INTERNO] Retorna detalhes de uma instância de integração.\nGET /v1/integrations/instances/{id}","inputSchema":{"type":"object","properties":{"instance_id":{"type":"integer","description":"ID da instância"}},"required":["instance_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_update_integration_status","title":"WeAction Habilitar/Desabilitar Integração [INTERNO]","description":"[INTERNO] Altera status de uma instância de integração (CONNECTED, DISCONNECTED).\nPATCH /v1/integrations/instances/{id}/status","inputSchema":{"type":"object","properties":{"instance_id":{"type":"integer"},"status":{"type":"string","enum":["CONNECTED","DISCONNECTED"],"description":"Novo status"}},"required":["instance_id","status"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_update_integration_actions","title":"WeAction Atualizar Ações Integração [INTERNO]","description":"[INTERNO] Atualiza as ações associadas a uma instância.\nPATCH /v1/integrations/instances/{id}/actions","inputSchema":{"type":"object","properties":{"instance_id":{"type":"integer"},"actions":{"type":"array","items":{"type":"number"},"description":"Array de IDs de ações"}},"required":["instance_id","actions"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_get_integration_change_logs","title":"WeAction Histórico de Alterações Integração [INTERNO]","description":"[INTERNO] Histórico de alterações de uma instância de integração.\nGET /v1/integrations/instances/{id}/change-logs","inputSchema":{"type":"object","properties":{"instance_id":{"type":"integer"},"per_page":{"type":"integer","default":20},"page":{"type":"integer","default":1}},"required":["instance_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_get_integration_action_logs","title":"WeAction Histórico de Ações Integração [INTERNO]","description":"[INTERNO] Histórico de execução de ações de uma instância.\nGET /v1/integrations/instances/{id}/actions/logs","inputSchema":{"type":"object","properties":{"instance_id":{"type":"integer"},"per_page":{"type":"integer","default":50},"page":{"type":"integer","default":1},"start_date":{"type":"string","description":"Formato: YYYY-MM-DD HH:mm:ss"},"end_date":{"type":"string","description":"Formato: YYYY-MM-DD HH:mm:ss"},"status":{"type":"string"}},"required":["instance_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_whatsapp_volumetry","title":"WeAction Volumetria WhatsApp [INTERNO]","description":"[INTERNO] Volumetria de atendimentos WhatsApp por agente.\nGET /v1/agents/{id}/whatsapp/volumetry","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente"},"start":{"type":"string","description":"Data início (YYYY-MM-DD)"},"end":{"type":"string","description":"Data fim (YYYY-MM-DD)"},"report_type":{"type":"string","enum":["daily","hourly"],"default":"daily"}},"required":["agent_id","start","end"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_voice_volumetry","title":"WeAction Volumetria Voz [INTERNO]","description":"[INTERNO] Volumetria de atendimentos de voz por agente.\nGET /v1/agents/{id}/voice/volumetry","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente"},"start":{"type":"string","description":"Data início (YYYY-MM-DD)"},"end":{"type":"string","description":"Data fim (YYYY-MM-DD)"},"report_type":{"type":"string","enum":["daily","hourly"],"default":"daily"}},"required":["agent_id","start","end"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_whatsapp_average_times","title":"WeAction Tempos Médios WhatsApp [INTERNO]","description":"[INTERNO] Tempos médios de atendimento WhatsApp por agente.\nGET /v1/agents/{id}/whatsapp/average-times","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente"},"start":{"type":"string","description":"Data início (YYYY-MM-DD)"},"end":{"type":"string","description":"Data fim (YYYY-MM-DD)"},"report_type":{"type":"string","enum":["daily","hourly"],"default":"daily"}},"required":["agent_id","start","end"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_voice_average_times","title":"WeAction Tempos Médios Voz [INTERNO]","description":"[INTERNO] Tempos médios de atendimento de voz por agente.\nGET /v1/agents/{id}/voice/average-times","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente"},"start":{"type":"string","description":"Data início (YYYY-MM-DD)"},"end":{"type":"string","description":"Data fim (YYYY-MM-DD)"},"report_type":{"type":"string","enum":["daily","hourly"],"default":"daily"}},"required":["agent_id","start","end"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_get_employer","title":"WeAction Get Employer [INTERNO]","description":"[INTERNO] Retorna dados de uma empresa (employer).\nGET /v1/employers/{id}","inputSchema":{"type":"object","properties":{"employer_id":{"type":"integer","description":"ID do employer"}},"required":["employer_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_delete_employer","title":"WeAction Remover Employer [INTERNO]","description":"[INTERNO] Remove uma empresa (employer).\nDELETE /v1/employers/{id}","inputSchema":{"type":"object","properties":{"employer_id":{"type":"integer"}},"required":["employer_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_employer_attendance_summary","title":"WeAction Contexto Empresa - Resumo Atendimentos [INTERNO]","description":"[INTERNO] Resumo de atendimentos por grupos de uma empresa.\nGET /v1/employers/{id}/attendances/groups-summary","inputSchema":{"type":"object","properties":{"employer_id":{"type":"integer"},"start_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"end_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"}},"required":["employer_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_contact_attendance_summary","title":"WeAction Contexto Contato - Resumo Atendimentos [INTERNO]","description":"[INTERNO] Resumo de atendimentos por grupos de um contato.\nGET /v1/contacts/{id}/attendances/groups-summary","inputSchema":{"type":"object","properties":{"contact_id":{"type":"integer"},"start_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"end_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"}},"required":["contact_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_carteira_history_insights","title":"WeAction Insights da Carteira por Histórico","description":"Analisa o HISTÓRICO de uma AMOSTRA de contatos da carteira (atendimentos + tarefas)\ne devolve um digest compacto por contato — tudo numa ÚNICA chamada (busca os históricos\nserver-side). Base para insights operacionais REAIS (risco / oportunidade / relacionamento).\n\nPara cada contato: scores (churn/receita/nps/dias) + resumo do histórico (total de atividades,\natendimentos, tarefas, última atividade, qualificações recentes, canais).\nCom esse digest, monte \"top N em risco / top N oportunidades\" e recomendações — SEM precisar\nbuscar contato por contato (não entra em loop).\n\nArgs:\n  - segment (\"inactive\"|\"risk\"|\"active\", default \"inactive\"): de onde tirar a amostra\n  - sample_size (number, default 80, máx 80): quantos contatos analisar. Analisa TODOS do\n    segmento até o teto de 80; se houver mais, pega só os 80 primeiros (não entra em loop).\n  - agent_id (number, opcional), org_unit_id (number, opcional)","inputSchema":{"type":"object","properties":{"segment":{"type":"string","enum":["inactive","risk","active"]},"sample_size":{"type":"integer","minimum":1,"maximum":80},"agent_id":{"type":"integer"},"org_unit_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_kpi","title":"WeAction Carteira - KPI Contatos [INTERNO]","description":"[INTERNO] KPI de contatos na carteira do agente.\nPOST /v1/agents/{id}/portfolio","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer"}},"required":["agent_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_list","title":"WeAction Carteira - Listar Contatos [INTERNO]","description":"[INTERNO] Lista todos os contatos da carteira do agente com paginação e ordenação.\nPOST /v1/agents/{id}/portfolio/list","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_active","title":"WeAction Carteira - Contatos Ativos [INTERNO]","description":"[INTERNO] Contatos ativos na carteira do agente.\nPOST /v1/agents/{id}/portfolio/active","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_risk","title":"WeAction Carteira - Contatos de Risco [INTERNO]","description":"[INTERNO] Contatos em risco na carteira do agente.\nPOST /v1/agents/{id}/portfolio/risk","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_inactive","title":"WeAction Carteira - Contatos Adormecidos [INTERNO]","description":"[INTERNO] Contatos inativos/adormecidos na carteira do agente.\nPOST /v1/agents/{id}/portfolio/inactive","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"},"days_ago":{"type":"integer","description":"Dias sem contato"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_employer_kpi","title":"WeAction Carteira - KPI Empresa [INTERNO]","description":"[INTERNO] KPI de empresas na carteira do agente.\nPOST /v1/agents/{id}/portfolio/employer","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer"}},"required":["agent_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_employer_list","title":"WeAction Carteira - Listar Empresas [INTERNO]","description":"[INTERNO] Lista empresas da carteira do agente com filtros avançados.\nPOST /v1/agents/{id}/portfolio/employer/list","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_portfolio_employer_risk","title":"WeAction Carteira - Empresas de Risco [INTERNO]","description":"[INTERNO] Empresas em risco na carteira do agente.\nPOST /v1/agents/{id}/portfolio/employer/risk","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID do agente (default: agente logado, resolvido pelo token)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"order_by":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"type":"string","enum":["asc","desc","ASC","DESC"]}},"required":["name","order"],"additionalProperties":false}},"filters":{"description":"Filtros avançados"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_contact_rating_summary","title":"WeAction Contatos - Resumo Rating [INTERNO]","description":"[INTERNO] Resumo de rating de atendimento de um contato.\nGET /v1/contacts/{id}/attendance-rating/summary","inputSchema":{"type":"object","properties":{"contact_id":{"type":"integer"},"date_start":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"date_end":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"}},"required":["contact_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_contact_filters","title":"WeAction Listar Filtros de Contato por Agente [INTERNO]","description":"[INTERNO] Lista os filtros de contato salvos para um agente.\nGET /v1/template/contact-filters/agent/{id}","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer"}},"required":["agent_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_custom_filters_list","title":"WeAction Filtros Customizados - Listar [INTERNO]","description":"[INTERNO] Lista os filtros customizados de contato disponiveis para o org_unit do usuario logado.\nGET /v1/template/contact-filters/{org_unit_id}\n\nUSE ESTE TOOL quando o usuario perguntar sobre filtros de contato disponiveis, ou antes de weaction_contact_filters_list para descobrir quais filter_ids existem.\nRetorna: id, nome e configuracao de cada filtro customizado criado na plataforma.","inputSchema":{"type":"object","properties":{"org_unit_id":{"type":"integer","description":"ID da unidade organizacional (usa o do login se omitido)"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_contact_filters_list","title":"WeAction Contatos - Listar Contatos [INTERNO]","description":"[INTERNO] TOOL PRINCIPAL para listar contatos da plataforma WeON.\nUSE ESTE TOOL sempre que o usuario pedir para: listar contatos, buscar contatos, ver contatos, filtrar contatos.\n\nGET /v1/template/contact-filters/contacts/{filter_id}?org_unit={id}\n\nComportamento:\n- filter_id=0 (padrao): lista TODOS os contatos sem filtro customizado\n- filter_id=N: aplica filtro customizado criado na plataforma\n- org_unit: preenchido automaticamente pelo login\n- Use weaction_custom_filters_list primeiro para descobrir filtros disponiveis","inputSchema":{"type":"object","properties":{"filter_id":{"type":"integer","default":0,"description":"ID do filtro customizado (0 = sem filtro, lista todos os contatos)"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"search":{"type":"string","description":"Busca por nome, telefone, etc."},"org_unit":{"type":"integer","description":"ID da unidade organizacional (usa o do login se omitido)"},"order_by":{"type":"string","default":"id","description":"Campo para ordenacao"},"order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_history_dept_whatsapp","title":"WeAction Histórico Dept WhatsApp [INTERNO]","description":"[INTERNO] Histórico de atendimentos WhatsApp por departamento.\nPOST /v1/supervisor/history/department/whatsapp","inputSchema":{"type":"object","properties":{"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"start_date":{"type":"string"},"end_date":{"type":"string"},"department_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_history_dept_voice","title":"WeAction Histórico Dept Voz [INTERNO]","description":"[INTERNO] Histórico de atendimentos de voz por departamento.\nPOST /v1/supervisor/history/department/voice","inputSchema":{"type":"object","properties":{"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"start_date":{"type":"string"},"end_date":{"type":"string"},"department_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_search_attendances","title":"WeAction Buscar Atendimentos [INTERNO]","description":"[INTERNO] Busca atendimentos com filtros avançados.\nPOST /v1/attendances/search","inputSchema":{"type":"object","properties":{"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1},"start_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"end_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"agent_id":{"type":"integer"},"department_id":{"type":"integer"},"contact_id":{"type":"integer"},"channel":{"type":"string","description":"whatsapp, voice, etc."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_monitoring_dashboard_agent","title":"WeAction Monitoria Dashboard Agente [INTERNO]","description":"[INTERNO] Dashboard de monitoria por agente.\nPOST /v1/monitoring/dashboard/agent","inputSchema":{"type":"object","properties":{"agent_id":{"type":"integer"},"start_date":{"type":"string"},"end_date":{"type":"string"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_monitoring_analysis","title":"WeAction Monitoria - Análise [INTERNO]","description":"[INTERNO] Cria uma análise de monitoria.\nPOST /v1/monitoring/analysis","inputSchema":{"type":"object","properties":{"attendance_id":{"type":"integer"},"evaluation_model_id":{"type":"integer"},"topics":{}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_monitoring_evaluation_models","title":"WeAction Monitoria - Modelos de Avaliação [INTERNO]","description":"[INTERNO] Lista modelos de avaliação de monitoria.\nPOST /v1/monitoring/evaluation-models","inputSchema":{"type":"object","properties":{"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_supervisor_agents_kpi","title":"WeAction Supervisor - KPI Agentes [INTERNO]","description":"[INTERNO] KPI de agentes supervisionados por um supervisor.\nPOST /v1/supervisor/{identifier}/agents/kpi","inputSchema":{"type":"object","properties":{"supervisor_identifier":{"type":"string","description":"Identifier (login) do supervisor"},"start_date":{"type":"string"},"end_date":{"type":"string"}},"required":["supervisor_identifier"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_supervisor_agents_performance","title":"WeAction Supervisor - Performance Agentes [INTERNO]","description":"[INTERNO] Performance dos agentes supervisionados.\nPOST /v1/supervisor/{identifier}/agents/performance","inputSchema":{"type":"object","properties":{"supervisor_identifier":{"type":"string","description":"Identifier (login) do supervisor"},"start_date":{"type":"string"},"end_date":{"type":"string"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1}},"required":["supervisor_identifier"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_department_dashboard_statistics","title":"WeAction Dashboard Estatísticas Departamento [INTERNO]","description":"[INTERNO] Estatísticas do dashboard por departamento.\nPOST /v1/department/dashboard/statistics","inputSchema":{"type":"object","properties":{"department_id":{"type":"integer"},"start_date":{"type":"string"},"end_date":{"type":"string"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_supervisor_dashboard","title":"WeAction Supervisor - Dashboard Agente [INTERNO]","description":"[INTERNO] Dashboard em tempo real do agente supervisionado.\nPOST /v1/supervisor/{identifier}/agentDashboard","inputSchema":{"type":"object","properties":{"supervisor_identifier":{"type":"string","description":"Identifier (login) do supervisor"}},"required":["supervisor_identifier"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_dialer_statistics","title":"WeAction Discador - Estatísticas [INTERNO]","description":"[INTERNO] Estatísticas em tempo real do discador de uma campanha.\nGET /v1/campaign-dialer/{id}/dialer/statistics","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"integer"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_dialer_qualifications","title":"WeAction Discador - Qualificações [INTERNO]","description":"[INTERNO] Lista as qualificações disponíveis para uma campanha discador.\nGET /v1/campaign-dialer/{id}/qualifications","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"integer"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_dialer_call_history","title":"WeAction Discador - Histórico de Chamadas [INTERNO]","description":"[INTERNO] Histórico de chamadas de uma campanha discador.\nGET /v1/campaign-dialer/history/calls/campaign/{id}","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"integer"},"per_page":{"type":"integer","default":25},"page":{"type":"integer","default":1}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_dialer_strategy_results","title":"WeAction Discador - Resultados por Estratégia [INTERNO]","description":"[INTERNO] Resultados consolidados de uma campanha por estratégia.\nGET /v1/campaign-dialer/results/strategycampaign/{id}","inputSchema":{"type":"object","properties":{"strategy_id":{"type":"integer"}},"required":["strategy_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_dialer_start","title":"WeAction Discador - Iniciar [INTERNO]","description":"[INTERNO] Inicia o discador de uma campanha.\nPOST /v1/campaign-dialer/{id}/dialer/start","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"integer"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_dialer_stop","title":"WeAction Discador - Parar [INTERNO]","description":"[INTERNO] Para o discador de uma campanha.\nPOST /v1/campaign-dialer/{id}/dialer/stop","inputSchema":{"type":"object","properties":{"campaign_id":{"type":"integer"}},"required":["campaign_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_tasks","title":"WeAction Listar Tarefas (atividades externas)","description":"Lista tarefas/atividades (QBR, check-in, follow-up, etc.) do agente, com filtros.\nPOST /v1/tasks  (este endpoint é de LISTAGEM, não de criação)\n\nTarefa no WeON liga-se a um contato/empresa e tem status. Filtre por contato, status e datas.\nPrecisa de org_unit_id (use o do seu contexto/identidade). agent_id default = logado.\n\nArgs:\n  - org_unit_id (number): unidade organizacional (do contexto do usuário)\n  - agent_id (number, opcional): default = agente logado\n  - contact_id (number, opcional): só tarefas de um contato\n  - status (number[], opcional): IDs de status (descubra com weaction_list_task_status_groups)\n  - init_date / final_date (string, opcional): intervalo \"YYYY-MM-DD HH:mm:ss\"\n  - search (string, opcional): busca textual\n  - per_page (number, opcional, default 20), page (number, opcional, default 1)","inputSchema":{"type":"object","properties":{"org_unit_id":{"type":"integer"},"agent_id":{"type":"integer"},"contact_id":{"type":"integer"},"data_field_status_group_id":{"type":"integer","description":"Grupo de status (board). Se omitido, resolve automaticamente os grupos ativos."},"status":{"type":"array","items":{"type":"integer"}},"init_date":{"type":"string"},"final_date":{"type":"string"},"search":{"type":"string"},"per_page":{"type":"integer"},"page":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_task_status_groups","title":"WeAction Status de Tarefas","description":"Lista os grupos de status de tarefas e seus status (A Fazer/Fazendo/Feito).\nGET /v1/external-activities/status-groups?org_unit_id={id}\nUse para descobrir os data_field_status_id (filtrar/criar tarefas) e o data_field_status_group_id.\n\nArgs:\n  - org_unit_id (number, opcional): default = do contexto","inputSchema":{"type":"object","properties":{"org_unit_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_task_channels","title":"WeAction Canais/Tipos de Tarefa","description":"Lista os canais/tipos de tarefa e seus campos (Título, Detalhes, Contato, Qualificação, etc.).\nGET /v1/external-activities/channel/list?org_unit_id={id}\nUse ANTES de criar uma tarefa, para descobrir o canal e os campos obrigatórios.\n\nArgs:\n  - org_unit_id (number, opcional): default = do contexto\n  - data_field_status_group_id (number, opcional)","inputSchema":{"type":"object","properties":{"org_unit_id":{"type":"integer"},"data_field_status_group_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_task","title":"WeAction Criar Tarefa (atividade externa)","description":"Cria uma tarefa/atividade (QBR, check-in, follow-up, BR) ligada a um contato.\nPOST /v1/external-activities/qualify\n\nTarefa = atividade externa DINÂMICA: os campos variam por canal/tipo. Esta tool descobre\nos campos do canal (via channel/list) e preenche por tipo automaticamente.\n\nFLUXO antes de chamar:\n1. weaction_list_task_channels(org_unit_id) → escolha o canal (use o label_identifier)\n2. weaction_list_task_status_groups(org_unit_id) → escolha o status_id (data_field_status_id)\n3. Tenha o objeto do contato (de weaction_search_broadcast_contacts ou da carteira).\nConfirme com o usuário ANTES de criar.\n\nArgs:\n  - channel (string): label_identifier do canal (de list_task_channels)\n  - org_unit_id (number): unidade org (do seu contexto)\n  - org_unit_name (string, opcional): nome da unidade\n  - title (string): título da tarefa\n  - status_id (number): data_field_status_id\n  - start_datetime (string): \"YYYY-MM-DD HH:mm:ss\"\n  - end_datetime (string, opcional)\n  - details (string, opcional)\n  - contact (object): objeto do contato (id, identifier, fullname, contact_fullname, employer_*...)\n  - qualification (object, opcional): {qualify_id, qualify_type, qualify_path}\n  - agent_id (number, opcional) / agent_name (string, opcional): responsável (default logado)","inputSchema":{"type":"object","properties":{"channel":{"type":"string","minLength":1,"description":"label_identifier do canal"},"org_unit_id":{"type":"integer"},"org_unit_name":{"type":"string"},"title":{"type":"string","minLength":1,"description":"Título da tarefa"},"status_id":{"type":"integer","description":"data_field_status_id"},"start_datetime":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"end_datetime":{"type":"string"},"details":{"type":"string"},"contact":{"type":"object","additionalProperties":{},"description":"Objeto do contato"},"qualification":{"type":"object","properties":{"qualify_id":{"anyOf":[{"type":"integer"},{"type":"null"}]},"qualify_type":{"type":"string"},"qualify_path":{"type":"string"}},"additionalProperties":false},"agent_id":{"type":"integer"},"agent_name":{"type":"string"},"_debug":{"type":"boolean"}},"required":["channel","title","status_id","start_datetime","contact"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_create_task_v1","title":"WeAction Criar Tarefa [DEPRECATED — use weaction_create_task]","description":"[DEPRECATED] POST /v1/tasks é endpoint de LISTAGEM, não de criação. Use weaction_create_task.","inputSchema":{"type":"object","properties":{"title":{"type":"string","description":"Título da tarefa"},"description":{"type":"string"},"agent_id":{"type":"integer"},"contact_id":{"type":"integer"},"employer_id":{"type":"integer"},"due_date":{"type":"string","description":"YYYY-MM-DD HH:mm:ss"},"priority":{"type":"string"}},"required":["title"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_list_external_activity_status_groups","title":"WeAction Grupos de Status de Atividade Externa [INTERNO]","description":"[INTERNO] Lista os grupos de status de atividades externas.\nGET /v1/external-activities/status-groups","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_qualify_external_activity_v1","title":"WeAction Qualificar Atividade Externa [INTERNO]","description":"[INTERNO] Qualifica uma atividade externa.\nPOST /v1/external-activities/qualify","inputSchema":{"type":"object","properties":{"activity_id":{"type":"integer"},"qualification_id":{"type":"integer"},"notes":{"type":"string"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_create_external_activity_status","title":"WeAction Criar Status de Atividade Externa [INTERNO]","description":"[INTERNO] Cria um novo status dentro de um grupo de status.\nPOST /v1/external-activities/status-groups/{id}/status/create","inputSchema":{"type":"object","properties":{"group_id":{"type":"integer"},"name":{"type":"string"},"color":{"type":"string"},"order":{"type":"integer"}},"required":["group_id","name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_get_automation","title":"WeAction Get Automação [INTERNO]","description":"[INTERNO] Retorna detalhes de uma automação.\nGET /v1/automation/{id}","inputSchema":{"type":"object","properties":{"automation_id":{"type":"integer"}},"required":["automation_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_create_automation","title":"WeAction Criar Automação [INTERNO]","description":"[INTERNO] Cria uma nova automação na plataforma.\nPOST /v1/automation/create","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"trigger":{"type":"string"},"actions":{},"active":{"type":"boolean","default":true}},"required":["name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_update_automation","title":"WeAction Atualizar Automação [INTERNO]","description":"[INTERNO] Atualiza uma automação existente.\nPOST /v1/automation/update/{id}","inputSchema":{"type":"object","properties":{"automation_id":{"type":"integer"},"name":{"type":"string"},"trigger":{"type":"string"},"actions":{},"active":{"type":"boolean"}},"required":["automation_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_remove_automation","title":"WeAction Remover Automação [INTERNO]","description":"[INTERNO] Remove uma automação.\nPOST /v1/automation/remove/{id}","inputSchema":{"type":"object","properties":{"automation_id":{"type":"integer"}},"required":["automation_id"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":true,"answers_query_types":["mutation"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["mutation"]},"answers_query_types":["mutation"]},{"name":"weaction_tags_skip_ivr","title":"WeAction Tags - Pular IVR [INTERNO]","description":"[INTERNO] Lista as tags que permitem pular o IVR.\nGET /v1/tags/can-skip-ivr","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_tags_skip_queue","title":"WeAction Tags - Pular Fila [INTERNO]","description":"[INTERNO] Lista as tags que permitem pular a fila de atendimento.\nGET /v1/tags/can-skip-queue","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]},{"name":"weaction_list_scheduler","title":"WeAction Listar Agendamentos [INTERNO]","description":"[INTERNO] Lista os agendamentos do calendário.\nGET /v1/scheduler","inputSchema":{"type":"object","properties":{"start_date":{"type":"string","description":"YYYY-MM-DD"},"end_date":{"type":"string","description":"YYYY-MM-DD"},"agent_id":{"type":"integer"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"readOnlyHint":true,"openWorldHint":true,"answers_query_types":["filtered_list"]},"execution":{"taskSupport":"forbidden"},"_meta":{"answers_query_types":["filtered_list"]},"answers_query_types":["filtered_list"]}]