Skip to main content
Glama

get_quote

Simulate a token swap to get expected output, exchange rate, fees, price impact, and minimum received without building or signing a transaction.

Instructions

Simulate a swap and get a quote with expected output, rate, fee, price impact, and minimum received. No transaction is built or signed.

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": {
      "fromToken": "<fromToken>",
      "toToken": "<toToken>",
      "amount": "<amount>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to swap in human-readable units (e.g. '100' for 100 VOI)
toTokenYesTo token symbol or contract ID
slippageNoAllowed slippage percentage (default 5)
fromTokenYesFrom token symbol or contract ID (e.g. 'VOI', 'aUSDC', '395614')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well by stating that this is a simulation with no transaction built or signed, making the non-mutating nature clear. It also lists the key output fields, though it omits notable quote behavior such as validity period, freshness, or the fact that the returned rate may move before execution.

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?

The description is two tight sentences with no filler. The core purpose and output list are front-loaded, followed immediately by the important non-mutating caveat.

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 four-parameter quote tool with no output schema, the description adequately names the returned values and clarifies that no transaction is produced. It could be slightly more complete by noting quote expiry or conditions under which the quote may change, but the essential information needed to invoke it correctly is present.

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 all four parameters, including slippage and token formats, are already documented in the schema. The description does not add any parameter-level meaning beyond that, so the baseline of 3 is appropriate.

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?

The description uses a specific verb and resource: 'Simulate a swap and get a quote.' It also enumerates the core outputs and explicitly clarifies that no transaction is built or signed, which cleanly distinguishes it from an execution-oriented sibling like swap_txn.

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?

The simulation framing and 'No transaction is built or signed' imply this tool is for previewing a swap before execution. However, the description does not explicitly say when to use this instead of swap_txn or get_swap_route, nor does it mention prerequisites or exclusions, leaving usage guidance implied rather than stated.

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