Skip to main content
Glama
silverback-x402-mcp

silverback-x402-mcp

by RidingLiquid

swap_quote

Fetch swap route quotes with price impact analysis on Base chain for a specified token pair and amount; each call costs $0.01 USDC.

Instructions

Get optimal swap route with price impact analysis on Base chain ($0.01 USDC per call)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tokenIn": "<tokenIn>",
      "tokenOut": "<tokenOut>",
      "amountIn": "<amountIn>"
    },
    "name": "swap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenInYesInput token address or symbol (e.g. "USDC", "0x833589...")
amountInYesAmount to swap in token units (e.g. "100" for 100 USDC)
tokenOutYesOutput token address or symbol (e.g. "ETH", "WETH")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose two useful behavioral facts the schema cannot convey: the tool is scoped to Base chain and costs $0.01 USDC per call. It omits that the call is non-mutating and does not execute the swap, which matters because a sibling named 'swap' exists and could be confused with this one.

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?

A single front-loaded sentence with the primary capability first and the pricing caveat in a tight parenthetical. Nothing is redundant, though the bare price figure would read better if tied to what triggers it (per call vs per successful quote).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter quote tool with no annotations and no output schema, the description should say what comes back (route, expected output, price impact) and whether the quote is executable. It names price impact analysis but leaves the return shape and quote freshness unspecified, so the agent knows the purpose but not the payload.

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% (tokenIn, tokenOut, amountIn all documented with examples), so the baseline is 3. The description adds only indirect context by naming Base chain, which hints that the token addresses are Base-network tokens, but it adds no semantics about amount units or decimals 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 states a specific verb and resource ('Get optimal swap route') plus a scope qualifier ('on Base chain') and an output feature ('price impact analysis'), so the agent knows exactly what the call produces. It stops short of differentiating from the 'swap' sibling, which presumably executes the trade this tool only quotes.

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 explicit guidance on when to use this versus 'swap' or 'jupiter_quote', and no stated preconditions such as needing token addresses on Base. The word 'quote' is never used, so the agent must infer this is a pricing/route preview rather than an execution step.

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