Skip to main content
Glama

wa_download_media

Downloads media from a recent WhatsApp message and saves it to a local file, letting AI agents retrieve images, videos, audio, documents, or stickers by chat and message ID.

Instructions

Download the media (image/video/audio/document/sticker) from a recent incoming or outgoing message in a chat and save it to a local file.

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": {
      "chat": "<chat>",
      "message_id": "<message_id>"
    },
    "name": "wa_download_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesPhone number or group JID the message is in
out_pathNoWhere to save the file (default: ./downloads/<message_id>)
message_idYesMessage id (stanzaId) — find it via wa_read_messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.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 disclosure burden; it does disclose that the operation writes a file to local disk and that only recent messages are eligible, which are meaningful behavioral facts. It omits return value (there is no output schema, so the caller cannot know it gets back a path), overwrite behavior when the target file exists, and what failure looks like for expired media.

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 well-formed sentence with the action, the resource, the accepted media types, the source constraint, and the outcome all front-loaded. Nothing is padded and nothing needs trimming.

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 three-parameter write-to-disk tool with no annotations and no output schema, the definition covers the what and where adequately but leaves the caller guessing about the result of the call and about failure modes such as expired or missing media. The 'recent' qualifier is doing real but under-specified work.

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 coverage is 100% and each of the three parameters carries its own description, including where to find the message_id. The description adds no parameter-level meaning beyond the schema, so the baseline of 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 (download) and resource (media), enumerates the media types (image/video/audio/document/sticker), and names both the source (a recent incoming or outgoing message in a chat) and the destination (a local file). It is clearly distinguishable from the sibling set, which contains no other media-fetching tool, 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?

The phrase 'from a recent incoming or outgoing message' implies the usage context and quietly warns that only recent messages are supported, which is useful selection guidance. However, it never says when not to use the tool, what to do if the media is expired, or which sibling to use for newer/older messages, so usage is only implied.

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