Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

readMessages

Read accumulated messages from a WebSocket subscription. Optionally clear buffer after reading or limit to recent N messages. Check connection status (active, reconnecting, closed).

Instructions

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

Input Schema

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

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

Discloses destructive default (clear buffer), limit capability, and return status field. However, no annotations provided, and description lacks rate limits, error handling, or prerequisites for subscription.

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?

Single sentence with front-loaded action, clear structure using semicolons for details, no redundant words.

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?

Despite no output schema or annotations, description covers key behaviors, parameter effects, and return field. Missing details on invalid subscription or empty buffer, but contextually sufficient given sibling tools.

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 100%, so baseline 3. Description reinforces parameter purposes (limit for recent N, clearAfterRead for buffer clearing) but adds no new constraints or formats beyond schema.

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 clearly states the verb '读取' (read) and resource '指定订阅已积累的消息' (accumulated messages of specified subscription), distinguishing it from sibling tools like startSubscription, stopSubscription, and listSubscriptions.

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 explains default behavior (clearAfterRead=true) and alternative (clearAfterRead=false) but does not explicitly contrast with streaming subscription tools (e.g., subscribe_*) or state when not to use this tool.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bybit-exchange/trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server