Skip to main content
Glama

get_best_route

Fetch the full swap book from every configured venue at one pinned block, ranked first-to-last, so you can see what the chain would actually pay. Excludes aggregators and unconfigured DEXs.

Instructions

Ask verify402 what the chain would ACTUALLY pay for a swap: the full book from every configured venue (direct and WETH-routed) at one pinned block, best first. Aggregators and unconfigured DEXs are not included. Costs $0.03 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>",
      "chainId": "<chainId>"
    },
    "name": "get_best_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainIdYesREQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base. There is no default; omitting it returns 400 missing_chain.
tokenInYesToken symbol (e.g. USDC) or 0x address
amountInYesRAW base units of tokenIn, wei-scale, as a string
tokenOutYesToken symbol (e.g. WETH) or 0x address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.3

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries behavior disclosure. It covers cost per call, pinned-block snapshot behavior, venue coverage/exclusions, and ordering, but does not explicitly state read-only safety, auth/rate limits, or detailed response/error behavior.

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 scope and exclusions front-loaded and cost last. There is no redundant wording, and the structure is easy to scan.

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 still provides useful high-level return context: full book, best first, configured venues only. It leaves some response-field detail and failure-mode behavior implicit, but covers the core for this route query.

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 all four parameters are already documented. The description adds no parameter-specific meaning, constraints, or examples beyond what the schema provides.

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?

States a specific operation: returns the full venue book of actual payable swap outcomes at a pinned block, best first, and excludes aggregators and unconfigured DEXs. Purpose is clear, but it does not explicitly differentiate from route-related sibling tools.

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?

Implied use is checking executable swap pricing across configured venues, and the exclusion of aggregators/unconfigured DEXs is a useful boundary. However, there is no explicit when-to-use guidance versus sibling tools or workflow context.

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