Skip to main content
Glama

Polymarket Markets

polymarket_markets
Read-onlyIdempotent

Polymarket markets, by view. trending (default): top prediction-market events ranked by 24h volume. Returns market title, slug, category, current Yes/No mid quotes, 24h volume, and end_date. Filter by category (Crypto | Sports | Politics | Pop-Culture | Tech | all). Use for 'what's hot on Polymarket' or 'top crypto prediction markets'. search: the recorded markets whose slug contains every word of query (any order, case-insensitive: 'bitcoin up or down' finds bitcoin-up-or-down-…), optionally only active or only closed ones, newest end_date first, paged with limit and offset; rows {active, closed, condition_id, end_date (epoch), neg_risk, slug, tick_size, token_ids}, active / closed derived from the on-chain resolution and Polymarket's own flag (a filter on them is the slower read). market: one market by condition_id in that row shape, a list of 0 or 1 rows, from the recorded markets or else Polymarket's full catalogue (source says which; an unknown id is []). Same data as GET /v1/polymarket/markets and /markets/{condition_id}.

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
viewNo`trending` (default): top by 24h volume; `search`: filter the recorded markets; `market`: one market by condition_id.trending
limitNoMax markets: `trending` default 10, max 30; `search` default 50, max 100 (a larger value is clamped).
queryNo`search` only: case-insensitive substring of the market slug.
activeNo`search` only: true = only active markets, false = only closed ones; omit for all. Not together with `closed`.
closedNo`search` only: the complement of `active` (true = only closed). Not together with `active`.
offsetNo`search` only: rows to skip, 0 to 10000 (default 0); above 10000 is refused.
categoryNo`trending` only: category filter (default all)
condition_idNo`market` only, required there: the 0x-prefixed condition id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / active
      Added value: +{
      +  "description": "`search` only: true = only active markets, false = only closed ones; omit for all. Not together with `closed`.",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
    • removedInput schema / properties / category / default
      Removed value: -"all"
    • changedInput schema / properties / category / description
      Previous value: -"Category filter (default all)"New value: +"`trending` only: category filter (default all)"
    • addedInput schema / properties / closed
      Added value: +{
      +  "description": "`search` only: the complement of `active` (true = only closed). Not together with `active`.",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / condition_id
      Added value: +{
      +  "description": "`market` only, required there: the 0x-prefixed condition id.",
      +  "type": "string"
      +}
    • removedInput schema / properties / limit / default
      Removed value: -10
    • changedInput schema / properties / limit / description
      Previous value: -"Max markets (default 10, max 30)"New value: +"Max markets: `trending` default 10, max 30; `search` default 50, max 100 (a larger value is clamped)."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "`search` only: rows to skip, 0 to 10000 (default 0); above 10000 is refused.",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "`search` only: case-insensitive substring of the market slug.",
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "default": "trending",
      +  "description": "`trending` (default): top by 24h volume; `search`: filter the recorded markets; `market`: one market by condition_id.",
      +  "enum": [
      +    "trending",
      +    "search",
      +    "market"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses that limit values above the max are clamped, that offset above 10000 is refused, and that filtering on active/closed is the slower read because those fields are derived from on-chain resolution plus Polymarket's own flag. It also states the market view returns a list of 0 or 1 rows and that an unknown condition_id yields []. Those are exactly the operational traits an agent needs and none are in the annotations.

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?

Structure is front-loaded by view, so an agent can jump straight to the mode it needs, and each clause carries distinct information rather than restating the name. The prose is dense and backtick-heavy, which costs some readability, but there is little outright filler.

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?

For an 8-parameter, three-mode tool with no output schema, the description covers everything needed to call it correctly: per-mode parameter applicability, defaults and caps, filter exclusivity, and the shape of returned rows for both trending and search. The fallback behavior for the market view (recorded markets, else full catalogue, with source indicating which) is also documented.

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?

With 100% schema coverage the baseline is 3, and the description earns above that by clarifying that query matches every word in any order and case-insensitively (with a worked example) and by describing the returned row shape for the search view. It also adds per-view defaults and caps for limit and the valid offset range. The one wrinkle is a small mismatch with the schema, which calls query a plain case-insensitive substring while the description says 'every word … any order' — a clarifying but slightly divergent gloss.

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 states a specific resource (Polymarket markets) and enumerates three distinct modes (trending, search, market), each with concrete scope (24h-volume ranking vs. slug filtering vs. single condition_id lookup). It also names the underlying endpoints, so an agent knows it mirrors GET /v1/polymarket/markets and /markets/{condition_id}. It does not contrast itself with nearby siblings such as polymarket_market_detail or predictfun_markets, which is the only thing keeping it off 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 Guidelines4/5

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

Usage is spelled out per view and paired with example intents ('what's hot on Polymarket', 'top crypto prediction markets'). Mutual-exclusion rules are given for active vs. closed, so an agent won't send conflicting filters. It stops short of telling the agent when to prefer a sibling tool over this one.

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.