Skip to main content
Glama

Send WhatsApp media (image/audio/document)

whatsapp_send_media

Send an image, audio file, or document to a WhatsApp contact from a local path or http(s) URL, with optional caption, filename, and voice-note delivery.

Instructions

Send an image, audio, or document from a local path or http(s) URL to a contact.

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": {
      "contact": "<contact>",
      "media_type": "<media_type>",
      "source": "<source>"
    },
    "name": "whatsapp_send_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesLocal file path or http(s) URL of the media file
captionNo
contactYesContact: saved name, phone number with country code (e.g. 919876543210), or full JID (e.g. 919876543210@s.whatsapp.net)
file_nameNoFor documents; default = basename of source
media_typeYes
as_voice_noteNoFor audio: send as a voice note (ptt)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and does not meet it. It says nothing about whether the device must be paired, what happens if the local path or URL is invalid or unreachable, any file-size or format limits, whether sending is immediate or queued, or whether the operation can be undone. Only the accepted source forms and media types are disclosed.

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?

A single front-loaded sentence with no filler or redundancy in phrasing. It is efficient, though its brevity is also the source of the definition's gaps rather than a mark of disciplined editing.

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

Completeness2/5

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

For a mutation tool with six parameters, three of them required, no annotations, and no output schema, this description is too thin. An agent cannot tell from it what conditions cause failure or what it needs to have in place before invoking the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description only restates the schema's own wording for 'source' ('local path or http(s) URL') and echoes the media_type enum values. It adds nothing about the undocumented caption parameter, nothing about how as_voice_note interacts with media_type, and nothing about contact identifier resolution.

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 gives a specific verb (send) plus the resource and its scope (image, audio, or document from a local path or http(s) URL to a contact). That distinguishes it implicitly from whatsapp_send_message, which handles text, and from the read/status siblings. It stops short of naming the sibling that handles plain text, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites such as the account being paired/connected, and no pointer to whatsapp_send_message for text-only sends. The usage is only implied by the phrase 'send an image, audio, or document'.

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