Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

whatsapp_send_audio

Send a WhatsApp audio message to a recipient by supplying an uploaded media ID or public HTTPS link, avoiding manual media handling.

Instructions

Send a WhatsApp audio 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_audio"
  }
}

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

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose that media comes either from a prior upload or a public HTTPS link, which is real context beyond a bare 'send'. It omits supported audio formats, size limits, whether a caption renders on audio, and failure/return behavior, leaving notable gaps for a write operation.

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 sentences, zero padding, with the action front-loaded and the media-sourcing rule immediately after. Nothing could be removed without losing information.

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?

The tool is simple (4 params, no output schema, no annotations), so the description is roughly proportionate. However, for a media-send mutation with no structured behavioral hints, it should say more about format/limit constraints and what the call returns or raises.

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 schema already documents 'to', 'id', 'link', 'filename', 'access_token', and 'phone_number_id'. The description adds one genuinely useful clarification the schema cannot express: that id and link are alternatives rather than both required. That single clause is helpful but thin, so a 3 is appropriate.

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 audio message'), which is enough to distinguish it from siblings like whatsapp_send_video, whatsapp_send_image, and whatsapp_send_document. It stops short of explicitly naming alternatives, so it lands at 4 rather than 5.

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 only usage direction is about how to supply media, not when to choose this tool over a sibling such as whatsapp_send_text or whatsapp_send_document. The selection is implied by the media type, but no explicit when-to-use or when-not guidance is given.

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