Skip to main content
Glama
simple-vwap-slippage

simple-vwap-slippage

Read a Bybit spot order book

get_order_book
Read-only

Fetches the live Bybit spot order book for a pair, including best bid/ask, spread, depth ladders, resting size, and bid/ask imbalance so you can check liquidity before quoting a trade.

Instructions

Return the live Bybit spot order book for one pair: best bid and ask, the spread in basis points, both ladders and the total resting size per side plus a bid/ask imbalance ratio. Prices are in the quote currency and sizes in the base currency. Use it to see liquidity before quoting a trade. Example: symbol='BTCUSDT', depth=20.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_order_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow many levels per side to fetch and return, from 1 to 1000. Bybit only serves 1, 5, 25, 50, 100, 200, 500 and 1000 levels, so the value is rounded up to the nearest of those.
symbolYesSpot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds real value on top by specifying units (prices in quote currency, sizes in base currency) and the derived metrics returned. It does not mention rate limits, snapshot vs streaming semantics, or staleness of the "live" book, which are the remaining behavioral questions for a market-data read.

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 return payload, then units, then usage, then an example – a sensible order with little waste. The trailing example overlaps with the schema's own symbol and depth documentation, so the last sentence is mildly redundant rather than essential.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still summarizes the key fields, units, and the imbalance ratio, and it names the caller's likely goal (assess liquidity before quoting). For a two-parameter read tool with full annotations, nothing needed to call it correctly is missing.

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%: symbol notation, case-insensitivity, and the depth rounding-to-1/5/25/50/100/200/500/1000 rule are all documented in the schema already. The description only repeats this with an example (symbol='BTCUSDT', depth=20) and adds the currency-unit convention, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Return the live Bybit spot order book for one pair") and enumerates the payload: best bid/ask, spread in bps, both ladders, total resting size per side, and an imbalance ratio. It is clearly distinguishable from siblings like search_symbols or quote_market_order, though it never explicitly contrasts itself with get_slippage_curve, which is the closest neighbor.

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?

Gives a concrete context: "Use it to see liquidity before quoting a trade," which positions it upstream of quote_market_order. It does not state when-not to use it or name an alternative for depth/liquidity questions that get_slippage_curve might answer better, so guidance is clear but not exclusive.

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