Skip to main content
Glama

Get conversations

get_conversations
Read-only

Lista as conversas mais recentes com clientes, incluindo canal (whatsapp, email, instagram), status última mensagem e quem atende (atendimento: agente | pessoa, com o nome | esperando, com de quem é a vez e desde quando — o agente passou e ninguém assumiu). Use para ter uma visão geral do atendimento, ou informe contact_id/contact_phone pra achar a(s) conversa(s) de UM contato específico (ex: depois de um get_contact/list_contacts) sem precisar casar por nome/telefone na mão. Cada conversa traz nao_lidas (mensagens do cliente que o dono da chave ainda não abriu, mesma regra do filtro "Não lidas" da tela). Com nao_lidas=true, traz só essas e os totais da conta. Com aguardando=true, traz a fila "Precisa de você" da tela (o cliente falou por último há menos de 24h e ninguém respondeu, sem as concluídas e adiadas), do mais recente para o mais antigo, com o total das que passaram de 24h. contactName é o nome do contato (cai no da conversa). Cada conversa traz numero (nome do número de WhatsApp por onde chegou) e uso (empresa, marca ou pessoal). Conversas de número PESSOAL ficam de fora; só quem conectou o número as lê, com incluir_pessoal=true. caixa filtra por número (nome, ver get_whatsapp_status) ou "email". Ler pelo MCP não marca como lida: use mark_conversation_read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
caixaNoSó as conversas de um número (o nome dele em get_whatsapp_status, ex.: "Seu Lima") ou "email".
limitNoQuantidade máxima (padrão 10, máx 50)
statusNoFiltrar por status da conversa (padrão: active — omitido quando contact_id/contact_phone é informado, pra também achar conversas arquivadas desse contato)
channelNoFiltrar por canal
nao_lidasNotrue = só as conversas ativas com mensagem do cliente não lida (o filtro "Não lidas" da tela). A resposta vira { total_contatos, total_mensagens, conversas }.
aguardandoNotrue = a fila "Precisa de você" da tela (cliente falou por último há menos de 24h). A resposta vira { precisa_de_voce, passaram_de_24h, conversas }.
contact_idNoFiltrar pelas conversas de UM contato específico (ID do Contact, obtido via get_contact/list_contacts) — mais preciso que contact_phone
contact_phoneNoFiltrar pelas conversas de um telefone específico (alternativa a contact_id, formato internacional ex: 5548999990000)
incluir_pessoalNotrue = inclui as conversas do número pessoal de quem está usando a chave. As de outra pessoa nunca vêm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / caixa
      Added value: +{
      +  "description": "Só as conversas de um número (o nome dele em get_whatsapp_status, ex.: \"Seu Lima\") ou \"email\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / incluir_pessoal
      Added value: +{
      +  "description": "true = inclui as conversas do número pessoal de quem está usando a chave. As de outra pessoa nunca vêm.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / aguardando
      Added value: +{
      +  "description": "true = a fila \"Precisa de você\" da tela (cliente falou por último há menos de 24h). A resposta vira { precisa_de_voce, passaram_de_24h, conversas }.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / nao_lidas
      Added value: +{
      +  "description": "true = só as conversas ativas com mensagem do cliente não lida (o filtro \"Não lidas\" da tela). A resposta vira { total_contatos, total_mensagens, conversas }.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context the annotations do not, including the 24h cutoff for the 'Precisa de você' queue, the response-shape switch to {total_contatos,total_mensagens,conversas}, and the explicit note that reading does not mark messages as read. It stops short of describing pagination or ordering beyond the aguardando case.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the contact-filter path are front-loaded, and most sentences carry distinct information. However, the single dense paragraph with nested em-dash clauses around atendimento and numero/uso makes it harder to parse than a bulleted breakdown would be, and some screen-analogy phrasing is verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter tool with no output schema, the description does useful work by naming several returned fields (nao_lidas, contactName, numero, uso) and the two alternate response envelopes. It does not fully enumerate the return shape, but it covers enough for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all nine parameters, making 3 the baseline. The description reinforces a few (caixa cross-referenced to get_whatsapp_status, the nao_lidas/aguardando response shapes) but adds little syntax or format detail the schema does not already carry.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource (list most recent client conversations) and enumerates what each record carries: channel, last-message status, and who is handling it. It also distinguishes itself from get_conversation_messages and mark_conversation_read by warning that MCP reads do not mark conversations as read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives two use paths: a general overview of atendimento, or passing contact_id/contact_phone to find one contact's conversations after get_contact/list_contacts. It also spells out the two special modes (nao_lidas and aguardando) and the exact conditions each applies, plus the exclusion of personal-number conversations unless incluir_pessoal=true.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources