Skip to main content
Glama

Criptonlabs Agent APIs

AMM pool

xrpl_amm
Read-onlyIdempotent

AMM pool reserves and trading fee for an asset pair. When to use: To read AMM pool depth and fee for a pair. Prefer another tool: It does not estimate slippage or compare venues (use the slippage page for the CLOB vs AMM comparison); a pair without a pool returns 404. Example: xrpl_amm {"a":"XRP","b":"USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYesFirst asset: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)
bYesSecond asset: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
asset_aYes
asset_bYes
reserve_aYesDecimal string
reserve_bYesDecimal string
trading_feeYesDecimal string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered structurally. The description adds value beyond that by disclosing the 404-on-missing-pool behavior and by bounding scope (no slippage estimation), though it says nothing about response shape or rate limits.

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 what it returns, then compact labeled fragments for usage, exclusions and an example. Dense and mostly waste-free, though the 'Prefer another tool:' label reads slightly awkwardly against the following clause.

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?

For a two-parameter read-only tool with full schema coverage, an output schema and complete annotations, the description covers purpose, selection criteria and the failure case. Nothing essential is missing, though it could note whether non-XRPL DEX AMMs are covered.

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% and both parameters document the XRP vs CODE.issuer format fully. The worked example mirrors that format without adding new syntax rules, so the baseline 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?

States a specific resource (AMM pool reserves and trading fee) scoped to an asset pair, so the agent knows exactly what comes back. It is clearly separable from siblings like xrpl_orderbook and xrpl_slippage, which the description itself invokes by name.

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 labeled 'When to use' plus an exclusion clause stating it does not estimate slippage or compare venues, and routes that need to the slippage page / xrpl_slippage. Also documents the no-pool 404 case, which is the main edge condition for calling this.

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