Skip to main content
Glama

Get YouTube download file

get_youtube_download_file
Read-onlyIdempotent

Get the file link for a comments download in one format. Bulk (playlist, channel, or custom-list) downloads give a ZIP of per-item files, without items that have no data, so it can be empty. Call it once get_youtube_download reports finished; before that it fails as not_ready, so wait and repeat the same call. After error or cancellation the link may hold partial results; a single download with no data answers not found. Transcripts and channel details return their own fileUrl instead. The link is public by ID, so share it only with the user.

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": {
      "id": "<id>"
    },
    "name": "get_youtube_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDownload ID returned by download_youtube_comments or list_youtube_downloads.
formatNoFile format: json for structured data, csv or xlsx for spreadsheets, html for a readable page, txt for plain text.json

Output Schema

NameRequiredDescriptionDefault
idYesDownload ID.
urlYesFile link. Public by ID: anyone with it can download the file.
formatYesRequested file format.
statusYescreated: queued. downloading: collecting comments. finished: done. error: stopped by a failure. canceled: stopped by the user. The last three are final unless the user restarts the download.
messageNoShort instruction for using the link.
itemsTypeNoBulk downloads only: which items were collected.
contentTypeYesKind of source that was downloaded.
availabilityNocheck_download_endpoint: the link itself reports whether a file exists; this call does not check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, yet the description adds substantial context beyond them: bulk downloads return a ZIP of per-item files, items without data are omitted so the ZIP can be empty, and results may be partial after error or cancellation. That is genuine behavioral disclosure the annotations do not carry.

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?

Five tight sentences with no filler, front-loaded with the purpose, then the readiness gate, then the edge cases, then the sharing caveat. Every sentence carries actionable information.

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

Completeness5/5

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

The tool is a simple two-parameter read with a 100% documented schema and an output schema, so return values need no explanation. The description nonetheless covers the readiness precondition, empty/partial-result cases, the not-found case, and link-sharing safety, leaving nothing an agent needs to call it correctly.

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% and the schema already documents both the id pattern and the format enum with per-value meaning, so the baseline is 3. The description adds a little beyond that by framing the output as one format and warning that the resulting link is public by ID, which informs how the id/result should be handled.

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 and resource ('Get the file link for a comments download') and immediately scopes it to one format. It also distinguishes itself from related tools by noting that transcripts and channel details return their own fileUrl, so an agent can tell which tool yields the raw download artifact.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('Call it once get_youtube_download reports finished') and the exact failure mode to expect before that ('not_ready', so wait and repeat the same call). It also names the alternative path for transcripts and channel details, covering when not to use it.

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.