Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Polymarket order book

polymarket_orderbook
Read-only

Polymarket order book for one market outcome from the CLOB: bids and asks (price and size) up to 50 levels, best bid and ask, mid, spread and USD depth within 5 cents of the mid on each side. Give the market slug and outcome, or a CLOB token id. Use to check liquidity and slippage before a trade, or to read a sharper price than the last trade. Example: slug=will-jd-vance-win-the-2028-republican-presidential-nomination. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "polymarket_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoThe market's Polymarket slug (from polymarket_markets) or its polymarket.com URL
depthNoLevels per side, 1-50 (default 10)
outcomeNoOutcome name, e.g. Yes or No (default the first outcome)
token_idNoInstead of slug: the CLOB token id of one outcome

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / depth / maximum
      Previous value: -9007199254740991New value: +50
    • changedInput schema / properties / depth / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'reads or computes only and changes nothing.' It adds genuinely useful non-schema context: pricing at $0.01/call via x402 or a card key, the first 10 free, failed calls free, and that repeat calls are charged — which coherently explains the idempotentHint=false annotation. However, it does not describe pagination, error behavior for invalid slugs/token ids, or rate limits, so the added value is solid but partial.

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 return contents are front-loaded, followed by input guidance, usage context, an example, and billing — a logical order with little waste. It is dense and slightly run-on in the billing sentence, but every clause carries information an agent would otherwise lack.

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?

There is no output schema, yet the description fully specifies the shape of the return (levels per side, best bid/ask, mid, spread, USD depth band). Combined with explicit billing/auth details and the read-only guarantee, an agent has everything needed to decide to call it and to interpret the cost implications.

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 all four parameters (slug, outcome, token_id, depth) are already documented, including the mutually exclusive 'Instead of slug' semantics for token_id and the 1-50 depth bound. The description reiterates the slug/outcome vs token_id either/or and supplies a concrete example slug, but adds no syntax or format detail beyond what the schema already states, so baseline 3 applies.

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 opens with a specific verb+resource: fetch the CLOB order book for one market outcome, and enumerates exactly what it returns (bids/asks up to 50 levels, best bid/ask, mid, spread, 5-cent USD depth). It is clearly distinguishable from sibling tools like polymarket_price_history or hyperliquid_orderbook by naming the venue (Polymarket CLOB) and the resource (order book).

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?

It gives concrete usage contexts: check liquidity and slippage before a trade, or read a sharper price than the last trade. That implicitly routes the agent away from last-trade price tools, but it never names a specific alternative tool or states when NOT to use this one, leaving the agent to infer the boundary.

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