Skip to main content
Glama

get_quote

Retrieve a Tinyman v2 swap quote with expected output, rate, fee, price impact, and minimum received before building any transaction.

Instructions

Get a swap quote from Tinyman v2 with expected output, rate, fee, price impact, and minimum received. No transaction is built.

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 ALGO)
toTokenYesTo token symbol or ASA ID
slippageNoAllowed slippage percentage (default 0.5)
fromTokenYesFrom token symbol or ASA ID (e.g. 'ALGO', 'USDC', '31566704')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it does disclose the key behavioral trait that no transaction is constructed and what the response contains. It omits whether quotes expire or must be re-fetched before execution, and any auth or rate-limit context.

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 short sentences: the first front-loads what is returned, the second delivers the critical non-obvious constraint. No wasted wording.

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, listing the returned fields is exactly the right compensation, and the non-building caveat covers the main behavioral risk. A note on quote freshness and explicit direction to swap_txn would make it complete.

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 amount, tokens, and slippage are already documented in the schema. The description adds no extra meaning for parameters, though 'minimum received' hints at how slippage is applied.

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 ('Get a swap quote from Tinyman v2') and enumerates the returned fields (expected output, rate, fee, price impact, minimum received). 'No transaction is built' implicitly separates it from the swap_txn sibling without requiring the schema.

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?

'No transaction is built' tells the agent this is a read-only quote step and that execution must happen elsewhere (swap_txn). It does not explicitly say to call this before building a swap or warn that quotes go stale, so routing is clear but not fully prescriptive.

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