Skip to main content
Glama

Criptonlabs Agent APIs

Slippage estimate

xrpl_slippage
Read-onlyIdempotent

Slippage and average price for buying an amount of base currency. When to use: Before placing a market-style trade, to size it against available depth and to see whether the CLOB or the AMM pool is the cheaper venue. Prefer another tool: It is an estimate, not a quote, and it does not split an amount across venues or route through other pairs. To read pool reserves, use the amm page. Example: xrpl_slippage {"base":"XRP","quote":"USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","amount":"1000"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYesBase currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)
depthNoLevels per side: a positive integer, rounded up to 10, 50, 100 or 200 (max 200)
quoteYesQuote currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)
amountYesPositive decimal amount of base to buy

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes
metaYes
sideYes
depthYes
quoteYes
amountYesDecimal string
filledYesDecimal string
venuesYesCLOB vs AMM comparison for the same amount; no routing split
partialYes
avg_priceYes
best_priceYes
slippage_pctYesPercent, null when liquidity is insufficient
transfer_feeYes
avg_price_after_feesYes
transfer_fee_appliedYes
insufficient_liquidityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so safety is covered. The description adds genuine behavioral context beyond them: it is a price estimate rather than an executable quote, and it deliberately does not split amounts or route through other pairs. It omits auth/rate-limit details, but those are minor here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then clearly delimited 'When to use', 'Prefer another tool', and 'Example' segments. Every sentence carries weight, though the block is on the longer side for a four-parameter read tool.

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?

With an output schema present, return values need no explanation, and annotations cover the safety profile. The description supplies the venue-comparison intent, the non-routing caveat, an alternative tool, and a concrete call example, leaving nothing essential for correct invocation.

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 base/quote/amount/depth are fully documented in the schema, establishing the baseline of 3. The description's example illustrates base/quote/amount usage but adds no format or semantic detail beyond the schema, and the depth parameter goes unmentioned.

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?

States a specific verb (estimate) and resource (slippage and average price for buying an amount of base currency) with the exact scope. An agent can distinguish it from xrpl_orderbook, xrpl_amm, and xrpl_paths without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use (before a market-style trade, to compare CLOB vs AMM depth) and when not (it is an estimate, not a quote; does not split or route across venues), and names a concrete alternative ('use the amm page'). This is exactly the routing guidance an agent needs.

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.

Resources