Skip to main content
Glama

Resolution Diff

resolution_diff
Read-onlyIdempotent

Field-by-field diff of TWO markets' settlement clauses (one from each of a and b; either can be Polymarket .com, Polymarket US, or Kalshi), runs resolution_audit on both sides and compares source, settle time, precision, comparison_basis, and evidence standard. Returns equivalent: "true" only when both sides parsed with enough confidence to compare AND no field conflicts; "false" when a specific conflict was found (differing_fields names which, e.g. ["source","settle_time"] for a Polymarket Bitcoin market settling on Binance's 1-minute candle at noon ET versus a Kalshi KXBTCD market settling on CF Benchmarks' BRTI 60-second average at 5pm EDT, SAME asset, DIFFERENT contract; or ["source","precision"] for Polymarket.com's Chainlink 15-minute TWAP clause (precision "twap_60s_lookback") against Kalshi's 15-minute KXBTC15M clause (precision "60-second trailing average" off CF Benchmarks' BRTI), different source and a different lookback mechanism, even though BOTH compare an end-of-window average to a start-of-window average, so comparison_basis is EQUAL there and correctly NOT in differing_fields, verified live 2026-10-22, fleet #3447); "unclear" when one or both sides could not be confidently parsed (an absence of evidence is not evidence of equivalence, read raw_clause yourself in that case). comparison_basis is flagged as differing whenever both sides resolved one and they disagree, independent of whether source/precision also matched. Only flags source/evidence_standard as differing when BOTH sides gave a SPECIFIC comparable answer, a named source (e.g. "Associated Press, Fox News, NBC") against a generic one (e.g. Kalshi's "consensus of media organizations") is treated as the same evidence standard, not a conflict, since that is standard election-market boilerplate on both venues. Use this before sizing a polymarket_kalshi_spread pair as a real cross-venue arb, or standalone to sanity-check any two markets you suspect settle on different things.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "resolution_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst market to compare.
bYesSecond market to compare.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "a": {
      -      "market": "bitcoin-above-70k-on-september-13-2026",
      -      "venue": "polymarket"
      -    },
      -    "b": {
      -      "market": "KXBTCD-26SEP1317",
      -      "venue": "kalshi"
      -    }
      -  }
      -]
  2. Changed2 schema fields changed
    • changedInput schema / properties / a / properties / venue / enum
      Previous value: -[
      -  "polymarket",
      -  "kalshi"
      -]New value: +[
      +  "polymarket",
      +  "kalshi",
      +  "polymarket-us"
      +]
    • changedInput schema / properties / b / properties / venue / enum
      Previous value: -[
      -  "polymarket",
      -  "kalshi"
      -]New value: +[
      +  "polymarket",
      +  "kalshi",
      +  "polymarket-us"
      +]
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only cover safety (readOnly, idempotent, openWorld, non-destructive), so the description carries the return-semantics burden and does so well: it defines the three-valued `equivalent` outcome, what `differing_fields` contains, the asymmetry rule for comparison_basis, and the named-vs-generic evidence-standard rule. It even warns that 'unclear' means you must read raw_clause yourself. The only deduction is that the operational cost of a run (two audits, latency) is left implicit.

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 core is front-loaded, but the body is a single sprawling sentence-stack with multi-clause parentheticals running dozens of words. Illustrative detail like the Chainlink TWAP versus BRTI example and 'verified live 2026-10-22, fleet #3447' is noise for an agent choosing and calling a tool, and the meaning could be preserved at half the length.

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?

There is no output schema, so the description must define the return contract, and it does: the three `equivalent` values, the differing_fields field names, the comparison_basis flagging rule, and the raw_clause escape hatch for unclear results. Combined with the usage routing, an agent has everything needed to call it and interpret the result.

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% and each nested param is described, so the baseline would be 3. The description adds real meaning beyond the schema: it clarifies that a and b must be one market each, that either side may be Polymarket .com, Polymarket US, or Kalshi, and that mixed-venue pairing is the intended mode.

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 first sentence names a specific verb and resource: a field-by-field diff of two markets' settlement clauses, enumerating the compared fields (source, settle time, precision, comparison_basis, evidence standard). It also states that it internally runs resolution_audit on both sides, which cleanly separates it from the bare resolution_audit sibling.

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: 'Use this before sizing a polymarket_kalshi_spread pair as a real cross-venue arb, or standalone to sanity-check any two markets you suspect settle on different things.' It names a concrete alternative and the condition that selects it, plus a standalone use case.

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.