Skip to main content
Glama

Prediction market detail (Kalshi, Polymarket)

get_prediction_market
Read-only

One open prediction market by venue and id (a Kalshi market ticker or a Polymarket market slug, from search_prediction_markets): YES implied probability with bid/ask and 24h move, odds history (t = unix seconds, p = YES 0..1), the other outcomes of the same event, resolution rules and, for Polymarket, the largest holders. Settled or closed markets return not_found. 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": {
      "venue": "<venue>",
      "id": "<id>"
    },
    "name": "get_prediction_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesKalshi market ticker or Polymarket market slug
venueYeskalshi or polymarket
historyDaysNoOdds history window (default 30, max 90)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is largely pre-declared. The description still adds real behavior: the not_found outcome for settled/closed markets, the shape of the returned payload (implied probability, bid/ask, 24h move, odds history with t/p semantics, other outcomes, resolution rules, Polymarket holders), and the explicit domain note that no orders are placed. It doesn't discuss rate limits or auth, but nothing important is hidden.

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 verb-resource-params statement, then two short trailing sentences for failure mode and data provenance. Dense but readable; the read-only sentence slightly overlaps the readOnlyHint annotation, though it clarifies a domain-specific concern (no order placement).

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 carries the burden of describing return values and does so in detail, including the field-level meaning of the odds history series. Combined with the documented error case and data sources, an agent has everything needed to call and interpret this tool.

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% and each of the three parameters is already documented in the schema, so the baseline is 3. The description adds modest value by tying `id` to the two venue-specific formats and to the source tool, but `historyDays` is only implied by 'odds history' and no default/window semantics are restated beyond the schema.

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 and resource ('One open prediction market by `venue` and `id`') and pins down exactly what identifiers are accepted (Kalshi ticker or Polymarket slug). It explicitly routes to the sibling `search_prediction_markets` as the source of those ids, so an agent can separate this single-market fetch from the search tool without opening either 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?

The description tells the agent to obtain `id` from `search_prediction_markets` and warns that 'Settled or closed markets return not_found', which effectively states a when-not-to-use condition. It does not spell out other alternatives (e.g. `get_perp_market`) or ordering, but the guidance for the realistic workflow is clear.

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.