Skip to main content
Glama

youtube_transcript_by_id

Destructive

下载 YouTube 字幕文件(transcript) 采集方式:通过Video ID采集 示例参数:video_id=8RePenzQH80;video_id=英文;video_id=Auto generated 必填参数:video_id

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": {
      "video_id": "<video_id>"
    },
    "name": "youtube_transcript_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYes视频唯一ID:该参数用于指定待采集的 YouTube 视频的唯一 ID。
file_nameNoBuilder 输出文件名,不传时使用 {{TasksID}}。{{TasksID}}
selected_onlyNo是否仅下载已选规格:选择true时,如果没有符合要求的规格,则不下载。 选择false时,如果没有符合要求的规格,则按照YouTube支持的默认规格继续下载;可选值:否(false)、是(true)false
subtitles_typeNo字幕类型:该参数用于指定采集的字幕是自动生成还是用户上传的;可选值:自动生成(auto_generated)、用户上传(uploader_provided)
subtitles_languageNo字幕语言:该参数定义了采集 YouTube 时下载字幕的语言。zh-Hans

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and readOnlyHint=false, so the safety profile is covered structurally; the description adds nothing beyond a restated required parameter. It does not say where the downloaded file lands, what happens on re-run/overwrite, or that this performs a live scrape subject to availability or rate limits. The misleading example values also conflict in spirit with the single-ID collection claim.

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?

It is short and front-loads the core action, which is good. However, the placeholder-style example block is both redundant with the schema and confusing, so not every line earns its place.

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

Completeness2/5

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

With five parameters, three enums, no output schema and a destructive/live-scrape profile, the definition should explain at minimum what artifact is produced and how subtitle type/language defaults behave. It covers only the required video_id, leaving an agent to infer the rest from the schema alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description actively degrades clarity by attaching language and subtitle-type example values to video_id instead of to subtitles_language and subtitles_type. It adds no meaning about how selected_only or file_name interact with the download.

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 specific verb and resource ('下载 YouTube 字幕文件') and scopes the collection method ('通过Video ID采集'), which lets an agent distinguish it from URL-based siblings like youtube_video_by_url. It does not name an alternative explicitly, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use / when-not-to-use guidance and no mention of prerequisites such as the video having captions or which subtitle types exist for a given video. Worse, the '示例参数' line assigns language and type values to video_id ('video_id=英文', 'video_id=Auto generated'), which is misleading rather than instructive.

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