Skip to main content
Glama

Cancel YouTube download

cancel_youtube_download
DestructiveIdempotent

Stop a comments download that is still created or downloading. Comments gathered so far are kept as partial results. Cancelling does not refund: every canceled video or post, including ones not started yet, is charged 100 credits plus 1 per comment collected, and the 100-credit start fee of a playlist, channel, or custom-list download, once charged, is kept, so it saves only the comments not yet collected. For a playlist, channel, or custom-list download, every unfinished item is canceled too; its status shows canceled at once, but items finish in the background, so wait until commentsCount appears before getting the file. A single download changes to canceled once its comments are saved (seconds, longer for large ones), or ends as finished if it was already completing. Check with get_youtube_download, then get the data with get_youtube_download_file. A download that already ended keeps its status and returns canceled false; for an errored or canceled bulk download, its items still running are stopped. Use it only when the user asks to stop a download; it cannot delete downloads.

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

Input Schema

NameRequiredDescriptionDefault
idYesDownload ID returned by download_youtube_comments or list_youtube_downloads.

Output Schema

NameRequiredDescriptionDefault
idYesDownload ID.
statusYesStatus before this call: created, downloading, finished, error, or canceled.
messageYesWhat happened.
canceledYestrue when cancellation was requested; false when the download had already ended and keeps its status.
progressUrlYesWeb page where the signed-in user can watch the download and get its files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes far beyond the annotations (destructiveHint, idempotentHint) by disclosing billing consequences: no refund, 100 credits plus 1 per comment, start fee retained. It also explains asynchronous cancellation semantics (status flips immediately but items finish in the background; wait for commentsCount), and how already-ended downloads return canceled=false, which is consistent with idempotentHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, but the remainder is a dense run-on block packing billing, async status, and edge cases into long sentences. Every fact is relevant, yet the credit-charging clauses are repeated in effect ('does not refund' plus the itemized fee explanation), hurting readability.

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?

For a destructive, asynchronously completing cancel operation, the description covers cost, status transitions, background completion, no-op behavior on finished downloads, and the follow-up tools. With an output schema and annotations present, nothing material an agent needs before calling is missing.

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?

Only one parameter, and the schema already documents 'id' fully with its pattern and its source (download_youtube_comments or list_youtube_downloads) at 100% coverage. The description adds no format or sourcing detail beyond the schema, so the high-coverage baseline of 3 applies.

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 (stop/cancel) and resource (a YouTube comments download), and scopes it precisely to downloads that are 'still created or downloading.' The mention of single vs. playlist/channel/custom-list downloads makes the scope unambiguous against siblings like download_youtube_comments.

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?

Explicitly says 'Use it only when the user asks to stop a download; it cannot delete downloads,' which is a clear when/when-not rule, and routes the agent to get_youtube_download then get_youtube_download_file for follow-up. It stops short of naming any alternative cancellation path, so a 4 rather than 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.