Skip to main content
Glama
wsapi-chat

WSAPI WhatsApp MCP Server

whatsapp_send_audio

Send an audio file as a regular WhatsApp audio attachment from base64 data or a public URL, returning the message ID.

Instructions

Send an audio file as a regular audio attachment, from base64 data or a public URL. For a voice note that plays like a recorded message, use whatsapp_send_voice. Not idempotent. Returns the message ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient JID
urlNoURL of the audio file
dataNoBase64 encoded audio data
replyToNoMessage ID to reply to
mentionsNo
mimeTypeNoMIME type (auto-detected if omitted)
viewOnceNo
isForwardedNo
replyToSenderIdNo
ephemeralExpirationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv2.0.0
    • removedInput schema / properties / audioBase64
      Removed value: -{
      -  "description": "Base64 encoded audio data (alternative to audioURL)",
      -  "optional": true,
      -  "type": "string"
      -}
    • removedInput schema / properties / audioURL
      Removed value: -{
      -  "description": "URL of the audio file to send (alternative to audioBase64)",
      -  "optional": true,
      -  "type": "string"
      -}
    • addedInput schema / properties / data
      Added value: +{
      +  "description": "Base64 encoded audio data",
      +  "type": "string"
      +}
    • addedInput schema / properties / ephemeralExpiration
      Added value: +{
      +  "enum": [
      +    "off",
      +    "24h",
      +    "7d",
      +    "90d"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / isForwarded / description
      Removed value: -"Whether the message should be marked as forwarded"
    • removedInput schema / properties / isForwarded / optional
      Removed value: -true
    • removedInput schema / properties / mentions / description
      Removed value: -"List of phone numbers to mention"
    • removedInput schema / properties / mentions / optional
      Removed value: -true
    • changedInput schema / properties / mimeType / description
      Previous value: -"MIME type of the audio file"New value: +"MIME type (auto-detected if omitted)"
    • removedInput schema / properties / mimeType / enum
      Removed value: -[
      -  "audio/mpeg",
      -  "audio/mp3",
      -  "audio/ogg",
      -  "audio/wav"
      -]
    • changedInput schema / properties / replyTo / description
      Previous value: -"ID of the message being replied to"New value: +"Message ID to reply to"
    • removedInput schema / properties / replyTo / optional
      Removed value: -true
    • addedInput schema / properties / replyToSenderId
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / to / description
      Previous value: -"Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)"New value: +"Recipient JID"
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "URL of the audio file",
      +  "type": "string"
      +}
    • removedInput schema / properties / viewOnce / description
      Removed value: -"Whether the audio should be sent as view-once"
    • removedInput schema / properties / viewOnce / optional
      Removed value: -true
    • changedInput schema / required
      Previous value: -[
      -  "to",
      -  "mimeType"
      -]New value: +[
      +  "to"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true. The description repeats non-idempotency and adds the useful return value (message ID), but does not disclose additional behavioral context such as permission requirements, rate limits, or what happens on failure. With annotations covering the safety profile, a 3 is appropriate.

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?

Three short sentences, front-loaded with purpose and the sibling alternative. The final two sentences about idempotency and return value are compact, though 'Not idempotent' is redundant with the annotation; every sentence still earns its place efficiently.

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 10-parameter mutation tool with no output schema, the description covers purpose, alternative tool, idempotency, and return value. However, it leaves most parameters unexplained and omits operational details like authentication or rate limits, so an agent still has gaps when invoking non-trivial options.

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 only 50%, so the description must compensate for undocumented parameters. It mentions base64 data and public URL, but those two parameters already have matching descriptions in the schema, and the remaining eight parameters (e.g., replyTo, mentions, mimeType, viewOnce, ephemeralExpiration) are neither explained nor clarified. The description adds little meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Send), resource (an audio file), and attachment mode (regular audio attachment). It distinguishes the tool from its sibling whatsapp_send_voice by naming the alternative explicitly, so an agent can tell them apart without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative tool and the condition for selecting it: for a voice note that plays like a recorded message, use whatsapp_send_voice. It also clarifies the two source options (base64 data or public URL), leaving no ambiguity about when this tool is the right choice.

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

Deploy Server

Other Tools