Skip to main content
Glama
Cristinacarolsouza

whatsapp-desktop-mcp

Send a WhatsApp text message

send_message
Destructive

Send a text message to a specific WhatsApp chat using its chat ID, with confirmation before delivery.

Instructions

Sends a text message to one resolved chat (by opaque chat_id from search_contacts / list_chats — never a free-form name string). Gated by an MCP elicitation prompt showing resolved chat name, recipient JID, and body verbatim — decline cancels cleanly. Group sends are experimental. Conservative rate limits apply by default (5/min, 30/day). The pre-send state assertion aborts on focused-chat mismatch. WhatsApp's Terms of Service prohibit automated / bulk messaging; use sparingly, never for marketing or broadcast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
chat_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
chat_idYes
chat_nameYes
elapsed_msNo
message_idNo
audit_log_pathNo
confirm_skippedNo
is_experimentalNo
verification_noteNo
rate_limit_remaining_per_dayNo
rate_limit_remaining_per_minNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say it's a write operation (readOnlyHint=false), non-idempotent, and destructive. The description adds far more: the MCP elicitation prompt with a cancel path, rate limits (5/min, 30/day), a pre-send state assertion that aborts on focused-chat mismatch, experimental group sends, and WhatsApp ToS restrictions. These are exactly the behavioral traits an agent needs to know but are absent from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence earns its place: purpose + input provenance, confirmation gate, rate limits, state assertion, and legal constraint. It front-loads the core action and then logically layers caveats, with no filler.

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 mutation tool with two parameters and an output schema, the description covers prerequisites (how to get chat_id), operational behavior (prompt, rate limits, state check), limitations (experimental groups, legal prohibition), and usage ethics (sparingly, not marketing). An agent now has everything needed to decide and execute correctly without opening schemas.

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?

Since schema description coverage is 0%, the description carries the burden. It effectively explains chat_id as an opaque identifier from specific lookup tools and clarifies that body is shown verbatim in the prompt. It doesn't specify body length limits or formatting, but for a simple string parameter this is adequate compensation.

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 states a specific verb and resource ('Sends a text message'), identifies the exact recipient type ('one resolved chat by opaque chat_id'), and distinguishes itself from siblings by emphasizing text vs. file and by referencing the lookup tools that produce chat_id. An agent can immediately tell this from send_file and read_chat.

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?

It explicitly instructs that chat_id must come from search_contacts/list_chats and never a free-form name, which is strong usage guidance. It also warns against automated/bulk messaging and notes experimental group sends. It doesn't explicitly name alternatives like 'use send_file for files,' but the context is clear enough for correct tool selection.

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