Skip to main content
Glama

download_media

Downloads media from a specified WhatsApp message to local disk and returns the saved file path for access or processing.

Instructions

Download media from a recent message to local disk and return the file path.

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

Input Schema

NameRequiredDescriptionDefault
chatYesChat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us).
save_dirNoDirectory to write into (default: <auth>/media).
message_idYesId of the message whose media to download.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.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 supplied, so the description carries the full behavioral burden. It does disclose the key side effect (files written to local disk) and the return value (file path), but says nothing about behavior when the message has no media or the media has expired, whether existing files are overwritten, permission requirements, or size limits — significant gaps for a tool that writes to disk.

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 front-loaded sentence that names the action, the source, the destination, and the return value with no filler.

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?

With a fully documented three-parameter schema and no output schema, the definition covers the essentials; the return path is even stated. It is still thin for a filesystem-writing tool with no annotations, since failure modes and disk-side effects are unaddressed.

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 chat formats, message_id, and the save_dir default are already fully documented in the schema. The description adds only the loose notion of 'recent message' and confirms the disk destination, so the baseline of 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 sentence states a specific verb (download), a specific resource (media attached to a message), and the outcome (written to local disk, file path returned). That is enough for an agent to tell this apart from read-oriented siblings like get_messages or get_message_context, though it never names an alternative tool 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?

'From a recent message' implies the message must be recent and still exist, and the requirement for a message_id implies a prior lookup step, but the description never states when to use this instead of an alternative or what to do first. Usage is inferable rather than spelled out.

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