Skip to main content
Glama
nexosdata
by nexosdata

get_market_orderbook

Retrieve normalized Level 2 orderbook depth for prediction markets across venues, returning top bids and asks, best bid/ask, mid price, spread in bps, and orderbook imbalance.

Instructions

Retrieve normalized Level 2 orderbook depth for Polymarket, Kalshi, Limitless, PredictIt, ForecastEx, and more. Returns top bids, asks, best bid/ask, mid price, spread in basis points (bps), and orderbook imbalance (OBI).

Input Schema

NameRequiredDescriptionDefault
depthNoNumber of price ladder levels to retrieve on bids and asks (1 - 50, default 5)
venueNoPrediction market venuePOLYMARKET
market_idYesMarket identifier, condition token address, or venue slug (e.g., '0x892a7f...' or 'FED-DEC26-CUT')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It signals a read-only retrieval and enumerates return fields (bids, asks, mid, spread bps, OBI), but does not cover error behavior for unknown markets, whether the book can be empty, data freshness/realtime status, or rate limits.

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?

Two sentences with zero filler: the first establishes what is retrieved and from where, the second enumerates outputs. It is front-loaded and appropriately sized for the tool's scope.

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?

Since there is no output schema, the description usefully enumerates the return fields, which is the key missing structured information. It falls short only on edge cases like empty or invalid markets and data freshness, which matter for a market-data tool.

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 all three parameters (including depth bounds and the venue enum) are already documented in structured fields. The description adds little semantic detail beyond the venue list, which duplicates the enum, so the baseline 3 is appropriate.

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?

The description gives a specific verb and resource ('Retrieve normalized Level 2 orderbook depth') and enumerates the supported venues, so an agent immediately knows this is the orderbook data tool. It does not explicitly contrast itself with siblings like search_prediction_markets or scan_arbitrage_opportunities, but the resource is distinct enough to avoid confusion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no statement of when to use this tool versus the alternatives; the sibling set includes market search, arbitrage scanning, and fee calculation, but none are mentioned. The agent must infer that this is for reading depth data rather than discovering markets or opportunities.

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