Skip to main content
Glama

x402 Agent Toolkit — Quant Arb, TWSE & Agent Security

prediction_arb

[$0.01 USDC via x402] Real-time prediction market arbitrage intelligence for trading agents: scans top active Polymarket and Kalshi markets for cross-exchange probability spreads, intra-market YES+NO sum mispricings, and high-liquidity near-resolution carry opportunities.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prediction_arb"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax signals per category (1-30).
queryNoOptional keyword filter (e.g. bitcoin, fed, rate, nvidia).
min_spread_bpsNoMinimum cross-exchange spread in basis points.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, but it does disclose genuinely useful behavioral context: the call costs $0.01 USDC via x402, a payment requirement the agent must know before invoking. Beyond that, it does not cover rate limits, latency, what happens when payment fails, or the latency implied by 'real-time.' It also does not point at the x402_preflight sibling. That leaves the description adequate rather than rich.

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?

It is a single dense sentence, with the cost and payment mechanism front-loaded in brackets, followed by the domain and then the enumerated signal types. Nothing is wasted, though the colon-separated list of three 'opportunities' is packed tightly enough that the middle item ('intra-market YES+NO sum mispricings') requires domain knowledge to parse quickly.

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?

Given 3 optional parameters, no annotations, and no output schema, the description covers the domain and signal categories well enough for an agent to decide whether to call it. It leaves gaps on what a signal object actually contains, how results are ordered or paginated when limit is 30 and both categories are searched, and what the payment flow looks like in practice.

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 all three parameters (limit, query, min_spread_bps) have inline descriptions with defaults and ranges. The description text adds no parameter semantics at all; it does not explain, for example, that min_spread_bps applies only to cross-exchange signals and not to intra-market mispricings. With the schema doing the work, the baseline score is 3, which is appropriate.

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?

Names a specific action (scanning) over a specific resource (Polymarket and Kalshi markets), and enumerates the three distinct signal types it returns: cross-exchange probability spreads, intra-market YES+NO sum mispricings, and near-resolution carry. That specificity alone distinguishes it from siblings such as funding_arb or market_signals, because the domain is clearly prediction markets rather than crypto funding rates or general equities.

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?

The description says it is aimed at 'trading agents' seeking 'real-time prediction market arbitrage,' so the implied use case is clear enough. It never states when to prefer it over an alternative, when it is inappropriate (for example, for illiquid or resolved markets), or whether a preflight step is needed before spending USDC. The usage guidance remains implied rather than explicit.

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.