Skip to main content
Glama

Perp Spreads

perp_spreads
Read-onlyIdempotent

Get top cross-venue spread-arbitrage opportunities for perpetual futures. Returns symbols where the price gap between the cheapest and most-expensive exchange is >= 0.5%, the ten widest. With symbol: that one coin's cheapest and dearest venue now, whatever the gap (one row, or none when fewer than two perps quote it). Each row includes buy_exchange+buy_price, sell_exchange+sell_price, and spread_pct. Pre-ranked — just cite the rows directly. Outliers (>400 bps from cross-venue median, typically unit-mismatch listings like 1000SHIB) are already filtered out. Each perp leg carries buy_/sell_market_status and buy_/sell_delist_ts, as in perp_funding (null on a spot leg).

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

Input Schema

NameRequiredDescriptionDefault
symbolNoOne coin (BTC): its spread whatever the size. Omit for the ten widest gaps of 0.5% or more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Symbol to compare. Omit for full matrix."New value: +"One coin (BTC): its spread whatever the size. Omit for the ten widest gaps of 0.5% or more."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, closed-world profile, and the description adds substantial behavior beyond them: the 0.5% threshold and top-ten cap, pre-ranked output requiring no post-processing, outlier removal above 400 bps from the cross-venue median with the 1000SHIB unit-mismatch example, and null market_status/delist_ts on a spot leg. That is exactly the kind of filtering and data-quality disclosure an agent cannot get from structured fields.

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?

Front-loaded purpose, then default behavior, then the symbol-mode exception, then row shape and caveats. No filler sentences; even the compressed final clause about buy_/sell_ prefixing and null-on-spot-leg carries necessary meaning.

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?

For a single optional-parameter, no-output-schema tool, the description covers scope, thresholds, filtering, row field names, ranking, and degenerate cases (no row, spot leg nulls). An agent can call and interpret results correctly without opening anything else.

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, but the description adds real meaning: with symbol the gap is returned regardless of size, yielding exactly one row, or no row when fewer than two perps quote the coin. That edge case is not obvious from the schema alone. It does partially restate the schema's own wording, keeping it below a 5.

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?

The description opens with a specific verb and resource: 'Get top cross-venue spread-arbitrage opportunities for perpetual futures.' It immediately defines the metric (price gap between cheapest and most-expensive venue) and threshold (>= 0.5%, ten widest), which clearly separates it from funding-rate siblings like perp_funding and time-series siblings like perp_spreads_history.

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?

It spells out the two usage modes and their selection condition: omit symbol for the ten widest gaps above 0.5%, supply symbol for a single coin 'whatever the gap.' It also tells the agent to cite rows directly rather than re-rank. It stops short of naming a specific alternative tool for historical spread data, but the in-tool mode routing is explicit.

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.