Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Cross Venue Arbitrage

workflow.run_cross_venue_arbitrage
Read-only

Checks 2-5 quotes for the SAME real-world binary bet across venues (or manually-supplied probabilities) for a guaranteed, direction-independent arbitrage: buy "Yes" at whichever venue quotes it cheapest, buy "No" at whichever venue quotes "Yes" most expensively (its own "No" price is assumed to be 1 minus its own "Yes" price, the standard complementary-binary convention). Reports isArbitrage, the cost to lock in $1 of guaranteed payout, guaranteed profit and ROI for a given stake, and which side to buy where. feePctPerLeg is an optional per-leg trading-fee rate that can and does erase a real-looking spread - reported honestly via isArbitrage rather than always showing a positive number. Use when user asks "can I arbitrage this bet across venues?" or "is there a risk-free profit here?". The caller asserts the venues quote the same bet; this tool does not verify that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quotesNoLive mode: one entry per venue, 2-5 total. Provide this OR manualProbabilitiesPct, not both.
stakeUsdYesTotal capital to deploy across both legs
feePctPerLegNoOptional per-leg trading-fee rate, e.g. 0.02 for 2% (default 0)
manualProbabilitiesPctNoManual mode: 2-5 probabilities (0.01-99.99) already known for the same bet across different venues, when you don't want a live fetch. Provide this OR quotes, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/no-destruct/open-world; the description adds genuinely load-bearing behavior: the complementary-binary assumption for the 'No' price, that fees can erase a spread and this is reported honestly via isArbitrage, and the critical caveat that the tool does not verify the venues quote the same bet. That last point is exactly the kind of limitation an agent must know before invoking.

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?

Front-loaded with the core action, then the convention assumption, then the return fields, then the trigger phrase and the caveat. Dense but every clause carries information; the parenthetical about the 'No' convention is long but necessary.

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?

With no output schema, the description carries the return burden and does so: it names isArbitrage, cost per $1 payout, guaranteed profit, ROI, and which side to buy where. Combined with the unverified-same-bet caveat, an agent has everything needed to call and interpret 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 real meaning beyond the schema: feePctPerLeg's ability to flip isArbitrage to false, and the semantic intent of manualProbabilitiesPct (bypassing a live fetch). quotes/stakeUsd are largely restated from the schema, keeping this short of a 5.

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?

States a specific verb and resource ('checks 2-5 quotes ... for a guaranteed arbitrage') and pins the domain precisely: same real-world binary bet across prediction-market venues. It is unmistakably distinct from neighbors like run_prediction_market_edge or run_funding_arbitrage.

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

Usage Guidelines4/5

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

Explicitly routes on user intent ('Use when user asks "can I arbitrage this bet across venues?"'), and clarifies the two mutually exclusive input modes (live quotes vs manual probabilities). It lacks an explicit when-not, but the scope is clear enough that an agent can pick it confidently.

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.