Skip to main content
Glama
DavidLearning1023

bilibili-info-gathering

get_danmaku

Extract Bilibili danmaku into time-based signals—density curves, peak samples, repeated lines, and disclosure keywords—to find high-information moments and compare audience reactions with comments.

Instructions

取弹幕并压成"位置信号":密度曲线、最密时段+样本、高重复句、披露关键词。

为什么值得单独一条通道:弹幕是秒级的,能直接对上口播段落;评论只有发表时间。 而且广告披露常常只在弹幕里(实测某期简介无标注,弹幕 t=635s 直接写了"本期推广…")。

用途限制(重要):只用在两处—— ① 「延伸发散」:某段弹幕密度暴涨,往往就是观众认为信息量最大的地方; ② 「评论区结构性偏差」:弹幕 vs 评论说的事不一样,说明受众分层。 不要为它单开一章,也不要拿弹幕当"多数人意见"的证据(弹幕是即时反应,不是判断)。

page:多 P 视频取第几部分(默认 1)。越界明确报错,不静默回落到 P1。

Input Schema

NameRequiredDescriptionDefault
topNo
bvidYes
pageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It usefully discloses one behavioral trait beyond the schema — out-of-range page raises an explicit error rather than silently falling back to P1 — and states that output is a compressed summary, not raw danmaku. However it says nothing about volume, rate limits, or what happens with empty danmaku streams, and an output schema already covers the return shape.

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?

Front-loaded with the action and output, then rationale, then constraints. The rationale section is somewhat editorial and could be tightened, but every paragraph maps to a decision the caller must make.

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?

Return values are covered by the output schema, and the description adds scope restrictions and error behavior, which is what an agent most needs for a focused analysis tool. The gap is that 'top' is undocumented, leaving one of three parameters opaque.

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 coverage is 0% and there are 3 parameters, so the description must compensate. It does well for page (multi-P selector, default 1, hard error on out-of-range), but 'top' (default 5) is never explained and bvid is left implicit. Partial compensation only.

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?

Names a specific verb and resource (get danmaku) and immediately enumerates the derived outputs: density curve, densest segment with samples, high-repetition lines, disclosure keywords. It also explicitly contrasts itself with get_comments (second-level timestamps vs publish time), so an agent can tell them apart 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 Guidelines5/5

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

Gives an explicit two-item allowlist of use cases (extension divergence, comment-section structural bias) plus two explicit prohibitions: don't create a dedicated chapter, don't treat danmaku as majority opinion. That is when-to-use, when-not-to-use, and the alternative (get_comments) in one place.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.