Skip to main content
Glama

Download message media

download_media
Read-onlyIdempotent

Download media content (image, video, audio, document, sticker) from a WhatsApp message. Returns base64-encoded media data with metadata.

Get message_id from query results. The message must be a media message.

Examples: Download an image: { message_id: "true_123@c.us_3EB0...", conversation_id: "123@c.us" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYesThe message ID (from query results)
target_sessionNoSession ID for multi-account routing
conversation_idYesThe conversation ID containing the message

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoThe JSON-compatible result returned by the Kaption extension

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds genuinely new context beyond that: the return is base64-encoded media plus metadata, and the call fails unless the target message is a media message. It omits size/timeout limits for large media, which would matter for base64 payloads.

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?

Purpose and return format are front-loaded, followed by the precondition and a compact example. There is minor redundancy between 'Get message_id from query results' and the schema's own '(from query results)' note, but no wasted sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return fields, and annotations plus a 100%-covered schema handle safety and parameters. The stated media precondition and ID provenance close the main gaps; only edge cases like oversized media handling are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining where message_id comes from and providing a concrete example with a realistic ID format ('true_123@c.us_3EB0...') that the schema's abstract string type does not convey. target_session is left to the schema only.

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 (Download) and resource (media content from a WhatsApp message), and enumerates the media kinds covered (image, video, audio, document, sticker), which no sibling tool overlaps with. An agent can identify the right tool without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear precondition ('The message must be a media message') and routes the agent to the source of the ID ('Get message_id from query results'), naming the `query` sibling as the prerequisite step. It does not state when NOT to use it (e.g., non-media messages, or when only metadata is needed), so it falls short of a 5.

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