Skip to main content
Glama

Quote a swap

quote_swap

Get a quote for a single-hop Uniswap v4 swap on Robinhood Chain, verifying pool liquidity and minimum output amount before execution.

Instructions

Quote an exact-input single-hop swap through the Uniswap v4 Quoter on Robinhood Chain. Proves the pool has liquidity and sizes minAmountOut before executing. Reverts if there is no/thin pool for the given fee + tickSpacing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feeNopool fee (default 3000 = 0.3%)
tokenInYesinput token symbol or 0x address
amountInYeshuman-readable input amount, e.g. "1" or "0.5"
tokenOutYesoutput token symbol or 0x address
tickSpacingNopool tick spacing (default 60)
Behavior3/5

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

With no annotations, the description must carry full burden. It discloses that the call proves liquidity, sizes minAmountOut, and reverts on no/thin pool. However, it does not state whether the call is read-only or has side effects, nor does it discuss authentication requirements. Adequate but not comprehensive.

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 concise sentences that front-load the purpose and include critical behavior upfront. Every word adds value; no unnecessary information.

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

Completeness2/5

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

The tool has no output schema, so the description should explain the return value (e.g., output amount). It fails to mention what the quote returns. Also lacks information about error messages or where to find pool info. Incomplete for a quoting tool.

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 schema already documents all parameters. The description does not add additional meaning beyond what the schema provides, such as more detailed usage examples or constraints. Baseline score 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 clearly states the verb (quote), resource (swap via Uniswap v4 Quoter on Robinhood Chain), and specific constraints (exact-input, single-hop). It effectively distinguishes from sibling tools like execute_swap and rhc_info.

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?

Indicates it should be used to prove liquidity and size minAmountOut before executing a swap, implying it precedes execute_swap. It also warns about reversion on no/thin pools. Could explicitly mention when not to use or alternatives, but the context is clear.

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/jumpboxtech/rhc-mcp'

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