Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_get_video_download_links

Read-only

根据 Bilibili 视频链接或分享文案获取本地 CLI 下载和 ffmpeg 合并所需的视频下载地址 manifest。

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": "bilibili_get_video_download_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesBilibili 视频链接、短链接或包含视频链接的分享文案;用于获取本地 CLI 下载和 ffmpeg 合并所需的视频下载地址 manifest;多 P 视频链接会按 URL 中的 p 参数选择对应分 P;不要传用户主页链接、专栏/动态链接、BV 号或 aid。

Output Schema

NameRequiredDescriptionDefault
aidYesB 站视频数字 aid,即老 AV 号的数字部分;仅作为备用视频标识。没有 bvid 时,建议拼成 av{aid} 作为 content_id 传入,避免裸数字和专栏/动态 ID 混淆。
cidYes本次下载地址对应的视频分 P cid。
bvidYesB 站视频 BV 号;读取视频详情时可作为 bilibili_get_content_detail_by_id 的 content_id 输入,优先使用 bvid;获取视频评论时也优先复用 bvid。
pageYes本次下载地址对应的分 P 序号;不可用时为 null。
titleYes视频标题;不可用时为空字符串。
pointsYes本次成功调用的积分消耗与账户积分余额。
headersYes本地下载时建议携带的 HTTP headers,通常包含 Referer 和 User-Agent。
platformYes平台标识,固定为 bilibili。
expires_atYes下载地址过期时间,秒级 Unix 时间戳;无法可靠判断时为 null。
selected_qualityYes服务端默认选择的清晰度描述;不可用时为空字符串。
download_manifestYes本地 CLI 下载和合并所需的 manifest。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额。"New value: +"本次接口完成时看到的当前积分余额,可为负数。"
    • removedOutput schema / properties / points / properties / balance / minimum
      Removed value: -0
  3. Changed26 schema fields changed
    • addedOutput schema / properties / aid / title
      Added value: +"Aid"
    • addedOutput schema / properties / bvid / title
      Added value: +"Bvid"
    • addedOutput schema / properties / cid / title
      Added value: +"Cid"
    • addedOutput schema / properties / download_manifest / properties / merge / properties / container / title
      Added value: +"Container"
    • addedOutput schema / properties / download_manifest / properties / merge / properties / strategy / title
      Added value: +"Strategy"
    • addedOutput schema / properties / download_manifest / properties / merge / title
      Added value: +"BilibiliDownloadMergeData"
    • addedOutput schema / properties / download_manifest / properties / mode / title
      Added value: +"Mode"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / backup_urls / title
      Added value: +"Backup Urls"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / bandwidth / title
      Added value: +"Bandwidth"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / codec / title
      Added value: +"Codec"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / ext / title
      Added value: +"Ext"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / quality / title
      Added value: +"Quality"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / type / title
      Added value: +"Type"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / url / title
      Added value: +"Url"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / download_manifest / properties / tracks / items / title
      Added value: +"BilibiliDownloadTrackData"
    • addedOutput schema / properties / download_manifest / properties / tracks / title
      Added value: +"Tracks"
    • addedOutput schema / properties / download_manifest / title
      Added value: +"BilibiliDownloadManifestData"
    • addedOutput schema / properties / expires_at / title
      Added value: +"Expires At"
    • addedOutput schema / properties / headers / title
      Added value: +"Headers"
    • addedOutput schema / properties / page / title
      Added value: +"Page"
    • addedOutput schema / properties / platform / title
      Added value: +"Platform"
    • addedOutput schema / properties / selected_quality / title
      Added value: +"Selected Quality"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / title
      Added value: +"BilibiliVideoDownloadLinksData"
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds meaningful context by saying the output is a manifest consumed by a local CLI downloader and ffmpeg merge, which tells the agent it receives addresses rather than media; it says nothing about multi-P handling, stream quality options, permissions, or failure modes.

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?

A single front-loaded sentence with no filler; the purpose and input source come first. It is slightly jargon-dense ('manifest', 'ffmpeg 合并') but every clause earns its place.

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

Completeness4/5

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

For a one-parameter read-only tool with a fully documented schema and an output schema, the description covers what the tool produces and why. The remaining gap is routing guidance versus the sibling detail-by-URL tool, which is a minor omission given the distinct return type.

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 the property text is unusually thorough, covering accepted formats, multi-P selection via the p parameter, and explicit exclusions. The description only restates that the input may be a link or share text, adding no meaning beyond the schema, so the baseline of 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 names a specific verb ('获取') and resource ('视频下载地址 manifest') and states the input source ('根据 Bilibili 视频链接或分享文案'). It is clearly distinct from every sibling, all of which retrieve content, comments, or user data rather than download manifests; it does not, however, explicitly contrast itself with bilibili_get_content_detail_by_url, which also accepts a video URL.

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: the description indicates the tool is for local CLI downloading plus ffmpeg merging, which hints when it applies, but it contains no explicit when-to-use, when-not-to-use, or alternative-tool guidance. The valuable exclusions (do not pass profile/column/dynamic links, BV id, or aid) live in the schema property text rather than in the description itself.

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