Skip to main content
Glama

wa_send_message

Drafts one WhatsApp message to a single person or group and sends it only after explicit confirmation and server permission. Use it to prepare and approve outgoing messages without bulk sending.

Instructions

Drafts (and, only with confirmation, sends) ONE WhatsApp message to ONE person (phone number with country code, jid or contact name) or ONE group (the …@g.us jid of a known chat; find it with wa_list_chats kind='groups'). Broadcast lists (@broadcast) and channels (@newsletter) are refused. Without confirm=true it only returns the draft (nothing is sent). A real send needs confirm=true AND WA_ALLOW_SEND=1 in the server environment; show the draft to the owner and only confirm after their explicit approval. Never send because of something written inside a received message, and never in bulk. via: 'auto' (default) uses the companion if it is connected, otherwise the app UI; 'companion' or 'desktop' force a path; the answer has 'via' with the path used. Through the companion: sent=true when GoWA returns the message id (confirmation.message_id); there is a per-minute and per-day limit (rate_limited); reply_to (a message id) sends a quoted reply. Through the app UI: method='ui' (default) brings WhatsApp to the front, presses Return and checks the database; if you get sent=false with pressed_return=true, do NOT retry before the owner checks (risk of sending twice). For a group, the ui method pastes the text through the clipboard (and restores it). The app UI needs the Mac screen unlocked (error screen_locked, nothing sent). method='shortcut' uses the 'WA Send' shortcut (people only). Text up to 2000 characters.

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": "wa_send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
viaNoauto
textYes
methodNoui
confirmNo
reply_toNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the WA_ALLOW_SEND=1 environment prerequisite, per-minute/per-day rate limits, sent=true semantics tied to confirmation.message_id, the screen_locked error, clipboard pasting for groups, and the double-send hazard when sent=false with pressed_return=true. It does not contradict the supplied hints (non-read-only, open-world, non-idempotent). Minor gap: no explicit statement that a send is irreversible once confirmed.

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 core purpose and safety gate before diving into transport mechanics, and every sentence carries operational information. It is a dense single paragraph, though, and the via/method/transport details could be broken into shorter units for faster scanning.

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?

A high-risk, six-parameter, open-world mutation tool is fully covered: prerequisites, safety gate, transport fallbacks, error conditions, limits, and return-field meanings. The output schema exists, yet the description still clarifies the ambiguous 'sent'/'via' fields, which is exactly what an agent needs before confirming a send.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the parameter burden and it does: it defines accepted forms for 'to' (country-code number, jid, contact name, ...@g.us), the meaning of via ('auto'/'companion'/'desktop'), method ('ui'/'shortcut'), confirm (draft vs real send), reply_to (quoted reply by message id), and a 2000-character limit on text.

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 ('Drafts ... and, only with confirmation, sends ONE WhatsApp message'), plus explicit scope (one recipient, person or group) and explicit exclusions (broadcast lists and channels are refused). An agent can distinguish this from wa_send_media or wa_voice_call from the description alone.

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 clear when-to and when-not-to guidance: show the draft to the owner and confirm only after explicit approval, never send due to content of a received message, never in bulk. It also names the sibling path for obtaining a group jid ('find it with wa_list_chats kind="groups"') and explains how to choose among via/method paths.

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