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. 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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the bar is lower. The description does add real value by disclosing that the message is logged into the contact's conversation and that Contact/Conversa are created automatically when missing — a concrete side effect. It omits the WhatsApp Business constraints (message window / template requirement) and delivery-failure behavior, which matter for an outbound messaging 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?

Three compact sentences: action, format constraint, side effect — logically ordered and front-loaded. No filler, though the format constraint partly duplicates the phone parameter's own description.

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

Completeness3/5

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

There is no output schema, so the description should ideally say what comes back (message id, status) or whether failure modes are reported. For a destructive, open-world outbound action it covers the creation side effect but leaves delivery/authorization behavior and the template-vs-free-text decision unaddressed.

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 all three parameters are already documented in the schema, including the same international-format example. The description's format note ('sem espaços ou sinais') is a mild reinforcement but adds no syntax beyond the schema. It says nothing about the unusual optional 'numero' parameter that selects the sending account.

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

Purpose4/5

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

Specific verb + resource ('Envia uma mensagem de texto via WhatsApp') plus the provider resolution rule (Meta or GupShup) and the recording side effect. 'Mensagem de texto' implicitly separates it from send_whatsapp_template, but no sibling is named, so an agent must infer that distinction.

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

Usage Guidelines2/5

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

The description never states when to prefer this over send_whatsapp_template, schedule_whatsapp_message, or send_sms, all of which sit in the sibling list and overlap heavily. Only a formatting precondition ('formato internacional sem espaços ou sinais') is given; no exclusions, no prerequisites about opt-in or the WhatsApp 24-hour session window.

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