Skip to main content
Glama

get_quote

Get a swap quote with expected output, rate, and price impact using local Nomadex AMM pool math to review swap outcomes before signing.

Instructions

Get a swap quote with expected output, rate, and price impact. Uses local Nomadex AMM math for direct pool quotes.

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)
toTokenYesDestination token symbol
slippageNoAllowed slippage percentage (default 5)
fromTokenYesSource token symbol (e.g. VOI, aUSDC, UNIT)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does add one useful trait — quotes are computed with local Nomadex AMM math for direct pools, implying no aggregator/routing and off-chain computation — but it never states that no transaction is submitted or state changed, nor anything about quote freshness, fees, or failure modes when a pool is missing.

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 tight sentences with zero filler; the purpose and the returned fields are front-loaded, and the implementation note follows as secondary context.

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?

With no output schema and no annotations, the description does name the three main return values, which is the key compensation. It falls short on whether the quote is a guarantee, how long it is valid, and what happens on an unknown token pair.

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%, including the human-readable amount format, token symbol examples, and the slippage default of 5, so the baseline of 3 applies. The description adds nothing beyond the schema about how slippage or token symbols affect the quote.

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 swap quote') and names the concrete outputs (expected output, rate, price impact). It is clear what it does, but it never contrasts itself with the sibling swap_txn, so the read-vs-execute distinction is left for the agent to infer.

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?

Usage is only implied: the word 'quote' suggests a pre-trade informational lookup rather than executing a swap, but the description never says 'use this before swap_txn' or states any when-not condition. An agent can guess the intent but is given no explicit routing rule.

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