Skip to main content
Glama

Reply to conversation

reply_to_conversation
Destructive

Responde numa conversa de WhatsApp como PESSOA da equipe, igual a responder pela tela: sai pelo número da conversa, pausa o agente de IA nessa conversa e, se ela não tinha dono, quem usa a chave vira o dono. Use depois que a pessoa aprovou o texto. Leia antes com get_conversation_messages e mande last_message_id em last_read_message_id: se o cliente escreveu ou alguém respondeu depois, NÃO envia e devolve as mensagens novas para reler. Texto livre só com a janela de 24 h aberta; fora dela, mande template (nome aprovado de list_whatsapp_templates, com params na ordem das variáveis). Descadastro não bloqueia (é envio de pessoa).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conversation_id": "<conversation_id>",
      "last_read_message_id": "<last_read_message_id>"
    },
    "name": "reply_to_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoTexto da resposta (ou use template)
templateNoTemplate aprovado em vez de texto: { name, language?, params? }
author_nameNoNome de quem aprovou, mostrado como autor no Radar (padrão: dono da chave)
conversation_idYesID da conversa (de get_conversations)
incluir_pessoalNotrue = permite responder em conversa do número pessoal de quem está usando a chave.
last_read_message_idYeslast_message_id de get_conversation_messages: a última mensagem que a pessoa viu

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=true and openWorld=true; the description adds the material side effects an agent could not infer: the AI agent is paused in that conversation, ownership may transfer to the key holder, opt-out status does not block the send, and the 24h policy governs the text-vs-template choice. The stale-message guard (returns the newer messages instead of sending) is an unusual and valuable disclosure. It stops short of describing the response payload's shape, but the annotations already flag the operation as destructive.

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?

It is a single dense paragraph with essentially no filler, and the most decision-relevant constraint (the stale-message refusal) is placed prominently. It is somewhat run-on, packing five distinct rules into consecutive clauses, which taxes scanning, but nothing could be removed without losing operational meaning.

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 side-effecting messaging tool with no output schema, the definition covers prerequisites, side effects, the refusal path, and the template fallback, which is close to complete. The main residual gap is that the return value on success (e.g., message id or delivery status) is not characterized, leaving the agent to discover it from the raw response.

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 baseline is 3 and the schema already explains each parameter's intent. The description does add cross-tool provenance for last_read_message_id (from get_conversation_messages) and for template (approved name from list_whatsapp_templates, params in variable order), which meaningfully reduces misuse. Beyond those two, the remaining parameters are left entirely to the schema.

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 description uses a specific verb and resource ('Responde numa conversa de WhatsApp') and immediately operationalizes it: it sends from the conversation's own number, pauses the AI agent in that conversation, and assigns ownership to the key holder if the conversation was unowned. This is far more than a restatement of the name and makes clear this is a human-authored send, distinct from automated or scheduled sends.

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?

Explicit preconditions are given ('Use depois que a pessoa aprovou o texto', 'Leia antes com get_conversation_messages'), along with the exact parameter to carry over. It names the sibling to read first and the sibling to source templates from, and states the branch condition (24h window open vs. closed) that selects free text vs. template. The 'NÃO envia' case defines when the call will refuse rather than send.

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