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 20 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":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","destination":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B","asset":"XRP","amount":"1"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesAsset delivered: XRP or CODE.issuer (3-character or 40-hex code, classic issuer)
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
send_max_assetNoAsset of send_max: XRP or CODE.issuer; give it with send_max

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
warningsYesNon-blocking warnings
alternativesYesPath alternatives; empty when none was found
paths_may_be_non_optimalYesPath finding is best effort: a cheaper path may exist

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so safety is covered; the description adds genuinely new behavior that annotations cannot express: a ~20-second worst-case latency and that returned paths may be non-optimal. It stops short of describing truncation, error modes, or how 'source cost' is reported, so not 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose followed by clearly labelled 'When to use', 'Prefer another tool', and 'Example' sections. Long but every sentence carries distinct routing or behavior 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?

Output schema exists, so return structure needn't be explained. Purpose, routing, latency caveat, and a concrete invocation example cover everything an agent needs to call this 7-parameter tool correctly.

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 already documents every field, including the send_max/source_assets mutual exclusion and asset formats. The description adds no syntax beyond the example call, so the baseline 3 applies.

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 ('Multi-hop payment paths') plus the core output ('their source cost'), which is exactly what distinguishes it from the single-hop siblings. An agent can tell what it produces 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?

Explicit 'When to use' (before a cross-currency or multi-hop payment, to test route existence and cost) and explicit routing away to named alternatives: payment-readiness for direct payments, slippage for single-pair trade cost. Nothing 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