Skip to main content
Glama

Hedera: hederaTokensSwapQuote

hederaTokensSwapQuote
Read-onlyIdempotent

Calculate swap quotes for Hedera tokens using current USD prices. Choose exact input or output amounts to determine the swap value.

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
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, indicating safe read operation. The description adds that prices are time-sensitive and outlines two modes, providing useful context beyond annotations without contradicting them.

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 sentences with no wasted words. It front-loads the purpose and includes a key usage note (fetch fresh), making it efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the fully described schema, clear annotations, and no output schema, the description sufficiently covers the tool's purpose, usage modes, and time-sensitive nature. It is complete for an agent to understand and invoke correctly.

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?

Input schema has 100% description coverage for all 7 parameters. The description mentions exact input and exact output modes, which maps to the relevant parameters, but does not add significant new meaning beyond the schema descriptions.

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 retrieves the current USD price and swap quote for Hedera tokens, using specific verbs and resource. It distinguishes from sibling swap quote tools for other chains by specifying 'Hedera tokens', and it mentions two modes (exact input and exact output).

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 advises to always fetch fresh because crypto prices change every second, which implies usage context. However, it does not explicitly mention when not to use this tool or compare it to alternatives (e.g., other swap quote tools), so it lacks some explicit guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EmblemCompany/Agent-skills'

If you have feedback or need assistance with the MCP directory API, please join our Discord server