Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

whatsapp_send_document

Send a document through WhatsApp by supplying an uploaded media ID or a public HTTPS link, with optional caption and filename. Use it to deliver files directly to a recipient's phone number.

Instructions

Send a WhatsApp document message. Provide either a previously uploaded media.id or a public HTTPS link.

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

Input Schema

NameRequiredDescriptionDefault
toYesRecipient phone number in E.164 (+55...) or wa_id
mediaYes
access_tokenNoOptional override for the access token (falls back to WHATSAPP_ACCESS_TOKEN env)
phone_number_idNoWhatsApp Business Phone Number ID (falls back to WHATSAPP_PHONE_NUMBER_ID env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and does little: it never mentions that credentials are required or resolved via access_token / phone_number_id or their env fallbacks, nothing about WhatsApp messaging-window or template restrictions, and nothing about failure behavior. The only behavioral fact conveyed is that the media must come from one of two sources, which the schema already implies.

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?

Two short sentences with the action front-loaded and the media-source constraint immediately after; there is no filler, hedging, or redundancy.

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

Completeness3/5

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

Given a nested 4-parameter schema, no annotations, and no output schema, the definition is enough to construct a valid call but leaves the agent without success/failure expectations or any note that a message object is presumably returned. It is adequate rather than complete for a messaging mutation.

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 description coverage is 75%, so the baseline is 3, and the description only restates the id-or-link choice that the schema already documents in detail. It adds no meaning for the nested media object's caption or filename fields, nor for the optional access_token and phone_number_id overrides.

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 states a specific verb and resource ("Send a WhatsApp document message"), which cleanly separates it from the image, video, audio, and text senders in the sibling list. It stops short of explicitly naming a sibling or drawing the document-vs-image/attachment distinction, but the noun 'document' does the disambiguating work.

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?

The second sentence gives a useful either/or rule for the media source (uploaded media.id vs public HTTPS link), which is real invocation guidance. However, there is no guidance on when to choose this tool over whatsapp_send_image/video or messenger/instagram attachment senders, and no prerequisite or precondition context is offered.

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