Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_search_videos

Read-only

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

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": {
      "keyword": "<keyword>"
    },
    "name": "bilibili_search_videos"
  }
}

Input 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

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

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. Changed28 schema fields changed
    • addedOutput schema / properties / items / items / properties / aid / title
      Added value: +"Aid"
    • addedOutput schema / properties / items / items / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / items / items / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / items / items / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / items / items / properties / author / title
      Added value: +"BilibiliAuthorData"
    • addedOutput schema / properties / items / items / properties / bvid / title
      Added value: +"Bvid"
    • addedOutput schema / properties / items / items / properties / category_id / title
      Added value: +"Category Id"
    • addedOutput schema / properties / items / items / properties / category_name / title
      Added value: +"Category Name"
    • addedOutput schema / properties / items / items / properties / collect_count / title
      Added value: +"Collect Count"
    • addedOutput schema / properties / items / items / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / items / items / properties / content_id / title
      Added value: +"Content Id"
    • addedOutput schema / properties / items / items / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / items / items / properties / danmaku_count / title
      Added value: +"Danmaku Count"
    • addedOutput schema / properties / items / items / properties / description / title
      Added value: +"Description"
    • addedOutput schema / properties / items / items / properties / duration_seconds / title
      Added value: +"Duration Seconds"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / items / items / properties / share_url / title
      Added value: +"Share Url"
    • addedOutput schema / properties / items / items / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / items / items / properties / topic_tags / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / topic_tags / items / title
      Added value: +"BilibiliTopicTagData"
    • addedOutput schema / properties / items / items / properties / topic_tags / title
      Added value: +"Topic Tags"
    • addedOutput schema / properties / items / items / properties / view_count / title
      Added value: +"View Count"
    • addedOutput schema / properties / items / items / title
      Added value: +"BilibiliSearchVideoData"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / properties / next_page_token / title
      Added value: +"Next Page Token"
    • addedOutput schema / title
      Added value: +"BilibiliSearchResult"
  4. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The readOnlyHint=false is not a contradiction: the annotations already declare this a read-only, open-world search, so safety is covered. The description adds only that pagination, sorting, publish-time and duration filtering are supported, which largely restates the schema; it says nothing about result caps, rate limiting, or how many items a page returns beyond the existence of page_token.

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 dense sentence that leads with the purpose, then routing, then capabilities, so nothing important is buried. It is slightly overloaded with the capability list that the schema already carries, but no sentence is wasted.

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?

With an output schema present, the description rightly omits return-value details, and all seven parameters are documented in the schema. What remains thin is pagination termination behavior and guidance on merging multi-page results, which the description leaves entirely to the schema's page_token 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%, so all seven parameters, including the enum meanings and the strict opaque-token rules for page_token, are already fully documented in the schema. The description's mention of "支持 page_token 翻页、排序、发布时间和时长筛选" adds no semantics beyond that, so the baseline 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 opens with a specific verb and resource ("搜索 Bilibili 视频") and immediately scopes it against the ID/URL-based retrieval siblings, so an agent can distinguish it without opening the schema. The resource is unambiguous relative to the other search siblings (articles, users).

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?

It states the positive trigger (user wants to find videos by search term) and the negative trigger (already have a video/article/dynamic link or content ID → use the unified detail or comment tool). The routing is clear but it points at tool families rather than naming exact siblings, and it doesn't contrast with bilibili_search_articles or bilibili_search_users when the user's intent is ambiguous.

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