Skip to main content
Glama

Kryptonian Labs XRPL APIs

AMM pool

get_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: get_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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and non-destructive. Description adds a specific failure mode (404 for no pool) beyond annotations. However, it does not cover rate limits, auth requirements, or response caching.

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?

Description is front-loaded with purpose and structured with labels. However, the 'When to use' sentence largely restates the first sentence, adding mild redundancy. Example is useful but overall slightly longer than necessary.

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 output schema exists (so return values need no explanation), annotations cover safety, and schema covers params, the description completes the picture with usage, alternatives, and failure mode. Nothing critical is missing for a simple read 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 both parameters are fully documented in the schema. The description's example merely restates the schema's format without adding semantic meaning (e.g., order independence). Baseline 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) and scope (asset pair). Explicitly distinguishes from sibling estimate_slippage by noting it does not estimate slippage or compare venues. An agent can identify its role without opening the 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?

Provides explicit 'When to use' and 'Prefer another tool' guidance, naming the alternative (slippage page) and the condition (slippage/venue comparison). Also notes 404 for a pair without a pool, covering failure mode.

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