Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_get_content_detail_by_id

Read-only

根据 Bilibili 内容 ID 自动识别并读取视频详情、专栏详情或动态详情;传 BV 号、av{aid} 形式的视频 aid、post_id 或 cv 专栏 ID。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
content_idYesBilibili 内容 ID;读取视频详情时优先传 bvid(BV...)。如果只有视频 aid,建议传 av{aid}(如 av116668525186915)以明确表示视频;不建议直接传裸数字 aid,因为裸数字也可能是专栏/动态 post_id,容易混淆并会按自动识别处理。读取专栏详情时传 cv 专栏 ID(如 cv9689859);读取动态/opus 详情时可传 /opus/{id} 或 /dynamic/{id} 路径中的数字 post_id。不要传链接或分享文案。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
postYes专栏/动态详情;当输入解析为专栏或动态链接时返回,否则为 null。
videoYes视频详情;当输入解析为普通视频链接时返回,否则为 null。
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
content_idYes统一内容 ID;便于从详情继续串内容相关工具。视频固定返回 bvid(BV...);专栏/动态固定返回 post_id,且与 post.post_id 相同。可直接复用到 bilibili_get_content_detail_by_id 或 bilibili_get_content_comments_by_id。
content_typeYes内容类型:video=视频详情;article=专栏详情;dynamic=动态详情,包含带图片的动态。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/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 valuable behavioral context: the tool auto-detects content type across videos, articles, and dynamics, and handles ambiguous IDs via automatic recognition. This exceeds annotation coverage without contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that names the action, the resource types, and the accepted ID forms. It contains no filler, redundant annotation repetition, or structural noise.

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?

Given the tool's complexity—multiple content types and ambiguous ID formats—the schema and description together provide rich invocation guidance, and an output schema exists so return-value explanations are unnecessary. The only minor gap is that alternative-tool routing for URL-based input is left to inference from sibling names rather than stated explicitly.

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 for content_id is 100%, and the schema already explains preferred formats, ambiguous bare-number handling, and disallowed inputs. The tool description mentions the same ID families at a higher level but adds little meaning beyond what the schema already provides, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action ('自动识别并读取' / automatically identify and read) and a specific resource ('视频详情、专栏详情或动态详情'). It also distinguishes this tool from the sibling by naming the input mode (by ID) and enumerating accepted ID formats, so an agent can tell it apart from bilibili_get_content_detail_by_url without opening the schema.

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?

The description gives clear input-format guidance and an explicit 'do not pass links' exclusion, but it does not explicitly state when to prefer this tool over bilibili_get_content_detail_by_url or other siblings. The usage context is implied by the tool name and sibling list, but the description itself leaves alternative-tool routing implicit.

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