Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_search_videos

Read-only

搜索 Bilibili 视频。用户需要按搜索词查找视频时使用;已有视频、专栏或动态链接,或已有内容 ID 时使用对应的统一详情或评论工具;支持 page_token 翻页、排序、发布时间和时长筛选。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes搜索 Bilibili 视频的搜索词,可传关键词或短语,例如品牌名、话题、人物名或产品名;不要传视频链接、专栏/动态链接、用户主页链接、BV 号、aid、专栏/动态 ID 或 page_token。
sort_typeNo排序方式:general=综合排序,view_count_descending=最多播放,time_descending=最新发布,danmaku_count_descending=最多弹幕,collect_count_descending=最多收藏。general
page_tokenNoBilibili 视频搜索分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一关键词、排序、发布时间筛选和时长筛选的搜索链路,不能跨能力、关键词或筛选条件复用。消费多页搜索结果时,建议按 content_id 作为稳定键合并结果。
duration_rangeNo视频时长筛选:all=全部时长,under_10_minutes=10分钟以下,between_10_and_30_minutes=10-30分钟,between_30_and_60_minutes=30-60分钟,over_60_minutes=60分钟以上。all
publish_time_rangeNo发布时间筛选:all=全部日期,day=最近一天,week=最近一周,half_year=最近半年;如需自定义日期范围,直接同时填写 publish_time_start_date 和 publish_time_end_date。all
publish_time_end_dateNo自定义发布时间结束日期,格式 YYYY-MM-DD;需要自定义日期范围时必须和 publish_time_start_date 同时填写,且 publish_time_range 保持 all。
publish_time_start_dateNo自定义发布时间开始日期,格式 YYYY-MM-DD;需要自定义日期范围时必须和 publish_time_end_date 同时填写,且 publish_time_range 保持 all。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes当前页视频搜索结果。
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
next_page_tokenYes下一页不透明分页令牌;为空表示没有更多视频搜索结果。继续获取视频搜索下一页时,必须将返回的完整 next_page_token 原样作为 page_token 传回;只能用于同一关键词、排序、发布时间筛选和时长筛选的搜索链路;消费多页搜索结果时,建议按 content_id 作为稳定键合并结果。不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容;不能跨能力、关键词或筛选条件复用。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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, lowering the burden on the description. The description adds useful behavioral context: it supports page_token pagination, sorting, publish-time filtering, and duration filtering. It discloses no destructive behavior because there is none.

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 dense sentence with no filler: it front-loads the core purpose, then gives routing guidance, then enumerates the supported capabilities. Every clause contributes actionable information.

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

Completeness5/5

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

For a 7-parameter search tool, the combination is fully adequate: the description explains when to use it, the schema covers all parameter semantics at 100%, an output schema exists, and annotations declare the read-only and open-world behavior. Nothing needed for correct invocation is missing.

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 already thoroughly documents all 7 parameters, including the keyword exclusion rules, page_token invariants, and filter enum meanings. The tool description only summarizes the supported filter dimensions without adding parameter-level meaning beyond what the schema provides, which is the baseline case.

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?

Description opens with a specific verb-resource pair: 'search Bilibili videos' (搜索 Bilibili 视频), and clarifies the exact trigger condition: a user needs to find videos by search term. It also explicitly distinguishes itself from detail/comment lookup tools for existing links or IDs, and from the sibling search tool for articles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use this tool ('when the user needs to search videos by search term') and when not to ('when already have a video/article/dynamic link or content ID, use the corresponding detail or comment tool'). It names the exclusion category but not specific sibling tool names, which are available in the sibling list.

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