Skip to main content
Glama

PredictionMarketAPI — Polymarket & Kalshi Real-Time Odds MCP

Get Event Contract Metadata, Resolution Rules & Probability History

get_market_detail
Read-onlyIdempotent

Retrieve complete contract metadata, official resolution rules, outcome implied probabilities, 24h delta, liquidity, CLOB token IDs, and PostgreSQL hourly probability history snapshots for a Polymarket market_id/slug or Kalshi ticker. Cost: 10 Credits / call (0 Credits on 404).

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_id": "<market_id>"
    },
    "name": "get_market_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueNoOptional venue hint.
market_idYesPolymarket market_id/slug (e.g. "559651" or "pm_559651") or Kalshi ticker (e.g. "KXELONMARS-99").

Output Schema

NameRequiredDescriptionDefault
codeYesStatus code (0 indicates success).
dataYesComplete event contract metadata, official rules, outcomes, and hourly history snapshots.
statusYesResponse status string ("ok").
providerNoCanonical gateway provider URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the description is not carrying the safety burden. It adds genuinely new context beyond them: a 10-credit cost per call with a 0-credit 404 path, and the fact that probability history comes from hourly PostgreSQL snapshots rather than live ticks. It stops short of saying what a 404 actually returns to the caller or whether the venue hint changes cost or resolution.

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?

Two sentences, front-loaded with the retrieval payload and closed with pricing. The seven-item field list is dense but each item is a distinct data type an agent may be selecting on; the cost sentence earns its place via the 404 nuance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so describing the return shape again is redundant but harmless for selection. With annotations covering safety and schema covering identifiers, the only real gaps are what a 404 surfaces and whether venue needs to be supplied explicitly when the identifier is ambiguous.

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 description coverage is 100% and both properties are already documented, including the accepted Polymarket and Kalshi identifier formats. The description only restates that market_id may be a market_id/slug or ticker and never mentions the optional venue parameter at all, so it adds little beyond the schema baseline.

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 names a specific verb ('Retrieve') and resource (a single market's contract metadata plus resolution rules, probabilities, liquidity, token IDs and hourly history) scoped to a Polymarket market_id/slug or Kalshi ticker. That payload enumeration implicitly separates it from orderbook, movers, cross-venue comparison and search siblings, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the single-market deep-dive call once it has an identifier. There is no explicit 'use this when / use X instead' guidance, no statement about when to prefer search_prediction_markets for discovery, and no prerequisites for the venue hint.

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