Skip to main content
Glama
mcp-server-polymarket

mcp-server-polymarket

Get order books

get_order_books
Read-onlyIdempotent

Retrieve order books for Polymarket outcome tokens to inspect bids, asks, prices, sizes, tick size, and minimum order size at a chosen depth.

Instructions

Order books for outcome tokens, best prices first on each side, with tick size and minimum order size. Prices are probabilities (0-1) in pUSD; sizes are shares.

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": {
      "token_ids": "<token_ids>"
    },
    "name": "get_order_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoLevels per side.
token_idsYesToken ids.

Output Schema

NameRequiredDescriptionDefault
booksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / $defs / OrderBook / properties / asks / default
      Removed value: -[]
    • removedOutput schema / $defs / OrderBook / properties / bids / default
      Removed value: -[]
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare the safe, read-only, idempotent profile, and the description adds useful behavioral context: ordering is best prices first per side, prices are probabilities in pUSD, sizes are shares, and tick size/minimum order size are included. It does not mention rate limits or pagination, but those are secondary for this simple read.

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?

The definition is two tightly written sentences with no filler, and the core resource plus key semantic details are front-loaded.

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 tool with annotations, a complete input schema, and an output schema, the description supplies the important unit and ordering semantics. The remaining gap is explicit usage routing versus alternatives.

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%, so both token_ids and depth are already documented. The description does not add parameter-specific semantics beyond what the schema provides, which is acceptable at baseline 3.

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 clearly identifies the resource as order books for outcome tokens and specifies the ordering and included fields. It does not explicitly distinguish this tool from siblings such as list_order_book_markets, so it falls short of a 5.

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?

The description implies usage by saying it returns order books for outcome tokens, but gives no explicit when-to-use guidance, prerequisites, or alternatives such as list_order_book_markets or get_quotes.

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