Skip to main content
Glama

Download YouTube comments

download_youtube_comments

Start a background job that collects the comments of one YouTube video, Short, live stream, or community post, or of every item in a playlist or channel. Returns a download ID, not the comments: poll get_youtube_download until the status is final, then get the data with get_youtube_download_file. Not for spoken content (get_youtube_transcript) or channel statistics (get_youtube_channel_details); to reuse an earlier download, find it with list_youtube_downloads. Cost: 1 credit per comment plus 100 per video or post, charged as each ends, partial results included; a playlist or channel download also costs 100 credits to start, charged once its item list is ready. Refused up front when the account is out of credits or past due. Never retried automatically: after an outcome_unknown error, check list_youtube_downloads before calling again. Example: {url: "https://www.youtube.com/@example", contentType: "channel", itemsType: "video"}.

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": {
      "url": "<url>",
      "contentType": "<contentType>"
    },
    "name": "download_youtube_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic YouTube URL of the kind named by contentType: a watch, youtu.be, /live/, or /embed/ link (video, live), a /shorts/ link (short), a /post/ link (community), a /playlist?list= link (playlist; a watch link with &list= is rejected), or an /@handle or /channel/ link (channel; /c/ and /user/ links are rejected). https:// is optional.
itemsTypeNoRequired for playlist and channel, rejected otherwise. Which items to collect: video, short, or community comments; live-comments for comments on past live streams; live-chat for their chat replay. Playlists cannot use community.
contentTypeYesWhat the url points to. video, short, live, and community download one item; playlist and channel download every item and require itemsType.

Output Schema

NameRequiredDescriptionDefault
idYesDownload ID for get_youtube_download and get_youtube_download_file.
modeYesbulk for playlist and channel downloads, whose file is a ZIP; single otherwise.
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.
contentTypeYesThe requested contentType.
progressUrlYesWeb page where the signed-in user can watch progress and download files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses credit costs, when charges occur, partial-result inclusion, upfront refusal when out of credits or past due, and no automatic retry after outcome_unknown. It also warns to check list_youtube_downloads before retrying, which is meaningful operational context for a non-idempotent background job.

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?

The description is dense but well structured, front-loading the asynchronous job model and the polling workflow. The cost and retry details are necessary, though the passage is long enough that some readers may need to parse it carefully.

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 complex, asynchronous, credit-charged download tool, the description covers the essential workflow, cost model, refusal conditions, and retry hazard. Since an output schema exists, it appropriately does not attempt to explain return values in detail.

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 input schema already documents the URL forms, contentType meanings, and itemsType requirements. The description adds a concrete example payload and reinforces that channel/playlist downloads require itemsType, but it does not add substantial parameter semantics beyond the schema.

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?

The description opens with a specific verb and resource: 'Start a background job that collects the comments of one YouTube video, Short, live stream, or community post, or of every item in a playlist or channel.' It immediately clarifies that it returns a download ID rather than comments, which distinguishes it from retrieval siblings.

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?

It explicitly routes the agent through the workflow: poll get_youtube_download until final, then use get_youtube_download_file. It also names when not to use it, citing get_youtube_transcript for spoken content and get_youtube_channel_details for channel statistics, and points to list_youtube_downloads for reusing an earlier download.

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.