Skip to main content
Glama

Resolution Audit

resolution_audit
Read-onlyIdempotent

Extract the settlement clause of a single Polymarket (.com or .us) or Kalshi market: who publishes the settling number (source), the clock time + timezone it is taken at (falling back to the market TITLE when the clause itself says "the time range specified in the title", e.g. Polymarket's 15-minute Chainlink TWAP family), the precision of the computation (e.g. "1-minute candle close" vs "60-second trailing average" vs "twap_60s_lookback"/"twap_30s_lookback" vs "election outcome"), comparison_basis, what is compared to what (end_average_vs_start_average | close_vs_open; orthogonal to precision, since venues can share this comparison shape while computing each endpoint differently), the evidence standard (official_source | consensus_reporting | any_credible_report | unspecified), and void_handling (cancellation/postponement settlement, reused verbatim from bet_research's cancellation_rule detector, not re-derived). Parses Polymarket's description field (fetched via polymarket_market, or via polymarket_us_search for the .us venue) or Kalshi's rules_primary + rules_secondary fields (fetched via kalshi_market) with regex + a small vocabulary, no LLM pass, so an unusual clause reports confidence:"low" rather than a guess. Pass market as a Polymarket slug/URL (either venue) or a Kalshi market ticker (e.g. "KXBTCD-26SEP1317-T66999.99"); a Kalshi EVENT ticker (e.g. "KXBTCD-26SEP1317") also works, it picks one representative market under that event, since the settlement mechanism is normally shared across all strikes/legs in one event. Use this before treating a polymarket_kalshi_spread row as a real arbitrage: two ladders that look alike can settle on different sources (Polymarket.com's Chainlink TWAP stream vs Kalshi/Polymarket US's CF Benchmarks BRTI), at different times, or with a different lookback window, this tool is how you check. Pair with resolution_diff to compare two markets directly. KNOWN GAP: idiosyncratic phrasing that doesn't match the vocabulary returns confidence:"low" and evidence_standard:"unspecified" rather than an LLM-guessed answer.

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>",
      "market": "<market>"
    },
    "name": "resolution_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueYesWhich venue to fetch the market from. "polymarket" is the offshore venue (polymarket.com); "polymarket-us" is the separate, CFTC-regulated polymarket.us venue, matched by slug via its own search (no exact-slug lookup exists upstream).
marketYesPolymarket (.com or .us) market slug or URL, OR a Kalshi market ticker (preferred) or event ticker (falls back to a representative market under that event).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "market": "bitcoin-above-70k-on-september-13-2026",
      -    "venue": "polymarket"
      -  },
      -  {
      -    "market": "KXBTCD-26SEP1317",
      -    "venue": "kalshi"
      -  }
      -]
  2. Changed3 schema fields changed
    • changedInput schema / properties / market / description
      Previous value: -"Polymarket market slug or URL, OR a Kalshi market ticker (preferred) or event ticker (falls back to a representative market under that event)."New value: +"Polymarket (.com or .us) market slug or URL, OR a Kalshi market ticker (preferred) or event ticker (falls back to a representative market under that event)."
    • changedInput schema / properties / venue / description
      Previous value: -"Which venue to fetch the market from."New value: +"Which venue to fetch the market from. \"polymarket\" is the offshore venue (polymarket.com); \"polymarket-us\" is the separate, CFTC-regulated polymarket.us venue, matched by slug via its own search (no exact-slug lookup exists upstream)."
    • changedInput schema / properties / venue / enum
      Previous value: -[
      -  "polymarket",
      -  "kalshi"
      -]New value: +[
      +  "polymarket",
      +  "kalshi",
      +  "polymarket-us"
      +]
  3. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, but the description goes well beyond: it discloses the implementation as regex + a small vocabulary with no LLM pass, states that odd phrasing yields confidence:"low" and evidence_standard:"unspecified" rather than a guess, notes void_handling is reused verbatim from bet_research's cancellation_rule rather than re-derived, and documents upstream fetching dependencies (polymarket_market, polymarket_us_search, kalshi_market).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and caveats are front-loaded and each major clause carries information, but the prose is a dense run-on stuffed with stacked parentheticals and slash-delimited enumerations, making it harder to scan than a two-parameter tool warrants. Some of the extraction-field catalogue could have been split into a short list instead of one multi-nested sentence.

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?

No output schema exists, yet the description names the returned fields, the confidence flag, and the known-gap behavior, plus the upstream fetch path per venue — an agent has everything needed to call it and interpret results. Complexity is high and the description meets it.

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 meaning the schema does not: why an event ticker works ("the settlement mechanism is normally shared across all strikes/legs in one event"), the venue split between polymarket.com and the CFTC-regulated polymarket.us, and the fact that .us lookup is search-based. This is genuine added semantics rather than repetition.

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?

Opens with a specific verb+resource ("Extract the settlement clause of a single Polymarket (.com or .us) or Kalshi market") and enumerates exactly which fields come back (source, clock time + timezone, precision, comparison_basis, evidence standard, void_handling). It clearly separates itself from resolution_diff ("compare two markets directly") and polymarket_kalshi_spread (this is the check before treating a spread row as arbitrage).

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 when-to-use: "Use this before treating a polymarket_kalshi_spread row as a real arbitrage", with the concrete failure mode that motivates it (different sources, times, lookback windows). It also names the alternative for the adjacent task ("Pair with resolution_diff") and explains how to pick the market argument (slug/URL vs market ticker vs event ticker).

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.