Skip to main content
Glama

Search prediction markets (Kalshi, Polymarket)

search_prediction_markets
Read-only

Open prediction markets on a topic ("fed rate october", "bitcoin 100k", "nvidia earnings") from Kalshi (CFTC-regulated, the US venue) and Polymarket (international; not available to US persons), venues interleaved. Each market: event title, outcome, YES implied probability (0..1), bid/ask, 24h move, volume (Kalshi in contracts, Polymarket in USD), close time, venue link, plus the venue and id to pass to get_prediction_market. Only open markets are returned. Source: Kalshi and Polymarket public market data. Read-only: Milo does not place prediction-market orders. Returns structured JSON.

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": {
      "query": "<query>"
    },
    "name": "search_prediction_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax markets (default 8, max 20)
queryYesTopic to search
venueNoLimit to one venue

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, and the description reinforces this with 'Milo does not place prediction-market orders' — useful reassurance for an agent wary of trading tools. It adds genuine context beyond annotations: only open markets, interleaved venue ordering, per-venue volume units (contracts vs USD), and Polymarket's US-person restriction, which affects whether results are actionable.

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 examples, then a compact field enumeration that earns its place because no output schema exists. It runs long as a single dense block and packs several clauses per sentence, but no content is 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?

With no output schema, the description fully enumerates the returned fields (event title, outcome, YES probability, bid/ask, 24h move, volume, close time, link, venue, id) and their units. Combined with the source and read-only disclosure, an agent has everything needed to call and interpret results.

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; the description earns above that by giving example query strings and explaining that `venue` selects between a CFTC-regulated US venue and an international one with eligibility limits. The `limit` parameter is never discussed in prose, but the schema already documents default 8 / max 20.

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 names a specific verb and resource ('Open prediction markets on a topic') and immediately pins the exact data sources (Kalshi, Polymarket) with example query strings. It also distinguishes itself from the sibling get_prediction_market by explaining that this tool returns the `venue` and `id` needed to call that one.

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 context is concrete: topic-search queries in quotes, optional single-venue narrowing, and only open markets returned. The handoff to `get_prediction_market` for per-market detail is clear, but there is no explicit 'do not use this for X' exclusion or note on when to prefer a different sibling.

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.