Skip to main content
Glama

youtube_product_by_id

Destructive

采集 YouTube 视频基本信息(product),含播放量、发布时间与视频分类 采集方式:通过Video ID采集 示例参数:video_id=8RePenzQH80 必填参数: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_product_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

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true, so the safety profile is covered. The description adds useful scope (which metadata is captured) but stays silent on the file-writing behavior implied by the file_name parameter and on whether downloads actually occur, which is exactly the 'destructive' side an agent needs to know about.

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?

Four short, front-loaded lines: purpose, method, example, required parameter. Efficient overall, though the '必填参数:video_id' line largely repeats the schema's required array and the example value adds little beyond the schema's own description.

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

Completeness3/5

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

The tool has 5 parameters and no output schema, and the description only explains the metadata-collection aspect while ignoring the three download/subtitle parameters that materially change what the call does. An agent could call this believing it only fetches stats and be surprised by file output; the 100% schema coverage limits the damage but does not fully close the gap.

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 baseline is 3. The description contributes a concrete example value (video_id=8RePenzQH80) and restates the one required parameter, but adds no meaning for file_name, selected_only, subtitles_type, or subtitles_language beyond what the schema already documents.

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 action (采集 YouTube 视频基本信息) and names the fields returned (播放量、发布时间、视频分类), plus the acquisition method (通过Video ID采集). That method line effectively separates it from the URL-based siblings such as youtube_video_by_url and youtube_video_post_by_url, though those tools are never named explicitly.

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 implied: '通过Video ID采集' tells the agent it must already have an ID, which weakly signals when this is the right tool versus URL-based siblings. There is no explicit when-not guidance, no alternative named, and no mention of prerequisites such as needing network access or the video being public.

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