Skip to main content
Glama

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, MPT authorization and locks, 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":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B","destination":"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"} Paid: 0.04356 USDC or 0.0363 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.03 EUR-denominated units (approx 33 calls per bundle) or 0.036 USD-denominated units (approx 22 calls per bundle).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "xrpl_payment_readiness"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoAsset to deliver; default XRP. `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. Or a 48-hex MPT issuance id (hex letters in either case), with `amount` in whole base units.
amountNoPositive decimal amount of asset (whole base units for an MPT); omit to skip amount-dependent checks
sourceYesSending account: valid classic XRPL address (r..., checksum verified)
credentialsNoComma-separated Credential entry IDs (1 to 8, 64 hex); checked with deposit_authorized
destinationYesReceiving account: valid classic XRPL address, different from source
destination_tagNoDestination tag you will send: an integer from 0 to 4294967295

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"Positive decimal amount of asset; omit to skip amount-dependent checks"New value: +"Positive decimal amount of asset (whole base units for an MPT); omit to skip amount-dependent checks"
    • changedInput schema / properties / asset / description
      Previous value: -"XRP (default) or CODE.issuer (3-character or 40-hex code, classic issuer)"New value: +"Asset to deliver; default XRP. `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. Or a 48-hex MPT issuance id (hex letters in either case), with `amount` in whole base units."
    • addedInput schema / properties / credentials
      Added value: +{
      +  "description": "Comma-separated Credential entry IDs (1 to 8, 64 hex); checked with deposit_authorized",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "Meta": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "age_seconds": {
      -          "description": "Age of the data at response time",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "as_of": {
      -          "description": "When the data was read from the ledger",
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -          "type": "string"
      -        },
      -        "cache": {
      -          "enum": [
      -            "hit",
      -            "miss",
      -            "stale"
      -          ],
      -          "type": "string"
      -        },
      -        "ledger_index": {
      -          "description": "Validated ledger the data comes from",
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        "stale": {
      -          "description": "True when served past its fresh TTL (stale-on-error)",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "ledger_index",
      -        "as_of",
      -        "age_seconds",
      -        "cache",
      -        "stale"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "properties": {
      -    "amount": {
      -      "anyOf": [
      -        {
      -          "description": "Decimal string",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Amount checked; null when omitted (amount checks skipped)"
      -    },
      -    "asset": {
      -      "description": "`XRP` or `CODE.issuer`",
      -      "type": "string"
      -    },
      -    "checks_failed": {
      -      "description": "Sub-checks that could not run",
      -      "items": {
      -        "enum": [
      -          "source_account",
      -          "destination_account",
      -          "deposit_authorized",
      -          "source_line",
      -          "destination_line",
      -          "issuer",
      -          "fee",
      -          "network_health"
      -        ],
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "destination": {
      -      "type": "string"
      -    },
      -    "destination_tag": {
      -      "anyOf": [
      -        {
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/Meta"
      -    },
      -    "reasons": {
      -      "description": "Blocking reason codes",
      -      "items": {
      -        "enum": [
      -          "source_not_found",
      -          "insufficient_xrp_balance",
      -          "source_line_missing",
      -          "insufficient_token_balance",
      -          "source_line_frozen",
      -          "destination_not_found",
      -          "amount_below_destination_reserve",
      -          "destination_tag_required",
      -          "deposit_not_authorized",
      -          "destination_line_missing",
      -          "destination_line_limit_exceeded",
      -          "destination_line_frozen",
      -          "issuer_not_found",
      -          "issuer_global_freeze"
      -        ],
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "source": {
      -      "type": "string"
      -    },
      -    "spendable_xrp": {
      -      "anyOf": [
      -        {
      -          "description": "Decimal string",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Source XRP above its live reserve and the standard fee; null when not computable"
      -    },
      -    "transfer_fee_pct": {
      -      "anyOf": [
      -        {
      -          "description": "Decimal string",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Issuer transfer fee in percent, when it applies"
      -    },
      -    "verdict": {
      -      "description": "`not_ready` on any blocking reason; else `unknown` on any failed sub-check",
      -      "enum": [
      -        "ready",
      -        "not_ready",
      -        "unknown"
      -      ],
      -      "type": "string"
      -    },
      -    "warnings": {
      -      "description": "Non-blocking warnings",
      -      "items": {
      -        "enum": [
      -          "destination_will_be_created",
      -          "transfer_fee",
      -          "high_fee",
      -          "network_degraded"
      -        ],
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "verdict",
      -    "reasons",
      -    "warnings",
      -    "checks_failed",
      -    "spendable_xrp",
      -    "transfer_fee_pct",
      -    "source",
      -    "destination",
      -    "asset",
      -    "amount",
      -    "destination_tag",
      -    "meta"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. 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, non-destructive, so no safety disclosure is needed; the description instead adds real value by naming the individual preflight checks performed and their cost model. It stops short of describing the shape of the readiness result (e.g., pass/fail plus per-check reasons), which matters since no output schema exists.

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?

Purpose, when-to-use, alternatives, and example are front-loaded and well-sectioned. The pricing tail is verbose and somewhat redundant, restating the same call cost twice (paid rate and prepaid debit in both EUR and USD units), which dilutes scanability.

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 6-parameter read-only preflight with no output schema, the definition covers invocation timing, alternatives, checked conditions, and cost. The remaining gap is the return contract — an agent cannot anticipate what a readiness result contains or how failures are reported.

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 per-parameter meaning is already fully documented (asset format, amount, credentials, destination_tag). The description adds only a minimal example with source and destination, repeating rather than extending schema knowledge; 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?

Opens with a specific question framing a concrete verb (pre-payment check) and resource (payment from source to destination), and enumerates the exact failure classes it detects (missing/unfunded destination, destination tag, deposit authorization, trust lines, MPT locks, balance, issuer freezes), which lets an agent distinguish it from verify/readiness siblings without reading 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?

Explicit 'When to use: Right before sending a payment' plus an explicit 'Prefer another tool' clause that names the paths endpoint for routing/source-amount and the account summary endpoint for balances. Both inclusion and exclusion conditions are stated, leaving nothing 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