Skip to main content
Glama

youtube_audio_by_url

Destructive

下载 YouTube 音频文件(audio 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_audio_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}}
kilohertzNo千赫兹:千赫兹是频率单位,用来表示信号的频率,指的是每秒钟发生的周期性事件次数;可选值:48kHz(48000)、44.1kHz(44100)、32kHz(32000)、22.5kHz(22500)、16kHz(16000)、8kHz(8000)
audio_formatNo音频格式:该参数制定采集的音频文件的输出格式;可选值:Opus格式(opus)、AAC格式(m4a)opus
is_subtitlesNo是否需要字幕:该参数定义了采集 YouTube 音频时是否也采集字幕文件,字幕文件为 .vtt 格式。需要注意的是,下载结果时音频和字幕以两个文件形式保存。如需其他形式,请联系您的客户经理;可选值:是(true)、否(false)false
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.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true, and the description adds nothing beyond them — no mention of cost/quota, of what the destructive aspect actually means (a generated audio file), or of failure behavior. The '示例参数'/'必填参数' lines merely restate structured data. Nothing here contradicts the annotations, but the added value is near zero.

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 labeled lines, purpose front-loaded, zero filler prose. The '示例参数' and '必填参数' lines duplicate schema content, which is minor waste but not bloat.

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, 6 enums, no output schema and destructive/open-world annotations, the description is too thin: it never explains what the tool returns (a task ID and generated file, per the file_name default), that audio and subtitles arrive as two files, or how the many quality parameters interact. An agent must infer all of that from the schema alone.

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 schema itself fully documents bitrate, audio_format, kilohertz, is_subtitles, subtitles_language, selected_only and file_name. The description contributes only the url example, which is already implied by the schema's uri format; baseline 3 applies when the schema carries the parameter burden.

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 names a specific verb and resource — '下载 YouTube 音频文件' (download YouTube audio file) — and adds the acquisition mode ('通过URL采集'). This is clearly distinguishable from siblings like youtube_video_by_url or youtube_transcript_by_id, though those alternatives are never named.

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 states only that the input is a URL and that url is required. There is no guidance on when to choose audio extraction over youtube_video_by_url or youtube_transcript_by_id, nor any mention of prerequisites such as the video being public or available in the requested region.

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