Skip to main content
Glama

download_media

Download all media attached to an X/Twitter post or save a single media URL to disk, returning file paths for opening or analysis.

Instructions

Download a post's media (or a single media URL) to disk.

Pass a tweet id/URL to get everything attached, or a direct pbs/video URL. Returns the saved paths so you can open or analyse them.

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": {
      "source": "<source>"
    },
    "name": "download_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
dest_dirNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.6

TDQS

B3.4/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 behavioral burden; it does disclose the key trait that this writes files to disk and that the response contains the saved paths. It says nothing about authentication requirements, rate limits, filename collisions, or what happens when the destination already contains files — all material for a filesystem-writing tool.

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 the core action, with no filler. The closing sentence on returned paths slightly duplicates the output schema, but it is brief enough not to be wasteful.

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?

An output schema exists, so the return-value explanation is not strictly needed, and the input modes for 'source' are covered. The definition still leaves a real gap around 'dest_dir' defaults and the side effects of writing to disk, which matters for a two-parameter tool with no annotations.

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 0%, so the description must compensate. It does a good job on 'source', spelling out that a tweet id/URL fetches all attachments while a direct pbs/video URL fetches one item. The second parameter 'dest_dir' is never mentioned, so its default empty value and resulting download location remain unexplained.

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 ('Download a post's media ... to disk') and clarifies the accepted inputs, which separates it from a listing tool like get_user_media. It stops short of explicitly contrasting itself with any sibling, so the differentiation is implied rather than stated.

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?

It gives concrete input guidance ('Pass a tweet id/URL ... or a direct pbs/video URL'), which is effectively when-to-use context. However, it never states when not to use it, nor does it point to an alternative such as get_user_media for merely listing media without downloading.

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