Skip to main content
Glama

PredictionMarketAPI — Polymarket & Kalshi Real-Time Odds MCP

Get Live Polymarket CLOB or Kalshi Bid/Ask Orderbook Depth & Spread

get_market_orderbook
Read-onlyIdempotent

Fetch live normalized bid/ask orderbook levels, best_bid, best_ask, mid_price implied probability, spread_bps, and total USD notional depth from Polymarket CLOB (by token_id) or Kalshi Exchange (by ticker) or unified market_id. Cost: 5 Credits / call (0 Credits on 404).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_market_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerNoKalshi contract ticker (e.g. "KXELONMARS-99").
token_idNoPolymarket CLOB asset token_id from clob_token_ids.
market_idNoUnified market_id (auto-resolves CLOB token_id or Kalshi ticker).

Output Schema

NameRequiredDescriptionDefault
codeYesStatus code (0 indicates success).
dataYesNormalized L2 bid/ask orderbook depth and spread telemetry.
statusYesResponse status string ("ok").
providerNoCanonical gateway provider URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the bar is lower, and the description still adds real context: a per-call credit cost of 5 and a waiving of that cost on 404 responses, which tells the agent about billing and how missing markets behave. It also discloses that responses are normalized across two venues. It stops short of stating auth requirements 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence that front-loads the returned data before the venue and cost details, with no filler. It is dense and list-heavy, but every clause carries information, so the length is earned.

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?

With an output schema available, the description needn't explain return shape, and the annotations already carry the safety profile; combined with cost and venue coverage, the definition is nearly complete for a read-only fetch. The notable gap is the missing rule for the zero-required-parameter case (which identifier to supply, or what happens with none).

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 the baseline is 3. The description's venue routing ('by token_id' for Polymarket, 'by ticker' for Kalshi, 'unified market_id') largely restates what the schema descriptions already say, and it never clarifies the one-of semantics implied by three optional identifiers, including what happens if none or several are supplied.

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 names a specific verb ('fetch') and a precise resource ('live normalized bid/ask orderbook levels') plus the exact fields returned (best_bid, best_ask, mid_price, spread_bps, USD notional depth). It also names both supported venues and their identifier styles, which cleanly separates it from the market-level siblings get_market_detail and get_market_movers.

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?

Usage is only implied: an agent can infer it should call this when it needs live depth/spread rather than market metadata. There is no explicit 'use X instead when' guidance against get_market_detail or compare_cross_venue_probabilities, and no exclusion conditions, so selection still requires inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources