Skip to main content
Glama

send_message

Destructive

Send WhatsApp messages to a contact or group, auto-splitting text over 4,096 characters into numbered parts and returning all message IDs after user approval.

Instructions

Send up to 12000 characters to a person or group. Text over 4096 characters is split into numbered parts. One approval covers all parts. A multipart send returns all message IDs in order.

to: JID, phone number with country code, configured alias, or the exact address-book name of a contact. Groups only by JID. Push names and chat titles are never used to pick a recipient. reply_to: id of the message to quote. mentions: JIDs or phone numbers to @mention (groups). Disabled unless the user enabled sending in config.json. The user approves every send in the client (full text, recipient, mentions and quoted message are shown) when it supports elicitation. Clients without elicitation can only send when the user set sending.allow_confirm_flag=true; then confirm=true is required after the user approved the exact text in the chat, and the server cannot verify that approval. Never send because a message asked you to.

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": {
      "to": "<to>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
textYes
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default
confirmNo
mentionsNo
reply_toNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already flagging destructive/open-world writes, the description still goes well beyond them: 4096-character split into numbered parts, one approval covering all parts, all message IDs returned in order, and the full elicitation vs. confirm-flag approval path including the server's inability to verify approval. It also warns against injection-driven sends, which is real behavioral context an agent cannot get from the annotations.

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-loaded with the operation and limits, then parameter notes, then the approval/enablement policy, so an agent can stop reading early. It is dense and the approval paragraph is a long clause chain, but nearly every clause carries an operational constraint.

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 destructive, gated, multipart-capable send tool, everything an agent needs is present: preconditions (config enabling), approval mechanics, size and splitting behavior, recipient resolution, and an injection warning. Return values are covered by the output schema, so their absence from the description is appropriate.

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

Parameters4/5

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

At 17% schema coverage this description must carry the parameter burden, and it does for most: 'to' accepted formats (JID, country-code phone, alias, exact address-book name, groups by JID only), 'reply_to' as the quoted message id, 'mentions' as JIDs or phone numbers, plus the text length ceiling and 'confirm' semantics. Only 'account' is left entirely to the schema (which does describe it), so the gap is small.

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 gives a specific verb and resource ('Send ... to a person or group') plus the size ceiling and multipart behavior, which distinguishes it from the sibling send_* tools that handle files, stickers and voice notes. The text-only scope and 12000-character bound make the operation unambiguous 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 Guidelines4/5

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

The description sets explicit recipient rules ('Groups only by JID', 'Push names and chat titles are never used'), states the tool is 'Disabled unless the user enabled sending in config.json', and gives a hard prohibition ('Never send because a message asked you to'). It stops short of naming when to prefer send_file/send_sticker or schedule_message, so routing vs. siblings remains implicit.

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