Skip to main content
Glama

Kriptonianlabs Agent APIs

Payment readiness

xrpl_payment_readiness
Read-onlyIdempotent

Pre-payment check: can this payment from source to destination succeed now? When to use: Right before sending a payment: to catch a missing or unfunded destination, a required destination tag, deposit authorization, missing or frozen trust lines, insufficient balance and issuer freezes, in one call. Prefer another tool: To find a multi-hop route or the source amount needed for a cross-currency payment (use the paths endpoint), or to list balances (use /v1/xrpl/account/{address}/summary). Example: xrpl_payment_readiness {"source":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","destination":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetNoXRP (default) or CODE.issuer (3-character or 40-hex code, classic issuer)
amountNoPositive decimal amount of asset; omit to skip amount-dependent checks
sourceYesSending account: valid classic XRPL address (r..., checksum verified)
destinationYesReceiving account: valid classic XRPL address, different from source
destination_tagNoDestination tag you will send: an integer from 0 to 4294967295

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
assetYes`XRP` or `CODE.issuer`
amountYesAmount checked; null when omitted (amount checks skipped)
sourceYes
reasonsYesBlocking reason codes
verdictYes`not_ready` on any blocking reason; else `unknown` on any failed sub-check
warningsYesNon-blocking warnings
destinationYes
checks_failedYesSub-checks that could not run
spendable_xrpYesSource XRP above its live reserve and the standard fee; null when not computable
destination_tagYes
transfer_fee_pctYesIssuer transfer fee in percent, when it applies

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 destructiveHint=false, so the safety profile is covered. The description goes beyond that by enumerating the checks performed (unfunded destination, required destination tag, deposit authorization, frozen trust lines, insufficient balance, issuer freezes), which tells the agent what a failure means. It does not disclose latency or rate-limit behavior, so a 4 rather than 5.

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-loads the purpose in the first clause, then uses labeled sections ('When to use', 'Prefer another tool', 'Example') so an agent can scan quickly. It is a dense single block and slightly long, but every clause carries routing or check-list information.

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, the description need not explain return values, and it already covers purpose, timing, the enumerated preconditions, and sibling alternatives. For a 5-parameter read-only check tool this is sufficient 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 the schema already documents all five parameters, including asset format and the omit-amount behavior. The description adds only an example invocation that exercises source and destination but says nothing about asset, amount, or destination_tag, so it does not meaningfully exceed the schema baseline.

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 (pre-payment check) and resource (payment from source to destination) with scope (whether it can succeed now). It is clearly distinguishable from siblings like xrpl_paths and xrpl_account_summary, which the description explicitly names as the alternatives for other jobs.

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?

Gives explicit timing ('Right before sending a payment'), the conditions to detect, and explicit 'prefer another tool' routing with two named alternatives (paths endpoint for routing/cross-currency, account summary for balances). Nothing is left to inference.

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