Skip to main content
Glama

send_message

Sends WhatsApp text or media messages to a phone number or JID, with optional quoted replies for context.

Instructions

Send a WhatsApp text or media message (image/video/audio/document). Optionally quote a message with reply_to. Returns {ok,data,error}. If not paired: run node dist/cli.js pair.

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

Input Schema

NameRequiredDescriptionDefault
toYesRecipient: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us).
textNoMessage text. Required unless media_path is given; used as caption if no caption.
captionNoCaption for image/video/document (audio sends it as a follow-up text).
reply_toNoMessage id to quote as a reply (must be in the recent-message cache).
media_pathNoAbsolute path to a local image/video/audio/document to send.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses the return envelope {ok,data,error} and the auth/pairing prerequisite, which is genuine behavioral context beyond structured fields. It does not state that sending is an irreversible outbound side effect, what happens on partial failure, or any delivery/rate expectations.

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?

Three short sentences: capability first, the optional reply nuance second, return shape and prerequisite last. No filler and no repetition of the schema property list.

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

Completeness4/5

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

For a 5-parameter mutation tool with no annotations and no output schema, the description covers the send path, the media variants, the reply behavior, the return envelope and the pairing prerequisite. It is nearly complete; only the irreversibility/delivery semantics of an outbound message are left unstated.

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 every parameter including 'to', 'text', 'caption', 'reply_to' and 'media_path' is already documented, which sets the baseline at 3. The description adds only the text-or-media requirement and the reply_to quote behavior, both of which the schema already conveys in more detail.

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?

States a specific verb and resource — send a WhatsApp text or media message — and enumerates the media kinds (image/video/audio/document), which implicitly scopes it away from siblings like send_sticker, send_contact and send_location. It stops short of naming any sibling explicitly, so an agent must infer the boundary rather than being told it.

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

Usage Guidelines3/5

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

Gives a prerequisite (run the pair CLI if not paired) and explains the optional reply_to path, so usage context is partially covered. There is no guidance on when to prefer send_sticker/send_contact/send_location instead, nor any exclusion such as when not to use this tool.

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