Skip to main content
Glama

List markets

polytest_list_markets
Read-onlyIdempotent

Lists Up/Down markets of one market_type for one coin. Use it to find a market_id before reading snapshots or a price series. Returns market rows, newest first by start time, each with its window, opening and closing spot price, winner, volume, and status. Use status, not winner, to tell whether a market is still running. coin is btc, eth, or sol, and 4hr and 24hr markets exist for btc only. start_time and end_time filter on the market start time. PolyTest loads new markets in batches, and note says so when the newest market is hours old. Costs 1 API request. To continue, call again with offset set to next_offset while stop is "more". stop "tier_window" means the plan does not cover the requested markets. If truncated is true, rows were cut to keep the result small and next_offset points at the first cut row.

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": {
      "market_type": "<market_type>"
    },
    "name": "polytest_list_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinNoCoin symbol in lowercase: btc, eth, or sol. 4hr and 24hr markets exist for btc only.btc
limitNoRows per page.
offsetNoRows to skip. Pass next_offset from the previous page.
end_timeNoISO 8601. Keeps markets that start at or before this time. No zone means UTC.
start_timeNoISO 8601. Keeps markets that start at or after this time. No zone means UTC.
market_typeYesWindow length. One of 5m, 15m, 1hr, 4hr, 24hr.

Output Schema

NameRequiredDescriptionDefault
noteNo
stopYes
countYesRows in this result.
marketsYes
truncatedYesTrue when rows were cut to keep the result small.
next_offsetYesOffset of the next page when stop is more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / coin / description
      Previous value: -"Coin symbol in lowercase, such as btc, eth, or sol."New value: +"Coin symbol in lowercase: btc, eth, or sol. 4hr and 24hr markets exist for btc only."
    • addedOutput schema / properties / markets / items / properties / status
      Added value: +{
      +  "description": "upcoming: not started. open: the window is still running. resolved: the winner is known. ended_no_result: the window closed and PolyTest has no result for it.",
      +  "enum": [
      +    "upcoming",
      +    "open",
      +    "resolved",
      +    "ended_no_result"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / markets / items / required
      Previous value: -[
      -  "market_id",
      -  "slug",
      -  "market_type",
      -  "coin",
      -  "start_time",
      -  "end_time",
      -  "price_start",
      -  "price_end",
      -  "winner",
      -  "final_volume",
      -  "resolved_at"
      -]New value: +[
      +  "market_id",
      +  "slug",
      +  "market_type",
      +  "coin",
      +  "start_time",
      +  "end_time",
      +  "price_start",
      +  "price_end",
      +  "winner",
      +  "final_volume",
      +  "resolved_at",
      +  "status"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, openWorldHint=false), yet the description still adds real behavior: ordering (newest first by start time), per-row fields, the trap that 'status, not winner' indicates a running market, batch loading so the newest market may be hours old, a cost of 1 API request, and truncation semantics for next_offset. That is substantial context beyond the structured fields.

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 purpose and downstream use, and nearly every sentence carries operational value. The pagination/stop/truncated material arrives as a dense run-on tail, which is workable but less scannable than a short ordered list would be.

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 a paginated, tier-gated listing tool this covers the full call lifecycle: filtering, paging, truncation, plan limits, and cost. An output schema exists, so the brief return-field enumeration is light redundancy rather than a gap.

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 cross-parameter meaning the schema lacks: offset must be the previous page's next_offset, and truncation explains why next_offset can point at a cut row. It restates the coin/market_type constraint rather than adding to it, which keeps it short of a 5.

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?

Names a specific verb and resource plus its scope: listings of Up/Down markets for exactly one market_type and one coin. It also states the downstream role ('find a market_id before reading snapshots or a price series'), which separates it from get_market, get_snapshots, and get_price_series without the agent opening any schema.

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?

Explicit routing guidance and termination rules: call again with offset=next_offset while stop is 'more', and stop 'tier_window' means the plan does not cover the markets. It also flags the start_time/end_time semantics and the coin/market_type constraint (4hr and 24hr for btc only), so the agent knows both when to use it and how to loop with it.

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