Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_get_content_comments_by_url

Read-only

根据 Bilibili 视频、专栏或动态链接、短链接或分享文案获取一级评论列表。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesBilibili 视频、专栏或动态链接,t.bilibili.com 动态链接、短链接或包含链接的分享文案;用于获取该内容的一级评论;不要传用户主页链接、BV 号、aid、纯数字 ID 或 comment_id。
sort_typeNo评论排序方式:hot=最热,time_descending=最新。默认 hot。hot
page_tokenNoBilibili 一级评论分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一内容、同一排序和同一入口的评论分页链路;content_id 入口 / by_id 工具返回的 token 只能继续用于 content_id 入口 / by_id 工具,url 入口 / by_url 工具返回的 token 只能继续用于 url 入口 / by_url 工具;不能跨能力、入口、内容或排序复用。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes当前页内容评论列表。
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
comment_countYes平台返回的评论总数,通常包含一级评论和回复;不是当前页数量,也不等于 items 中一级评论条数;不可用时为 null。
next_page_tokenYes下一页不透明分页令牌;为空表示没有更多一级评论。继续获取一级评论下一页时,必须将返回的完整 next_page_token 原样作为 page_token 传回,并沿用本次调用入口;content_id 入口 / by_id 工具返回的 token 只能继续用于 content_id 入口 / by_id 工具,url 入口 / by_url 工具返回的 token 只能继续用于 url 入口 / by_url 工具。不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容;不能跨能力、入口、内容或排序复用。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 itself does not add behavioral context such as pagination behavior, response structure, or the non-reusable page token rules; those are deferred to the schema.

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 captures the tool's scope and input types without wasted words. It is appropriately concise because the detailed parameter behavior lives in the input schema.

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?

The schema and output schema together provide rich context: URL format restrictions, sort enum, opaque page_token constraints, and likely response fields. The main description is sufficient for selecting the tool when given a URL, though it could slightly improve by explicitly calling out the by_id alternative or the top-level-only scope in the tool's own text.

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 schema thoroughly documents the url, sort_type, and page_token parameters, including the opaque-token rules. The main description adds no additional parameter semantics, so the baseline score of 3 applies.

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 the action: retrieve a first-level comment list based on a Bilibili video, article, dynamic link, short link, or share text. This precise verb-and-resource phrasing also distinguishes it from the by_id comment tool and the comment-replies sibling.

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 clearly implies the main use case: when you have a Bilibili content URL and want top-level comments. However, it does not explicitly reference sibling alternatives or state when not to use this tool, even though the schema's url description adds exclusions like 'do not pass BV number, aid, or numeric ID'.

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