Skip to main content
Glama
arbitrage-anyprice
by pjrpjr

audit_resolution_equivalence

Compare two prediction-market contract specifications to detect resolution-rule mismatches before arbitrage, using a fail-closed equivalence firewall.

Instructions

Run the Gen-2 Fail-Closed Resolution-Rule Equivalence Firewall on two user-supplied prediction contract specifications.

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_a": "<market_a>",
      "market_b": "<market_b>"
    },
    "name": "audit_resolution_equivalence"
  }
}

Input Schema

NameRequiredDescriptionDefault
market_aYesPredictionMarket fields (venue, market_id, question, rules_text, resolution_source, close_time_utc, currency_type, status)
market_bYesSecond PredictionMarket fields
max_cutoff_delta_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not state whether the tool is read-only, what side effects or permissions are involved, what happens when the contracts are equivalent versus divergent, or what 'Fail-Closed' concretely means beyond an unexplained hint of conservatism.

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?

The definition is a single front-loaded sentence with no filler or redundant wording. Its concise structure is undermined somewhat by dense jargon, but it is not padded.

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

Completeness2/5

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

The tool has complex nested object inputs, no annotations, and no output schema, yet the description omits the equivalence criteria, the meaning of the cutoff delta, and what the agent should expect from the result. It names the operation and inputs but is not complete enough to support confident invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description only restates that the tool takes two user-supplied contract specifications, which is already apparent from market_a and market_b. It does not explain the role of max_cutoff_delta_hours, how nested PredictionMarket fields affect equivalence, or why market_b is described more tersely in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific operation, 'Run the Gen-2 Fail-Closed Resolution-Rule Equivalence Firewall,' and identifies two prediction contract specifications as inputs. However, the core operation is an opaque branded term, and the description never explains what resolution-rule equivalence means or how this differs from sibling verification/audit tools.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no comparison to alternatives. The only contextual clue is that it applies to two user-supplied prediction contract specifications, which implies a comparison scenario but leaves selection between this and sibling tools entirely to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.