Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Polymarket markets, odds

polymarket_markets
Read-only

Polymarket prediction markets: the most traded open markets by 24-hour volume, or the markets matching a search, each with outcome prices (implied probability), best bid and ask, last trade, day change, volume, liquidity, end date, slug and CLOB token ids. Use to get the odds on an election, sports, crypto or news event, or to find a market before reading its order book. Example: q=bitcoin. Price $0.002/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_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional search, e.g. bitcoin, election, fed rates; without it the top markets by 24h volume
limitNoMarkets to return, 1-20 (default 10)
closedNotrue for resolved or closed markets instead of open ones

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, destructiveHint=false, idempotentHint=false), the description adds critical behavioral context: 'Price $0.002/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.' This discloses cost, free tier, and billing behavior that directly explains the non-idempotent annotation.

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 description is front-loaded with purpose and usage before cost details. It is mostly efficient, though the long list of output fields in the first sentence is dense and the example 'q=bitcoin' is somewhat redundant with the schema example. It could be tightened slightly, but no sentence is wasteful.

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 lists the return fields (outcome prices, best bid/ask, last trade, day change, volume, liquidity, end date, slug, CLOB token ids). It also covers use cases, alternatives, and pricing, leaving nothing essential for an agent to call the tool correctly.

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 schema already documents all three parameters. The description adds only a search example ('q=bitcoin') and no additional meaning for limit or closed beyond what the schema provides. Baseline 3 is appropriate when schema descriptions are complete.

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 states a specific verb+resource: 'Polymarket prediction markets: the most traded open markets by 24-hour volume, or the markets matching a search.' It distinguishes this from siblings by saying it is for finding a market before reading its order book, which clearly points to polymarket_orderbook as a separate tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance: 'Use to get the odds on an election, sports, crypto or news event, or to find a market before reading its order book.' It names the alternative (order book) and the condition that selects it, so an agent knows exactly when this tool is appropriate.

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