Skip to main content
Glama

Vectorial Data Terminal: Hyperliquid, Polymarket & yield for AI agents

get_prediction_book

Read-only

Live order book of one prediction outcome (best first): best bid/ask, mid, tick size and the top levels with sizes in 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_id": "<token_id>"
    },
    "name": "get_prediction_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
token_idYesThe outcome's decimal CLOB token id (from list_prediction_markets)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond them by disclosing the shape of the payload: a best-first snapshot containing best bid/ask, mid, tick size and top levels with sizes in shares. It does not state how many levels 'top levels' contains or whether the snapshot is point-in-time, which keeps it short of a 5.

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 front-loaded sentence with no redundant clauses; the parenthetical '(best first)' efficiently conveys ordering. The only soft spot is the unquantified 'top levels', which is slightly vague for so dense a sentence.

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 no output schema, the description carries the return-value burden and does so by listing the principal fields and units ('sizes in shares'). For a one-parameter read tool this is nearly complete, though it omits depth-of-book and empty/illiquid-book behavior.

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% and the parameter's schema description already explains the CLOB token id and its source (list_prediction_markets). The description only reinforces the 'one outcome' scope and adds no format or sourcing detail beyond the schema, so the baseline of 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?

The description names a specific resource ('Live order book of one prediction outcome') and enumerates the fields returned (best bid/ask, mid, tick size, top levels), so an agent knows exactly what it retrieves. It does not explicitly contrast itself with siblings like get_prediction_positions or list_prediction_markets, leaving differentiation to the tool name.

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 explicit statement of when to call this tool, when not to, or which sibling to use instead. The phrase 'one prediction outcome' implies a per-token lookup, but the agent must infer that from the name and schema rather than from stated guidance.

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.