Skip to main content
Glama

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

Price Consensus

workflow.run_price_consensus
Read-only

Cross-exchange agreement check for one perpetual futures price: fetches the same asset USDT/USDC-margined perpetual from a reference set of 7 liquid exchanges (Binance, Bybit, OKX, Gate, KuCoin, Hyperliquid, MEXC; the chosen one is compared against the rest) and reports the median of the others, the spread across all, and how far the chosen exchange sits from that median. Says the exchanges disagree instead of guessing: status is agree (under 0.25%), warn (0.25% to 1%), diverge (1% or more) or insufficient (fewer than 3 other exchanges returned a comparable contract; inverse, dated and unlisted contracts are not compared, and that is not a verdict on the price). Use before acting on a live price: "is this Bybit BTC price in line with the market?" Symbol is the perp symbol as that exchange names it (e.g. BTCUSDT on bybit, ETH-USDT-SWAP on okx). Returns: status, summary, median, peerMedian, spreadPct, deviationPct, sources, quotes (price per exchange), thresholds_pct, as_of. Edge cases: exchange must be a known code and symbol is that exchange own perp name (1 to 60 characters); fewer than 3 comparable peers, an unknown symbol, an inverse or dated contract or a failed quote gives status insufficient with a reason, never a guess. Not covered: order book depth, funding and basis differences between venues, spot prices, and any claim about which exchange is right; it checks agreement of last quotes only.

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": {
      "exchange": "<exchange>",
      "symbol": "<symbol>"
    },
    "name": "workflow.run_price_consensus"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesThat exchange's own perpetual symbol, e.g. BTCUSDT (bybit/binance), ETH-USDT-SWAP (okx), BTCUSDC (hyperliquid)
exchangeYesExchange code of the price being checked, e.g. bybit, binance, okx, gate, kucoin, hyperliquid, mexc

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 a safe read; the description goes far beyond them by disclosing the 7-exchange fetch set, the exact status thresholds (0.25%/1%), the insufficient condition (fewer than 3 comparable peers, inverse/dated/unlisted contracts excluded), and the explicit promise never to guess. This is exactly the behavioral context annotations cannot carry.

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 operation, then usage, returns and edge cases in a logical order. It runs long and repeats the 'insufficient / never a guess' failure behavior twice (in the status list and again under edge cases), which is minor redundancy rather than filler.

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 properly enumerates all return fields (status, summary, median, peerMedian, spreadPct, deviationPct, sources, quotes, thresholds_pct, as_of) and covers failure modes for a tool that depends on live multi-venue data. Nothing an agent needs to call it correctly or interpret the result is missing.

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 already documents both parameters with examples, so the baseline is 3. The description adds real meaning on top: the symbol must be that venue's own perp symbol and is constrained to 1–60 characters, exchange must be a known code, and only comparable USDT/USDC-margined perps are valid inputs.

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 — a cross-exchange agreement check for one perpetual futures price — and enumerates the exact reference set of 7 venues plus the outputs (median of peers, spread, deviation from median). An agent can immediately tell this apart from price-fetching or arbitrage siblings.

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?

Gives a concrete trigger scenario ('Use before acting on a live price: "is this Bybit BTC price in line with the market?"') and explicit scope exclusions (order book depth, funding/basis, spot prices, no claim about which exchange is right). It never names a sibling tool as an alternative, so routing against run_cross_venue_arbitrage or run_spread_reader is left to inference.

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.