Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Polymarket price history

polymarket_price_history
Read-only

Polymarket price history of one market outcome from the CLOB: time and price points over the last hour, 6 hours, day, week, month or all time, with first, last, change, high and low. Give the market slug and outcome, or a CLOB token id. Use to chart how the odds moved, spot a swing after news, or backtest a signal. 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_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoThe market's Polymarket slug (from polymarket_markets) or its polymarket.com URL
outcomeNoOutcome name, e.g. Yes or No (default the first outcome)
intervalNo1h, 6h, 1d, 1w (default), 1m or max
token_idNoInstead of slug: the CLOB token id of one outcome

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description goes further with what annotations cannot express: per-call pricing ($0.01/call via x402 USDC or card key), a 10-call free tier, failed calls free, and the explicit consequence that repeats are not free. 'Reads or computes only and changes nothing' reinforces the safe-read profile without contradicting it.

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?

Front-loaded with the core capability and scoping, then usage, then the example, then cost/auth. Dense but every sentence carries information; the pricing sentence is long but materially affects invocation decisions.

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?

With no output schema, the description compensates by describing the return shape (time and price points plus first/last/change/high/low) and the interval granularity. Cost, auth, and input routes are all covered, so an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds real meaning: it explains the either/or between slug+outcome and token_id, notes that slug may come from polymarket_markets, and supplies a worked example slug. It does not document the enum values beyond naming intervals, but the schema already enumerates them.

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?

States a specific verb+resource ('Polymarket price history of one market outcome from the CLOB') and immediately scopes it with the available intervals and the aggregate fields returned (first, last, change, high, low). That is enough for an agent to separate it from sibling tools like polymarket_orderbook or polymarket_markets without opening a schema.

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?

Gives concrete use cases ('chart how the odds moved, spot a swing after news, or backtest a signal') and clarifies the two input routes (slug+outcome or CLOB token id). It does not explicitly rule out alternatives such as orderbook for current book depth, so guidance is clear but not exhaustive.

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