Skip to main content
Glama

Plan multi-hop route

plan_route
Read-onlyIdempotent

Plan the cheapest MULTI-HOP route between ANY two assets — composes DEX swaps (non-custodial) + instant-lane bridges (custodial-at-venue) into one path, with every fee and per-leg custody disclosed. e.g. USDT on Tron -> XAUt on Ethereum becomes a USDT bridge + a DEX swap. from/to are an instant id (e.g. 'usdt-tron') or a {chain,address} DEX token; amount is integer base units of from. Returns ordered legs (kind, venue, custody, amounts, fee) + total output. Execute legs in order: DEX legs via build_swap_transaction, bridge legs via create_instant_shift.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesinstant id string OR a DEX token {chain,address}
fromYesinstant id string (e.g. 'usdt-tron') OR a DEX token {chain,address}
amountYesinteger base units of `from`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the readOnly/idempotent annotations: it discloses per-leg custody (non-custodial vs custodial-at-venue), fee disclosure, ordered return shape, and execution order. This is rich behavioral information for a planning tool.

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?

Dense but well-structured: purpose and composition are front-loaded, the example clarifies the abstract parameter formats, and the final execution instruction earns its place. No filler or redundant restatement.

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 complex multi-hop planning tool with no output schema, the description fully covers return contents (ordered legs, custody, amounts, fees, total output) and next actions. It leaves little ambiguity about how to consume the result.

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% and the description mostly restates the schema's parameter formats for from/to/amount. It does add a helpful cross-chain example mapping the parameters to a real route, but it does not add meaningfully new semantic details beyond the schema.

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 and resource: 'Plan the cheapest MULTI-HOP route between ANY two assets' and decomposes it into DEX swaps and instant-lane bridges. The example and explicit leg types make it clearly distinguishable from single-hop siblings like get_swap_quote and create_instant_shift.

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?

Clearly implies when to use this tool: whenever a multi-hop route is needed. It also gives explicit follow-up routing by stating DEX legs go through build_swap_transaction and bridge legs through create_instant_shift, but it does not explicitly contrast with single-hop planning alternatives such as get_swap_quote.

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.

Resources