Skip to main content
Glama

market_get_order_book

Read-onlyIdempotent

Fetches the current order book depth for a trading pair on Binance, returning bid and ask price levels with quantities up to the requested depth.

Instructions

Deprecated: prefer ccxt_public_call and ccxt_describe_exchange for new integrations. Fetch the current order book depth for a trading pair from Binance. Returns bid and ask price levels with their quantities up to the requested depth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOrder book depth (default: '20')
symbolYesTrading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT')
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context by noting the tool is deprecated and Binance-specific, and explains that it returns bid/ask levels with quantities up to the requested depth. This goes beyond the annotations without contradicting them.

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?

The description is compact, with a deprecation notice, a clear function statement, and a return-value summary in just two sentences. All content is relevant and no filler is present, though the deprecation notice could be seen as redundant given the 'Deprecated' tag, but it's still useful context. Front-loading the deprecation is logical.

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?

For a simple read-only tool with only two parameters, the description covers the essential context: purpose, exchange source, return content, and deprecation status. Annotations handle safety and idempotency. The lack of an output schema is mitigated by describing the return shape at a high level. However, it doesn't mention potential edge cases like invalid symbols or rate limits, but these are not critical for the tool's simplicity.

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% — both symbol and limit have descriptions in the schema. The description adds minimal extra meaning beyond that, only hinting at the limit's effect via 'up to the requested depth.' Since the schema fully documents parameters, the baseline 3 is appropriate; no significant additional parameter semantics are provided.

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 explicitly states the tool fetches the current order book depth for a trading pair from Binance, with a specific verb and resource. It distinguishes itself from sibling tools by focusing on Binance order book data, which none of the siblings cover. The deprecation note does not confuse the primary purpose.

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?

The description opens with a clear deprecation warning and explicitly names ccxt_public_call and ccxt_describe_exchange as preferred alternatives for new integrations. This provides direct when-to-use guidance, though it doesn't elaborate on scenarios where the old tool might still be appropriate. The alternative naming is explicit and actionable.

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/Apegurus/web3agent'

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