Skip to main content
Glama

wa_send_audio

Send an audio file from a local path or URL to a WhatsApp contact, group, or channel as a voice note or regular audio message, with optional duration metadata.

Instructions

Send an audio file as a voice note (push-to-talk, with waveform) or as a regular audio message.

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": "wa_send_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesPhone number, group JID or channel JID
pttNotrue = send as a voice note (push-to-talk), default true
urlNoAudio URL to fetch and send (alternative to file)
fileNoAbsolute path to an audio file (opus/ogg recommended for voice notes, mp3/m4a for audio)
durationNoDuration in seconds (shown in the bubble)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only restates the ptt distinction already present in the schema and adds the 'with waveform' rendering detail. Nothing is said about permissions, whether url and file are mutually exclusive in practice, size/duration limits, or what happens on delivery failure for a tool that produces an outbound side effect.

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 zero waste that front-loads the action and then the two mode options. Nothing redundant or padded.

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 five-parameter send tool with full schema coverage and no output schema, the description is adequate to identify the tool but thin on operational behavior. An agent could invoke it correctly from the schema alone, but would not know its limits or failure modes.

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 every parameter (to, ptt, url, file, duration) is already documented in the input schema. The description adds no format guidance, defaults, or constraints beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Send an audio file') and immediately distinguishes its two delivery modes (voice note with waveform vs. regular audio message), which separates it from sibling send tools like wa_send_document or wa_send_video. It does not name any sibling explicitly, so it stops short of full differentiation.

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 two mode names: an agent can infer that a push-to-talk voice note is the default and regular audio is the alternative. There is no explicit when-not guidance, no mention of when to choose this over wa_send_document for audio files, and no prerequisites stated.

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