Skip to main content
Glama

get_quote

Get a cross-chain quote: best route, output amount, calldata, gas. Use get_chains and get_tokens first to resolve chain IDs and token addresses.

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": {
      "originChainId": "<originChainId>",
      "destinationChainId": "<destinationChainId>",
      "amount": "<amount>",
      "originCurrency": "<originCurrency>",
      "destinationCurrency": "<destinationCurrency>",
      "senderAddress": "<senderAddress>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNoFee 0–0.1 (only with integrator)
amountYesAmount in smallest units (wei/smallest decimals)
slippageNoSlippage tolerance 0–1 (e.g. 0.005 for 0.5%)
integratorNoIntegrator identifier
originChainIdYesOrigin chain ID (e.g. 1 for Ethereum, 42161 for Arbitrum)
senderAddressYesSender wallet address on the origin chain
originCurrencyYesToken address on origin chain; use 0x0... for native currency
receiverAddressNoReceiver wallet address
destinationChainIdYesDestination chain ID
destinationCurrencyYesToken address on destination chain; use 0x0... for native

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / senderAddress / description
      Previous value: -"Sender wallet address"New value: +"Sender wallet address on the origin chain"
    • addedInput schema / properties / senderAddress / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "originChainId",
      -  "destinationChainId",
      -  "amount",
      -  "originCurrency",
      -  "destinationCurrency"
      -]New value: +[
      +  "originChainId",
      +  "destinationChainId",
      +  "amount",
      +  "originCurrency",
      +  "destinationCurrency",
      +  "senderAddress"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It discloses the response contents (route, amount, calldata, gas), which usefully signals this is a read-only quote rather than an executed swap, but says nothing about auth requirements, rate limits, quote expiry, or whether calldata must be submitted separately. The safety profile is only implied by the verb 'Get'.

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?

Two sentences with zero waste: the capability and its outputs come first, the prerequisite second. Nothing is repeated from the schema and no filler is present.

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?

For a 10-parameter, 6-required quote tool with no output schema, the description covers what is returned and the ID/address resolution workflow. Remaining gaps are minor: quote validity/expiry and the read-only nature are not stated, but the fully documented schema carries most of the load.

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%, so every parameter including slippage, fee, integrator, and native-currency placeholders is already documented in the schema. The description only adds the pointer to get_chains/get_tokens for resolving IDs and addresses, which is marginal but real added value. Baseline 3 applies when the schema does the heavy lifting.

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 verb and resource ('Get a cross-chain quote') and enumerates the payload it returns (best route, output amount, calldata, gas), so an agent knows exactly what it receives. It does not explicitly distinguish itself from siblings, but those are lookups (get_chains, get_tokens) rather than quote tools.

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?

Gives explicit prerequisite ordering: 'Use get_chains and get_tokens first to resolve chain IDs and token addresses.' That routes the agent to the correct siblings before calling. It stops short of stating when NOT to use this tool or what alternatives exist for quote-like operations.

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.