Skip to main content
Glama
multi-exchange-spread

multi-exchange-spread

by tordagaz-ops

Scan the market for spreads

scan_spreads
Read-only

Ranks cross-exchange spot pairs by net spread after taker fees, filters by liquidity, and flags unusually wide spreads that likely signal stale tickers rather than profit.

Instructions

Ranks pairs by the cross-venue spread left after fees. Gathers every venue's whole book, keeps the most liquid pairs that at least two venues quote, then compares them. Rows wider than 200 bps are marked suspect: on a pair two venues both list, that usually means a stale ticker, not free money. Example: min_net_bps=0, limit=20.

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

Input Schema

NameRequiredDescriptionDefault
sortNoOrder: 'net_bps' (default), 'gross_bps' or 'turnover'.net_bps
limitNoHow many rows to return. Default 10, maximum 50.
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.
symbolsNoOptional list of pairs to look at instead of the whole market. Up to six pairs are fetched in a single pass.
shortlistNoHow many of the most liquid pairs to compare after ranking. Default 60, maximum 200.
min_net_bpsNoKeep only pairs whose spread after fees is at least this many basis points. Default 0: only what clears fees. Use -10 to see near misses.
min_turnover_24hNoKeep only pairs where the best 24-hour turnover is at least this many USDT. Default 1000000.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description still adds real value beyond them: it discloses that the tool pulls every venue's entire order book, applies a two-venue quoting filter and a liquidity shortlist, and flags >200 bps rows as probable stale data. That data-quality caveat is the kind of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three front-loaded sentences: what it does, how it works, and the main interpretation caveat, followed by a compact example line. No sentence is redundant and the most important warning arrives before the invocation example.

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?

With eight optional parameters, an output schema and read-only/open-world annotations, the description covers mechanism, filtering stages and the primary reading pitfall. It omits any mention of latency or call cost of sweeping seven venues' full books, which matters for an open-world scan but is a minor gap given the output schema and annotations.

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%, so every parameter including sort keys, fee_bps round-trip semantics and shortlist limits is already documented in the schema itself. The description adds only the illustrative min_net_bps=0/limit=20 example and the tie between the 200 bps suspect threshold and min_net_bps interpretation, which is minimal 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 opens with a specific verb and resource ("Ranks pairs by the cross-venue spread left after fees") and adds the pipeline that produces the ranking, which separates it from a single-pair lookup like get_spread. It never names or contrasts with the siblings, so differentiation is inferred from the "every venue's whole book" breadth rather than stated.

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?

Usage context is clear: it is a market-wide scan, and the note that rows wider than 200 bps usually mean a stale ticker tells the agent how to read suspicious output rather than chase it. The example invocation (min_net_bps=0, limit=20) illustrates a typical call, but there is no explicit "use this instead of X when Y" routing.

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