Skip to main content
Glama

Audit Prediction Market Contract Rules

audit_contract_rules
Read-only

Runs SharpFills live Polymarket/Kalshi Rule-Trap & UMA Dispute Auditor on a Polymarket URL/slug, Kalshi ticker/URL, or raw contract rule text. Returns a risk grade (A–F), numeric score, detected settlement traps, cross-venue basis comparison, and a shareable https://sharpfills.com/audit/ link.

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": {
      "url_or_text": "<url_or_text>"
    },
    "name": "audit_contract_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
url_or_textYesPolymarket market URL or slug, Kalshi ticker or URL (e.g. KXHIGHNY), or raw contract resolution rule text to audit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, non-destructive) and the external/live nature (openWorldHint), so the description's job is to add what they don't say. It does: it discloses the returned artifacts including a risk grade, numeric score, detected traps, and a generated public sharpfills.com link. It stops short of noting rate limits, cost, or that repeated runs are not idempotent because rules and live data change.

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 action and followed by the output contract; nothing is padded. The branded product name ('SharpFills live Polymarket/Kalshi Rule-Trap & UMA Dispute Auditor') is heavy jargon but still conveys scope.

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

Completeness3/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 must carry return values, and it does list them at a high level. Gaps remain for a live, non-idempotent external audit: what happens on an unrecognized URL/ticker, whether the shareable link is permanent or ephemeral, and how long a run takes.

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 the single parameter's description already spells out the three accepted input forms with a ticker example. The description largely restates the same format list rather than adding format rules (e.g. whether a bare slug or a full URL with query string is expected). Baseline 3 is appropriate.

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?

States a concrete action (run a rule-trap/UMA dispute audit) on a named set of resources (Polymarket markets, Kalshi markets, raw rule text) and enumerates the outputs (grade, score, traps, basis, link). It is clearly not the metar, catalyst, or spread tool, though it does not explicitly name a sibling to contrast against.

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 only implied by the accepted input forms – you gather it's for vetting a contract's settlement rules before trading. There is no statement of when to prefer this over get_cross_venue_spreads (whose territory it partly overlaps by returning a 'cross-venue basis comparison'), and no preconditions or exclusions.

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