Skip to main content
Glama

FarmDash Agent OS

find_capital_route

Read-onlyIdempotent

Read a provider-neutral EVM market estimate for an exact token pair, chains, and input amount. It makes no provider calls and establishes neither liquidity nor execution authority. Use get_swap_quote with idempotencyKey for a separate firm quote intent.

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": {
      "fromChainId": "<fromChainId>",
      "toChainId": "<toChainId>",
      "fromToken": "<fromToken>",
      "toToken": "<toToken>",
      "fromAmount": "<fromAmount>"
    },
    "name": "find_capital_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
toTokenYesResolver-supported symbol, native identifier, token address, or chain-qualified asset; discovery resolves canonical assets server-side.
protocolNoOptional compatibility selector accepted by the preview route. The result remains provider-neutral.
fromTokenYesResolver-supported symbol, native identifier, token address, or chain-qualified asset; discovery resolves canonical assets server-side.
toChainIdYesNumeric EVM destination chain ID. Use the source ID for a same-chain estimate.
fromAmountYesAmount in token base units.
fromChainIdYesNumeric EVM source chain ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / fromChainId / description
      Added value: +"Numeric EVM source chain ID."
    • addedInput schema / properties / protocol / description
      Added value: +"Optional compatibility selector accepted by the preview route. The result remains provider-neutral."
    • addedInput schema / properties / toChainId / description
      Added value: +"Numeric EVM destination chain ID. Use the source ID for a same-chain estimate."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds genuinely non-structured context: no provider calls are made and the output is provider-neutral, which tells the agent the result is an estimate rather than a sourced or executable quote. It stops short of saying how fresh or how accurate the estimate is.

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 short sentences, front-loaded with what the tool does, then what it does not establish, then the alternative. Every clause carries distinct information and nothing is repeated from annotations or schema.

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?

There is no output schema, so the description bears responsibility for indicating what comes back; it only says "market estimate," leaving unclear whether amounts out, fees, route, or gas are included, and whether the estimate can be stale. For a 6-parameter read tool that is an adequate but incomplete definition.

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 every parameter including the protocol enum is already documented in the schema, and the description adds no format or validation detail beyond naming the conceptual inputs. Baseline 3 is appropriate; the "provider-neutral" phrasing weakly hints that protocol does not change the result shape but never says so explicitly.

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 ("Read a provider-neutral EVM market estimate") plus the exact scoping inputs (token pair, chains, input amount). The final sentence explicitly names get_swap_quote and the different intent (firm quote), so an agent can separate the two without opening either schema.

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

Usage Guidelines5/5

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

Gives the routing condition directly: this tool for a non-binding estimate, get_swap_quote with idempotencyKey for a firm quote intent. It also pre-empts misuse by denying that the result conveys liquidity or execution authority.

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