Skip to main content
Glama

Hedera: hederaTokensSwapQuote

hederaTokensSwapQuote
Read-onlyIdempotent

Fetch real-time USD price and swap quote for Hedera tokens. Choose exact input or output mode for precise swaps.

Instructions

Get current USD price and swap quote for Hedera tokens. ALWAYS fetch fresh - crypto prices change every second. Supports exact input (spend X) and exact output (receive Y) modes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromTokenIdYesToken to swap from (0.0.000000 for HBAR)
toTokenIdYesToken to swap to
fromTokenDecimalsYesDecimals of from token
toTokenDecimalsYesDecimals of to token
amountNoAmount to swap (for exact input mode)
exactOutputAmountNoExact output amount (for exact output mode)
isExactOutputNoTrue for exact output mode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removedv1.1.0
  3. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds valuable behavioral context: prices change every second and fresh data must always be fetched. This goes beyond the structured annotations by addressing freshness/liveness, though it doesn't detail response format or edge cases.

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 concise sentences, front-loaded with the tool's core purpose. Every word adds value, and the freshness warning is both necessary and memorable.

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?

Given the 7 parameters and no output schema, the description covers the essential purpose, mode distinction, and freshness requirement. It doesn't detail the quote response structure, but the name and summary are sufficient for a simple read-only quote tool. Slightly more detail about output could push it higher.

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 the baseline is 3. The description adds a high-level explanation of exact input versus exact output modes, but the schema already explains the 'amount' and 'exactOutputAmount' parameters clearly. No additional parameter-specific meaning is provided.

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 clearly states the tool gets a current USD price and swap quote for Hedera tokens, using a specific verb ('Get') and resource ('Hedera tokens'). It also distinguishes this from siblings by naming the Hedera context and the two quote modes.

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?

The description clearly implies when to use the tool: for Hedera token swap quotes, and emphasizes 'ALWAYS fetch fresh' to reinforce real-time usage. However, it does not explicitly mention alternatives or exclusions, such as using chain-specific swap quote tools like baseSwapQuote for other chains.

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

Deploy Server

Other Tools