Skip to main content
Glama
dex-cex-spread

dex-cex-spread

by tordagaz-ops

Scan DEX/CEX spreads

scan_spreads
Read-only

Scan multiple tickers for DEX–CEX spread opportunities, rank results by net edge, and retain untrusted rows as explicit refusals instead of dropping them.

Instructions

The same comparison over a list of tickers, ranked by net edge, with the rows that cannot be trusted kept in the answer as refusals rather than dropped. A scan that returns twelve symbols and eleven refusals is the honest result of asking about tickers that most aggregators would have turned into a 99.99 % 'opportunity'.

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
chainNoChain to look on, for example ethereum, solana, base, bsc, arbitrum. Guessed from the address shape when omitted.
limitNoHow many rows to return.
venueNoRestrict the comparison to one centralised venue.
symbolsNoTickers to scan. Defaults to the built-in list of twelve.
size_usdNoTrade size in dollars used for the price impact and the net edge.
cex_fee_bpsNoCentralised taker fee in basis points, per leg of the round trip.
dex_fee_bpsNoDEX fee in basis points. DexScreener does not publish the fee tier, so this is the caller's assumption and it is reported back.
min_depth_usdNoBelow this real pool depth a row is flagged thin: the spread is real but the pool cannot absorb a trade.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations only give readOnlyHint and openWorldHint; the description adds a genuinely non-obvious behavioral trait — that unpriceable rows are returned as refusals instead of being silently dropped, so a result dominated by refusals is a valid answer and not an error the agent should retry. It also reinforces that caller-supplied fee assumptions are echoed back, which shapes how results should be interpreted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Two sentences, but the front-loading is weak — the first clause depends on context the reader may not have, and the second sentence spends words on the rhetorical '99.99 % opportunity' framing. The refusals point does earn its place, so it is not filler overall, but the opening could have stated the operation directly.

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 an output schema present and full parameter documentation, the description only needs to cover intent and unusual return semantics, which it does via the refusals explanation and the ranking-by-net-edge statement. Minor gaps remain around default ticker list behavior and thin-pool handling, though the latter is covered in the schema for min_depth_usd.

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?

All eight parameters are fully documented in the schema (100% coverage), including defaults and the fee-assumption caveat, so the baseline is 3. The description adds only an indirect hint that size and fees feed the 'net edge' used for ranking, without explaining any parameter's effect beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys that this is a batch comparison over a list of tickers ranked by net edge, which distinguishes it from a single-pair sibling, but it opens with the anaphor 'The same comparison' and never names the DEX/CEX spread it is actually computing. The resource being compared is only recoverable from the title, not the description text.

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 rather than stated: 'over a list of tickers' signals this is the multi-symbol variant, and the refusals remark tells the agent this is the tool to reach for when honesty about unpriceable symbols matters. There is no explicit when-not guidance and no named alternative such as compare_price for single pairs.

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