Skip to main content
Glama

get_quote

Get an on-chain DEX aggregator quote (computed by the Quoter contract, not an off-chain API). Returns route, expected output, price impact and the enforced minimum. The checks object carries the Phoenix Check verdicts — priceImpact (against a 20% hard line), the on-chain Iron Law floor, and a cross-check note — with an overall verdict that fails closed (blocked/danger/caution/ok): quote these when a user asks whether a swap is safe. Add recipient to also receive signable transaction calldata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inYesinput token — symbol (ETH, USDC, BZPX…) or 0x address
outYesoutput token — symbol or 0x address
rpcNooptional https RPC endpoint of YOUR OWN node — when set, the read is made through it instead of our shared pool. The service stays free either way; this simply keeps your volume off our quota (and off everyone else's).
chainYesbase | eth | optimism | arbitrum | robinhood (or a chain id)
amountInYesinput amount in the token's smallest units (wei-style integer string)
recipientNooptional 0x address; when set, the response includes signable tx calldata

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description is the sole source of safety and behavior info. It discloses that the quote is computed on-chain by the Quoter contract, that the checks object carries fail-closed verdicts (blocked/danger/caution/ok), and that an optional recipient yields signable tx calldata. These are meaningful behavioral details beyond a simple GET.

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 three sentences with no filler; every sentence contributes either the core function, the safety-check semantics, or the recipient option. It is dense but appropriately sized for the tool's richness.

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?

There is no output schema, so the description carries the burden of explaining return values; it lists route, expected output, price impact, enforced minimum, and the checks object with verdicts. This is sufficient for an agent to know what to expect, though it could be more explicit about the exact structure of the checks object.

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?

The schema already covers 100% of the parameters with clear descriptions, so the baseline is 3. The description adds minimal extra meaning, noting that the recipient parameter triggers signable calldata and that rpc switches to a private node, but these are minor additions over the schema.

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 verb 'Get' plus the resource 'on-chain DEX aggregator quote' clearly identifies the tool's function, and the phrase 'computed by the Quoter contract, not an off-chain API' differentiates it from typical aggregator services. It also lists the returned elements (route, expected output, price impact, minimum), making the purpose unambiguous.

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 explicitly states when to use the tool: 'quote these when a user asks whether a swap is safe.' It also provides the alternative of providing a custom RPC for volume control, and notes that adding a recipient returns calldata. However, it does not explicitly compare against the sibling tools (check_solvency, xray_scan), though they appear unrelated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation5/5

The two tools have completely distinct purposes: check_solvency focuses on the staking engine's financial health, while get_quote provides DEX swap safety checks. There is no overlap in functionality, making tool selection straightforward.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern using snake_case (check_solvency, get_quote). This is predictable and aids an agent in understanding the action and target of each tool.

Tool Count3/5

With only two tools, the server feels minimal and borderline for a comprehensive DeFi interface. While the scope might be intentionally narrow, two tools are on the thin side and could benefit from additional capabilities.

Completeness3/5

The server covers solvency validation and swap quote safety, but lacks tools for staking actions (stake/unstake) or executing swaps. This leaves notable operational gaps for a full lifecycle, though the read-only safety focus is partially addressed.

Resources