Skip to main content
Glama
multi-exchange-spread

multi-exchange-spread

by tordagaz-ops

Spot spread for one pair

get_spread
Read-only

Compare bid/ask for one pair across exchanges, show where to buy at the lower ask and sell at the higher bid, and calculate gross and after-fee spread plus dollar depth.

Instructions

Best bid and ask for one pair on every venue that lists it, the cheapest venue to buy and the dearest to sell, the gross spread, the spread left after fees, and how many dollars rest at the touch. Example: symbol='BTC/USDT'.

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": "get_spread"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesPair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'.
venuesNoRestrict the venues: bybit, binance, okx, bitget, kucoin, mexc, gate. Omit to use all seven.
fee_bpsNoTaker fee in basis points, per side. A round trip costs twice this. Default 10 (0.10%), the usual spot taker fee; use your own.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The readOnlyHint and openWorldHint annotations already establish that this is a safe read across external venues. The description adds useful behavioral context by saying it checks every venue that lists the pair and reports fee-adjusted spread and touch depth, but it does not cover failure handling, venue omissions, or latency.

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?

The description is a single front-loaded sentence enumerating the returned spread metrics, followed by a compact symbol example. It is appropriately sized, though the long enumerated list could be structured more readably.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only, single-pair spread tool with full schema coverage, annotations, and an output schema, the description gives enough context about what is computed and compared across venues. The main gap is explicit routing guidance relative to sibling tools.

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%, so the input schema already documents symbol spelling variants, venue restrictions, and fee_bps semantics thoroughly. The description only adds a symbol example, which is helpful but does not meaningfully extend parameter meaning beyond the schema.

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?

The description clearly identifies the resource and outputs: best bid/ask across venues, cheapest buy and dearest sell venue, gross and net spread, and depth at the touch for one pair. 'For one pair' implicitly distinguishes it from a broader spread-scanning sibling, though it does not name or explicitly contrast alternatives.

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 implied by 'for one pair' and the symbol example, suggesting this is the single-pair spread lookup. However, there is no explicit guidance on when to use this versus scan_spreads or estimate_trade, nor any stated prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools