Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Bridge quote, cross-chain transfer

bridge_quote
Read-only

Cheapest route to move tokens between chains (Ethereum to Base, Arbitrum to Solana…) across 20+ bridges via LI.FI: amount received, minimum, USD values, gas, bridge fees, total cost in percent, estimated time, steps and approval address; with fromAddress, the unsigned transaction to sign. Swaps on either side are included when the tokens differ. A quote only: nothing is signed or sent. Use before an agent moves funds across chains. Example: fromChain=ethereum, toChain=base, fromToken=USDC, amount=1000. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "fromChain": "<fromChain>",
      "toChain": "<toChain>",
      "fromToken": "<fromToken>",
      "amount": "<amount>"
    },
    "name": "bridge_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of fromToken in token units, e.g. 100 or 0.5
toChainYesDestination chain name or id
toTokenNoToken to receive (default: the same token)
slippageNoSlippage tolerance in percent (default 0.5)
fromChainYesSource chain name or id
fromTokenYesToken to sell: symbol (USDC, ETH) or address
toAddressNoOptional receiving wallet, e.g. a Solana address when bridging to Solana
fromAddressNoOptional wallet that would send: adds the unsigned transaction to the answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive/openWorld, and the description adds genuinely new behavior: nothing is signed or sent, payment is $0.01/call via x402 USDC or a card key, the first 10 are free, and failed calls are free. The non-idempotency hint is also explained by "each call is charged, so repeats are not free," so nothing conflicts.

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?

Front-loaded with the outcome (cheapest route) and the returned fields, then safety and pricing, which is the right order. There is some redundancy: "A quote only: nothing is signed or sent" is restated as "Reads or computes only and changes nothing," and the per-call charge is stated twice.

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?

With no output schema, the description enumerates the return payload (amount received, minimum, USD values, gas, bridge fees, total cost percent, estimated time, steps, approval address) and explains how fromAddress changes the response. Cost, auth and safety are all covered, so an agent can call it without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds concrete value beyond it by showing real chain identifiers in the example (fromChain=ethereum, toChain=base) and clarifying that toToken defaults to the same token and that swaps are folded in when tokens differ. Optional params like slippage and toAddress get no additional treatment 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?

"Cheapest route to move tokens between chains ... across 20+ bridges via LI.FI" gives a specific verb, resource and scope, and the parenthetical chain pairs plus "swaps on either side are included when the tokens differ" separate it from a same-chain swap or a status lookup without naming them.

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?

"Use before an agent moves funds across chains" gives explicit timing guidance, and the pricing note implies the alternative of not repeating calls. It never names a sibling (e.g. swap_quote or bridge_status) or states when a different tool is the better choice, so it stops short of a 5.

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