Skip to main content
Glama

Supergreen WhatsApp

send_media

Send an image, video, document, or audio file (via public URL or base64) with an optional caption to a WhatsApp chat or group.

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": {
      "toNumber": "<toNumber>",
      "type": "<type>"
    },
    "name": "send_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTP/HTTPS URL of the media file to send
typeYesMedia type: 'image', 'video', 'document', or 'audio'
base64NoBase64 encoded media data (with or without data URL prefix)
captionNoOptional caption text for the media
filenameNoFilename for the media. Auto-generated from MIME type if not provided
mimeTypeNoMedia MIME type (e.g., 'image/jpeg', 'video/mp4', 'application/pdf'). Auto-detected from data URL if not provided
toNumberYesRecipient's WhatsApp ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the agent knows this is a non-idempotent outbound write. The description adds only the media-type and transport surface; it says nothing about retry/duplicate-send risk given idempotentHint=false, size limits, or failure behavior for unreachable URLs.

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?

A single sentence with no filler, front-loaded with the action and the resource, and the parenthetical transport note is compact and informative. Nothing needs to be trimmed.

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?

For a seven-parameter outbound send tool with full schema coverage and no output schema, the description covers the core surface but leaves real gaps: which of url/base64 must be supplied, whether mimeType/filename are needed in practice, and what happens on failure. Adequate but not sufficient to guarantee correct invocation on the first try.

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 100%, so all seven parameters are already documented, which sets the baseline at 3. The phrase 'via public URL or base64' adds a mild implication that one source is required, but the description does not clarify the url/base64 exclusivity that the schema leaves ambiguous (only toNumber and type are marked required).

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 uses a specific verb (Send) with a well-bounded resource (image, video, document, or audio file) and states both supported transports (public URL or base64) plus the destination (WhatsApp chat or group). It is clearly distinct from text-oriented siblings like send_message, though it never names an alternative explicitly.

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?

Usage is implied by the media-type enumeration and the URL-vs-base64 phrasing, which hints that one of the two sources is needed. However, there is no explicit when-to-use versus send_message/send_poll, no prerequisites (e.g., recipient must be a valid WhatsApp ID), and no stated exclusions or limits.

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.

Resources