Skip to main content
Glama

whatsapp_send_media

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: media]

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_media"
  }
}

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.4/5.0
Behavior5/5

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

Annotations only cover the mutation/safety profile, and the description goes well beyond them: the 24-hour service-window constraint, the exact error string on failure, the requirement that media_url be public HTTPS, and the crucial interpretation that 'sent:true' with 'delivery:"accepted_by_server"' is server acceptance, not a read/delivery receipt. That result-semantics note is exactly the kind of context annotations cannot supply.

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?

Information is front-loaded into a header, an action breakdown, and a result/constraint paragraph, which is easy to scan. It loses a little to the documented `text` action that is irrelevant for a flattened media tool and duplicates the sibling whatsapp_send_text.

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?

No output schema exists, and the description compensates by explaining the return shape and what 'accepted_by_server' does and does not mean, plus the failure mode. For a 10-parameter mutation tool the remaining omissions (account selection, reply_to applicability, payload size limits) are modest but real.

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 must carry the load, and it does explain `to` (JID vs plain phone with country code), the `type` enum values, and the media_url/media_base64 alternative plus caption/filename/mimetype. Gaps remain: the `account` parameter is never mentioned, `reply_to` is documented only under the text action although it exists on this schema, and there is no guidance on when to prefer media_url over media_base64 or on size limits.

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 names a specific verb and resource (send WhatsApp media) and enumerates the media types (image/video/audio/document/sticker) plus the two source options (media_url or media_base64). The opening line 'Send a WhatsApp message (text or media)' and the leftover 'text' action block muddy the scope given a sibling whatsapp_send_text exists, but the '[Flattened action: media]' tag and media detail make the actual capability unambiguous.

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?

Explicit routing is given: outside the 24-hour window the call fails with 'outside_service_window' and you must use whatsapp_send_template instead; for groups you must use the '<id>@g.us' JID obtained from whatsapp_groups. It also states the exclusion that groups are not supported over the official Meta API, which is a concrete when-not condition.

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.