Skip to main content
Glama

Agent Margin Router

Market Spread

market_spread
Read-only

Live cross-exchange crypto spread with slippage-adjusted net edge for a given trade size. Covers major CEX venues. Pay per call with USDC or USDT on Base via x402 – no API key, no signup. 3 free calls per wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesTicker, e.g. ETH.
quoteNoQuote currency (default USDT).
walletNoYour EVM wallet address (0x...). Unlocks the free tier (3 calls per wallet).
api_keyNoOptional AMR enterprise API key.
size_usdNoNotional size in USD (default 1000).
buy_venueYesVenue to buy on, e.g. binance.
x_paymentNoOptional signed x402 payment payload (base64 JSON) for USDC/USDT on Base.
sell_venueYesVenue to sell on, e.g. coinbase.
max_age_secondsNoMax quote age (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/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 adds real behavioral context beyond that: the x402 USDC/USDT on Base payment requirement, the no-signup model, and a 3-call free tier per wallet. It stops short of describing freshness guarantees or rate limits beyond the free tier.

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 tight sentences with zero waste: the capability and its slippage-adjusted qualifier lead, followed by venue scope and the payment model. Nothing is padded or repeated.

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 9-parameter, read-only, no-output-schema tool, the description covers the cost/auth model and what the result represents (spread and net edge). It could say more about the returned fields or quote freshness behavior, but the essentials for correct invocation are present.

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 schema already documents all nine parameters including wallet, x_payment, and max_age_seconds. The description only loosely gestures at trade size ('given trade size') without adding format or interaction details beyond the schema. Baseline 3 applies.

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+resource: a live cross-exchange crypto spread with slippage-adjusted net edge for a given trade size, scoped to major CEX venues. It is easily distinguishable from siblings like token_price or gas_fees, which do not compute cross-venue edge.

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?

Provides useful prerequisite context – pay-per-call via x402, no API key/signup, 3 free calls per wallet – but never states when to prefer this over token_price or how to interpret results vs. a simple quote. Usage is implied rather than contrasted with 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.