Skip to main content
Glama

Send whatsapp message

send_whatsapp_message
Destructive

Envia uma mensagem de texto via WhatsApp para um número usando o provedor WhatsApp ativo da conta (Meta ou GupShup). O número deve estar no formato internacional sem espaços ou sinais. Só funciona com a janela de 24h aberta: se o contato nunca escreveu para esse número ou respondeu há mais de 24h, a ferramenta recusa sem enviar e pede send_whatsapp_template (a Meta recusaria o texto livre depois, em silêncio). A mensagem fica registrada na conversa do contato no Radar (cria Contact/Conversa automaticamente se ainda não existirem).

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": {
      "phone": "<phone>",
      "message": "<message>"
    },
    "name": "send_whatsapp_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYesNúmero com DDD e código do país (somente dígitos), ex: 5511999999999
numeroNoEtapa 1b — WhatsApp da conta (telefone, ex.: "5548992172321", ou o id em list_agent_profiles → numeros). Vazio = o número da conversa do contato, ou o principal.
messageYesTexto da mensagem a enviar

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / numero
      Added value: +{
      +  "description": "Etapa 1b — WhatsApp da conta (telefone, ex.: \"5548992172321\", ou o id em list_agent_profiles → numeros). Vazio = o número da conversa do contato, ou o principal.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: the 24h-window refusal, the warning that Meta would silently reject free text, and the side effect that the message is logged in the contact's Radar conversation with automatic Contact/Conversa creation. These are exactly the behavioral traits an agent needs before invoking a mutating, externally-visible tool.

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?

Front-loads the core action, then the format constraint, then the critical 24h rule and side effects. Dense but every sentence carries operational value; the parenthetical about Meta's silent rejection is slightly verbose but justified as a failure-mode warning.

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

Completeness5/5

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

For a mutating, open-world send tool with no output schema, the description covers the precondition, the refusal path, the fallback tool, and the persistence side effects. Nothing an agent needs to call it correctly or interpret a refusal is missing.

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 three parameters including the digits-only phone format. The description restates the international-format requirement for the number but adds no new meaning for 'numero' or 'message' beyond what the schema provides. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Envia uma mensagem de texto via WhatsApp para um número'), names the provider mechanism (active account provider, Meta or GupShup), and implicitly separates itself from send_whatsapp_template by routing free-text vs template sends. An agent can distinguish it from siblings without opening the schema.

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?

Gives an explicit precondition (24h window open), the exact failure condition (contact never wrote or replied more than 24h ago), the resulting behavior (refuses without sending), and the named alternative (send_whatsapp_template). This is a complete when-to-use / when-not-to-use rule with the alternative spelled out.

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