Skip to main content
Glama

Cross-venue spreads

spreads
Read-onlyIdempotent

Buy-on-one-venue, sell-on-the-other round trips at their best size, after each venue's network fee: cost_cc per route, swap_cost_cc per venue (Cantex and OneSwap their own quotes, checked against our trades; Tradecraft and Temple none per trade; Rocky, Kora and Pool Party assumed at 1.5 CC). A trip through an order book in dollars (via=usd) also pays the CC/USDCx leg of each pool side. clears is true when one nets at least $0.50.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many routes to return, best first, 1 to 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"How many routes to return, best first, 1 to 50"
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: how fees are derived per venue (own quotes vs. assumed 1.5 CC), that one book passes through dollars and pays the CC/USDCx leg, and that `clears` means netting at least $0.50. That is real context beyond the structured fields, though the provenance of 'best size' is unstated.

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 core purpose is front-loaded and every clause (fee sources, `cost_cc`, `swap_cost_cc`, the USD order-book leg, the `clears` threshold) carries information. It is a long, heavily parenthesized run-on sentence, which costs readability but not substance.

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 no output schema, the description is the only place return semantics can live, and it does explain the cost fields and the `clears` flag. It omits what identifies a route (venue pair, size, price) and what 'best size' derivation means, but is otherwise sufficient for a one-parameter read tool.

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?

The single `limit` parameter is fully documented in the schema (best-first, 1 to 50), so the baseline is 3. The description adds nothing about `limit`, and it introduces `via=usd`, a selector that does not appear in the input schema, which could confuse an agent about whether such an option can be passed.

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 states a concrete computation: buy on one venue, sell on the other, at best size, net of network fees, returning per-route cost and a `clears` flag. An agent can tell this is a cross-venue arbitrage/round-trip scanner. It does not explicitly distinguish itself from siblings like `quote`, `premiums`, or `exit_cost`, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no named alternative. The $0.50 clearing threshold hints at the intent (find profitable routes) but nothing tells the agent whether to call this, `quote`, or `premiums` for a given question.

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.