Skip to main content
Glama

XRPLHub — XRPLScore, MPT issuer risk & payment pre-checks

precheck_payment

Before your agent pays an XRPL address: one verdict (block / caution / proceed) by fixed published rules — the destination's XRPLScore, a sanctions screen against every list XRPLHub holds (with a verifiable receipt), account age and ledger flags, and whether the ledger would REJECT the payment (missing destination tag, Deposit Authorization, no RLUSD trust line, unfunded account). This is a PAID x402 call: $0.03 in USDC on Base or RLUSD on the XRP Ledger at GET /api/x402/precheck. This tool returns the payment resource to call; it does not run the check. Params: destination (r..., required), amount, currency (XRP|RLUSD), destination_tag, from (your paying address).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoOptional: your paying address — lets the check test Deposit Authorization preauth
amountNoOptional: the amount you intend to send (plain decimal)
currencyNoOptional: XRP (default when amount is given) or RLUSD
destinationYesThe XRPL address (r...) you are about to pay
destination_tagNoOptional: the destination tag you will use

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses a lot: paid x402 call at $0.03 in USDC on Base or RLUSD on XRPL, the exact endpoint, and critically that the tool returns the payment resource rather than running the check. Missing auth/prerequisite and failure handling, but this is well above the no-annotation baseline.

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-loaded with the purpose and verdict shape, then cost/endpoint, then the crucial 'does not run the check' caveat. The closing param enumeration duplicates the input schema and is the one partly wasteful sentence.

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?

No output schema exists, so the description must convey returns, and it does specify the three-way verdict plus its components (score, sanctions with receipt, age/flags, rejection reasons). It does not describe the returned resource's structure or how to redeem the verifiable receipt, leaving a modest gap.

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 coverage is 100%, so every parameter including the 'from' Deposit-Authorization explanation is already documented in the schema. The description's trailing param list largely restates the schema, adding the currency enum inline but nothing the schema does not already convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('precheck payment') and enumerates the composite scope: XRPLScore, sanctions screen, account age/flags, and ledger-level rejection reasons. It clearly resolves the ambiguity that it returns a payment resource rather than performing the check. It does not explicitly name which sibling (check_xrpl_score, screen_address_ofac) it supersedes, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Before your agent pays an XRPL address' gives a clear trigger condition, and the note that it returns the resource to call (not the check) tells the agent a follow-up invocation is required. There is no explicit when-not or named alternative among the many sibling check_* tools, so it falls short of 5.

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.