Skip to main content
Glama

Download media from a link

download_media

Download what a link points at into a project: the video behind a post on YouTube, X, Instagram, TikTok or another video site, or a video, audio or image file. An image joins the project as a photo. It joins the project with the same thumbnails, waveform and proxy as any other media.

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": {
      "project": "<project>",
      "url": "<url>",
      "context": "<context>"
    },
    "name": "download_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesLink to the post, or to a video, audio or image file
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
projectYesProject id or exact name
audioOnlyNoTake the audio track alone, as m4a
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
maxHeightNoCap the video height, e.g. 1080
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "url"
      -]New value: +[
      +  "project",
      +  "url",
      +  "context"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description goes beyond them by describing the resulting state — the media joins the project with the same thumbnails, waveform and proxy as any other media, and audioOnly yields an m4a. It does not cover failure modes, synchronous-vs-job behaviour, or limits, which matters given job_status/cancel_job siblings exist.

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 and scope, with no filler about analytics or internals. Minor redundancy in repeating 'joins the project' in consecutive sentences, though the two instances carry different information (photo vs. thumbnails/waveform/proxy).

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?

For a 7-parameter mutation-style tool with a fully documented schema and no output schema, the description covers input sources and post-download effects adequately. The main gap is that it says nothing about whether the call is long-running or returns a job handle, which would change how an agent proceeds after invoking it.

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 the schema already documents url, project, audioOnly, maxHeight, llm_model and context. The description only lightly reinforces the url parameter by listing accepted sources and the audioOnly outcome; it adds nothing about project id-vs-name resolution or the height cap. Baseline 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 description states a concrete verb and resource ('Download what a link points at into a project') and enumerates the accepted sources (YouTube, X, Instagram, TikTok, other video sites) plus file types (video, audio, image). It clearly separates remote-URL ingestion from local-file ingestion by implication, though it never names the nearest siblings (upload_media, add_media) to make the distinction explicit.

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?

Usage is only implicit: the agent must infer that this is the tool for media reachable by a link rather than a local file, and that an image will be stored as a photo. There is no explicit when-to-use/when-not-to-use statement, no prerequisite that the target project must already exist, and no mention of how this differs from add_media or upload_media.

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