Skip to main content
Glama

xrp_infer

Run one inference paid PER CALL in XRP on the XRP Ledger via x402, no channel. Non-custodial, two steps: (1) call without payment to get the 402 quote (exact drops, destination, destination tag, signed quote; priced from the XRP Ledger's own XRP/RLUSD market); nothing is spent. (2) Sign one XRP Payment for exactly that in your own wallet and call again with the same prompt, model and maxTokens plus payment = base64 of {"x402Version":1,"scheme":"exact","network":,"payload":{"txBlob":,"quote":<accepts[0].extra.quote>}}. The broker checks the payment before broadcasting it, waits for validation (a few seconds), and returns the completion, the settlement tx hash, and a signed receipt. This server never takes a wallet seed: an xrpSeed argument is refused. On failure returns isError "error: (): ". Codes: key_refused; pending (202: submitted but not validated yet; call again with the same payment); payment_failed (402: the payment was refused before broadcast or did not settle; nothing is spent unless the text includes a settlement tx); invalid_request (400); upstream_failed (502: the payment SETTLED but the model provider then failed; the text includes the settlement tx. No automatic refund: contact embryospace@gmail.com with it).

Input Schema

NameRequiredDescriptionDefault
modelNoModel id or policy: auto|cheapest|best, claude-*, grok-*.claude-haiku-4-5
promptYesThe user prompt.
systemNoOptional system prompt.
paymentNoThe base64 X-PAYMENT value carrying your signed XRP Payment for the quote from step 1. Omit to get the quote.
maxTokensNoMax output tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so thoroughly: non-custodial, never accepts an xrpSeed, quote retrieval spends nothing, payment is checked before broadcast, validation is awaited, and returns include completion, settlement tx hash, and signed receipt. It also documents error codes and their financial implications, including pending retry behavior and the no-automatic-refund case after an upstream failure.

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 purpose is front-loaded and the two-step flow is clearly numbered, so the dense paragraph remains navigable. It is long and occasionally packed with error-code detail, but the complexity of the payment flow justifies most of the length.

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?

There is no output schema and no annotations, so the description must explain return values and failure behavior, which it does: completion, settlement tx hash, signed receipt, and structured error codes with statuses and implications. It is complete enough for an agent to understand the full quote-pay-settle lifecycle.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds significant meaning for the payment parameter by specifying the required base64 X-PAYMENT structure, the quote source, and that the same prompt/model/maxTokens must be reused on the second call. It adds less beyond the schema for system and maxTokens, but the payment semantics are materially clarified.

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 description states a specific verb and resource: run one paid inference on the XRP Ledger via x402, per call, with no channel. It also differentiates the payment model from channel-based siblings such as open_channel and channel_balance by emphasizing 'PER CALL' and 'no channel'.

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?

It gives an explicit two-step usage flow: first call without payment to obtain the 402 quote, then sign an XRP Payment and call again with the same prompt, model, and maxTokens. It does not explicitly compare this tool against siblings like infer or x402_infer, but the 'no channel' and per-call framing provides clear contextual 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.