Skip to main content
Glama

Spot price spread

spot_price_spread
Read-only

Cross-exchange spot price spread for BTC, ETH or SOL across Kraken, Coinbase, Gemini and OKX public order books: each venue's bid, ask and mid, the average fill for a trade size, and every buy-here/sell-there route ranked by what it nets after a taker fee on both legs (entry-tier fees by default, or your own). Transfer and withdrawal costs aren't included. Read-only: places no order. Fails (and is not charged) if fewer than two exchanges answer. Costs $0.005 USDC per call.

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": {
      "symbol": "<symbol>"
    },
    "name": "spot_price_spread"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesCoin
sizeUsdNoTrade size in USD for the average fill, 10–1000000 (default 10000)
takerFeesBpsNoYour taker fee per venue in basis points, e.g. {"Kraken": 25, "OKX": 8}

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?

Goes well beyond the readOnly/openWorld annotations: discloses per-call pricing ($0.005 USDC), the failure mode (fewer than two venues answering) and that it is not charged in that case, the fee assumption (entry-tier taker fees unless overridden), and the scope exclusion of transfer/withdrawal costs. These are exactly the traits an agent needs before spending money on a call.

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?

Dense but well front-loaded: purpose first, then outputs, then cost/failure caveats. It is one long run-on construction and 'Read-only: places no order' mildly repeats the annotation, keeping it from a 5.

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-value burden and does so fully (per-venue bid/ask/mid, average fill, ranked routes with net proceeds), plus error and billing behavior. Nothing essential is missing for correct invocation.

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; the description adds real meaning by explaining that takerFeesBps overrides the default entry-tier fee on both legs and that sizeUsd drives the 'average fill' calculation. That clarifies defaults and intent beyond the schema text.

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 ('cross-exchange spot price spread') and names the exact asset universe, venues, and outputs (bid/ask/mid, average fill, ranked net-of-fee routes). This clearly separates it from siblings like crypto_price, token_price, order_book_aggregator, and swap_quote.

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?

The description makes the use case evident (finding cross-venue arbitrage routes net of fees) and names exclusions ('transfer and withdrawal costs aren't included') plus a prerequisite (at least two exchanges must respond). It stops short of naming competing sibling tools to redirect to, so it's clear context without explicit alternatives.

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