Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

readMessages

Destructive

Retrieve buffered messages from a Bybit subscription, optionally limiting to recent N, and check connection activity. Set clearAfterRead to keep messages for later.

Instructions

读取指定订阅已积累的消息。 默认读取全部并清空缓冲区(clearAfterRead=true);设为 false 可保留消息继续累积。 通过 limit 参数可只取最近 N 条消息。 返回 status 字段可判断连接是否仍然活跃(active / reconnecting / closed)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo最多返回最近 N 条消息;不填则返回全部缓冲消息
clearAfterReadNo读取后是否清空缓冲区(默认 true)
subscriptionIdYes由 startSubscription 返回的订阅 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

A4.2/5.0
Behavior5/5

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

The description goes well beyond the destructiveHint annotation by explaining exactly what is destructive: the buffer is cleared by default, and clearAfterRead=false preserves it. It also discloses the status return field for connection health, giving the agent a clear behavioral model beyond annotations.

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?

Three concise sentences, each earning its place: first states the purpose, second explains the default destructive behavior and how to avoid it, third adds limit and return-value nuance. The most important information is front-loaded.

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 there is no output schema, the description usefully mentions the status field but does not describe the full shape of the returned messages array. Still, for tool selection and invocation the essential behaviors—buffer clearing, limit, retention, and connection status—are covered, leaving only minor ambiguity about response formatting.

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 description does not need to compensate for undocumented parameters. It does add a little context around limit ('recent N messages') and the default clear behavior, but these largely restate what the schema already declares, so the baseline of 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 opens with a specific verb and resource: '读取指定订阅已积累的消息' (read messages accumulated for a specified subscription). It also immediately disambiguates from subscription-starting tools by focusing on consuming buffered messages, and adds the key default behavior (clearing the buffer).

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 usage context is implied rather than explicit: an agent can infer this tool is for consuming messages from an existing subscription, especially since subscriptionId is described as coming from startSubscription. However, the description does not explicitly state when to use this versus alternatives, nor does it mention exclusions like 'do not use if you want to keep the connection open without consuming messages.'

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

Install Server

Other Tools