Skip to main content
Glama

Payment paths

xrpl_paths
Read-onlyIdempotent

Multi-hop payment paths and their source cost. When to use: Before a cross-currency or multi-hop payment: to see whether a route exists and how much the source would spend to deliver the amount. A call can take up to about 25 seconds and paths may be non-optimal. Prefer another tool: To check whether a direct payment can succeed (use /v1/xrpl/payment-readiness), or for the single-hop cost of a trade on one pair (use /v1/xrpl/slippage, which compares the order book and the AMM). Example: xrpl_paths {"source":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B","destination":"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq","asset":"XRP","amount":"1"} Paid: 0.0726 USDC or 0.0605 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.05 EUR-denominated units (approx 20 calls per bundle) or 0.06 USD-denominated units (approx 13 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>",
      "asset": "<asset>",
      "amount": "<amount>"
    },
    "name": "xrpl_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesAsset delivered: `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.
amountYesPositive decimal amount of asset the destination receives
sourceYesSending account: valid classic XRPL address (r..., checksum verified)
send_maxNoMost the source may spend, in send_max_asset; not with source_assets
destinationYesReceiving account: valid classic XRPL address
source_assetsNoComma-separated assets the source may spend (1 to 4); not with send_max. Each asset: `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.
send_max_assetNoAsset of send_max; give it with send_max. `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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / asset / description
      Previous value: -"Asset delivered: XRP or CODE.issuer (3-character or 40-hex code, classic issuer)"New value: +"Asset delivered: `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."
    • changedInput schema / properties / send_max_asset / description
      Previous value: -"Asset of send_max: XRP or CODE.issuer; give it with send_max"New value: +"Asset of send_max; give it with send_max. `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."
    • changedInput schema / properties / source_assets / description
      Previous value: -"Comma-separated assets the source may spend (1 to 4); not with send_max"New value: +"Comma-separated assets the source may spend (1 to 4); not with send_max. Each asset: `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."
  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": {
      -    "alternatives": {
      -      "description": "Path alternatives; empty when none was found",
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "paths": {
      -            "description": "Computed paths, compact steps",
      -            "items": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "account": {
      -                    "description": "Account the path rips through",
      -                    "type": "string"
      -                  },
      -                  "currency": {
      -                    "description": "Currency code of this step (3 characters or 40 hex)",
      -                    "type": "string"
      -                  },
      -                  "currency_ascii": {
      -                    "description": "Readable text of a 40-hex currency code; null when not printable ASCII; absent for XRP and 3-character codes",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "issuer": {
      -                    "description": "Issuer of the step currency",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          "paths_count": {
      -            "description": "Number of computed paths",
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "source_amount": {
      -            "additionalProperties": false,
      -            "description": "Estimated amount the source spends",
      -            "properties": {
      -              "asset": {
      -                "description": "`XRP` or `CODE.issuer`",
      -                "type": "string"
      -              },
      -              "currency_ascii": {
      -                "description": "Readable text of a 40-hex currency code; null when not printable ASCII; absent for XRP and 3-character codes",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "value": {
      -                "description": "Decimal string",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "asset",
      -              "value"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "source_amount",
      -          "paths_count",
      -          "paths"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/Meta"
      -    },
      -    "paths_may_be_non_optimal": {
      -      "const": true,
      -      "description": "Path finding is best effort: a cheaper path may exist",
      -      "type": "boolean"
      -    },
      -    "warnings": {
      -      "description": "Non-blocking warnings",
      -      "items": {
      -        "enum": [
      -          "destination_not_found"
      -        ],
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "alternatives",
      -    "paths_may_be_non_optimal",
      -    "warnings",
      -    "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 read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a ~25 second worst-case latency and a warning that returned paths may be non-optimal. The long per-call pricing/VAT/credit block is billing metadata rather than tool behavior, which keeps this just short of a 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?

The definition is front-loaded and clearly segmented by labeled clauses (When to use, Prefer another tool, Example), with the core purpose first. The multi-sentence pricing, VAT and prepaid-credit passage is disproportionate for a selection-focused description and dilutes the otherwise tight structure.

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 read-only, seven-parameter query tool with full schema coverage and no output schema, the description covers purpose, routing, latency and cost, which is enough to call it correctly. The one gap is that it never says what the returned paths or source cost look like (units, ordering, whether an empty list means no route), leaving that entirely to the annotations and schema.

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 seven parameters including the send_max/source_assets mutual exclusion. The description adds only a sample call showing the four required fields, and says nothing about the optional send_max_asset/source_assets pair beyond what the schema states. 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?

The opening line states the specific resource and outcome: multi-hop payment paths plus their source cost. It immediately distinguishes itself from named siblings (payment-readiness for direct payments, slippage for single-hop pair cost), so an agent can pick it without opening either 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 clause (before a cross-currency or multi-hop payment, to test route existence and source spend) and an explicit when-not clause naming two alternatives with the condition that selects each. This is textbook routing guidance.

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