Skip to main content
Glama

Get DEX Quote

get_dex_quote
Read-onlyIdempotent

Get a live XRP/RLUSD exchange rate and slippage estimate to price escrows or check swap costs before committing to a job budget.

Instructions

Get a live DEX price quote for swapping between XRP and RLUSD on the XRPL DEX.

Use this to price escrows in a stable currency (RLUSD) while paying in XRP, or to understand the current exchange rate before committing to a job budget.

Returns: from_amount, to_amount, rate, and slippage estimate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount of the from_currency to quote.
to_currencyYesCurrency to swap to, e.g. 'XRP' or 'RLUSD'.
from_currencyYesCurrency to swap from, e.g. 'XRP' or 'RLUSD'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive. The description adds that the quote is live and lists return fields (from_amount, to_amount, rate, slippage estimate), which is context beyond the annotations. It does not disclose details such as whether the quote is indicative or includes fees, but for a read-only quote tool the added context is useful.

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 short and front-loaded: the lead sentence states exactly what it does, followed by two practical use cases and one line listing return fields. No filler or redundant restatement.

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 rich annotations (read-only, idempotent, not destructive), the fully described schema, and an output schema, the description covers purpose, use context, and result shape. Nothing essential for correctly choosing and invoking this tool is missing.

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 coverage is 100%: each parameter has a description. The tool description mostly reinforces the currency pair ('between XRP and RLUSD') without adding new constraints or units. Baseline 3 is appropriate because the schema already does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair: 'Get a live DEX price quote for swapping between XRP and RLUSD on the XRPL DEX'. It names the exact pair and platform, so the resource is clear. It does not explicitly contrast itself with sibling tools like get_rlusd_quote or get_xrp_price, so it stops short of full sibling differentiation.

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?

It gives concrete when-to-use contexts: pricing escrows in RLUSD while paying in XRP, or checking the current rate before a job budget. This tells an agent when the quote matters, but it does not name alternative tools or say when not to use this one, so it does not fully route around siblings.

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