Skip to main content
Glama

youtube_video_by_url

Destructive

下载 YouTube 视频文件(video file) 采集方式:通过URL采集 示例参数:url=https://www.youtube.com/watch?v=_SdpvpvVrLY 必填参数:url

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>"
    },
    "name": "youtube_video_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURLs:该参数用于指定待采集的访问 URL 地址。
bitrateNo比特率:该参数用于设置音频文件的比特率(码率),影响音质与文件大小。请注意,如果所选比特率过高,分辨率较低,可能导致下载失败;可选值:48Kbps(48)、64 Kbps(64)、128 Kbps(128)、160 Kbps(160)、256 Kbps(256)、320 Kbps(320)320
file_nameNoBuilder 输出文件名,不传时使用 {{TasksID}}。{{TasksID}}
resolutionNo分辨率:该参数用于指定采集视频的分辨率。360p
video_codecNo视频编码:该参数用于指定输出视频图像压缩方式,默认采用 VP9,可切换为H.264/AVC、AV1格式。如需其他形式,请联系您的客户经理;可选值:H.264/AVC(avc1)、VP9(vp9)、AV1(av01)vp9
audio_formatNo音频格式:该参数制定采集的音频文件的输出格式;可选值:Opus格式(opus)、AAC格式(m4a)opus
selected_onlyNo是否仅下载已选规格:选择true时,如果没有符合要求的规格,则不下载。 选择false时,如果没有符合要求的规格,则按照YouTube支持的默认规格继续下载;可选值:否(false)、是(true)false
subtitles_languageNo字幕语言:该参数定义了采集 YouTube 时下载字幕的语言。zh-Hans

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds nothing beyond that: it does not mention that files are written to storage, where they land, that downloads can fail on incompatible bitrate/resolution combinations, or any rate/authentication constraints.

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 action, but two of the three lines ('示例参数', '必填参数') simply restate the schema's required field and format, so part of the text does not earn 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 8 parameters (bitrate, resolution, codec, audio format, subtitles, selected_only) and no output schema, the definition should say at least what the result is (a produced file) and how option interactions can cause failure. The rich per-parameter descriptions compensate somewhat, but the top-level description is thin for a destructive, file-producing tool.

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% and six parameters carry exhaustive enum labels, so the schema does the heavy lifting. The description only echoes the required url and gives an example value, adding no meaning beyond the structured fields; baseline 3 applies.

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: download a YouTube video file, with the collection route (via URL) and an example URL. An agent can tell this is the video-file variant rather than an audio or transcript tool. It stops short of naming siblings such as youtube_audio_by_url or youtube_video_post_by_url to sharpen the distinction.

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?

It says only that collection happens via URL and that url is required — which the schema already enforces. There is no guidance on when to prefer this tool over the sibling URL-based tools (audio, post, transcript) or any precondition/exclusion.

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