Skip to main content
Glama

whatsapp_send_text

Send a WhatsApp message (text or media). Actions:

  • text: { to, text, reply_to? }

  • media: { to, type ('image'|'video'|'audio'|'document'|'sticker'), media_url | media_base64, caption?, filename?, mimetype? }

to accepts either a JID ('5511999999999@s.whatsapp.net', '@g.us') or a plain phone (digits, country code included). For groups always use the '@g.us' JID — get it from whatsapp_groups.

Result: sent:true + delivery:"accepted_by_server" means WhatsApp's server accepted the message (it has an id). It is NOT a read/delivery receipt from the recipients' phones. If the message did not go out, the call fails with the reason.

Official Meta API connection: free text/media only inside the 24-hour window (24 h since the contact's last message); outside it the call fails with error "outside_service_window" and you must use whatsapp_send_template. Media goes by media_url (public HTTPS); groups are not supported there.

[Flattened action: text]

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

Input Schema

NameRequiredDescriptionDefault
toYes
textNo
typeNo
accountNo
captionNo
filenameNo
mimetypeNo
reply_toNo
media_urlNo
media_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

This goes well past the annotations: it explains that `sent:true` plus `delivery:"accepted_by_server"` is a server-side acceptance, NOT a read or delivery receipt from the recipient's phone, and that failures return a reason. It also discloses the 24-hour service-window constraint and the specific `outside_service_window` error, plus the HTTPS-only requirement for media.

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?

The action-block formatting front-loads the two payload shapes, then moves to result semantics and channel constraints, so an agent can scan it quickly; nearly every line adds real information. Minor waste remains in the trailing '[Flattened action: text]' artifact and in restating media type options that the enum already encodes.

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 ten parameters, no output schema, and zero annotation coverage of behavior, the description supplies the missing pieces: send payload shapes, delivery-vs-read semantics, failure reporting, and the 24-hour window rule. The only hole is the undocumented `account` parameter, which is minor relative to what is covered.

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?

With 0% schema description coverage, the description carries the full burden and mostly does: it defines `to` as either a JID ('5511999999999@s.whatsapp.net', '<id>@g.us') or a plain phone with country code, and documents the enum values for `type`, the media_url/media_base64 alternative, and caption/filename/mimetype/reply_to. However, the `account` parameter is never mentioned, so one of the ten inputs remains undefined anywhere.

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?

The description opens with a specific verb and resource: "Send a WhatsApp message (text or media)", followed by two explicit payload shapes for text and media. It is unambiguous about what the call does, but it never distinguishes itself from the sibling whatsapp_send_media despite claiming media support here, which leaves a real routing ambiguity for an agent choosing between the two.

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 gives concrete when-to rules: use the '<id>@g.us' JID from whatsapp_groups for groups, and use whatsapp_send_template instead when outside the 24-hour window. It also states that official-API media must go via a public HTTPS media_url and that groups are unsupported there. The gap is that the overlap with the sibling whatsapp_send_media is never addressed, so an agent cannot tell which media tool to pick.

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.