Skip to main content
Glama

Pay Radar: pre-flight scan of an XRPL x402 endpoint before paying (paid: 0.003 RLUSD / 0.003 USDC on XRPL / 0.003 USDC on Base / 0.003 RLUSD on Base via x402)

paycheck
Read-only

Paid: 0.003 RLUSD or 0.003 USDC per call via x402 on XRPL mainnet (xrpl:0), or 0.003 USDC on Base (eip155:8453). Pay per call, solves one question: Is this x402 endpoint answering right now, and what does its unpaid 402 show? Raw 402 shape, network, asset, payTo ledger fields, TLS, latency, and uptime history. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.

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": {
      "url": "<url>"
    },
    "name": "paycheck"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull http(s) URL of the x402 endpoint to check
max_usdNoHighest price you would pay, USD (default 0.10)
payment_signatureNoOptional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the read-only/open-world profile; the description adds the things an agent cannot infer: the price (0.003 RLUSD/USDC, per-network), that unpaid calls return isError with a fresh invoiceId, that unpaid calls are free, and the exact retry mechanism. This is behavior beyond the structured fields rather than a restatement of them.

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?

Pricing and the core question are front-loaded, and the payment-failure/retry path follows logically. It is dense with parenthetical network identifiers and repeated price figures, but nearly every clause carries operational meaning.

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 the description compensates by enumerating what comes back: raw 402 shape, network, asset, payTo ledger fields, TLS, latency, and uptime history. Combined with the cost and retry explanation, an agent has enough to call this correctly on the first attempt.

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 the schema already documents url, max_usd, and payment_signature in detail. The description only echoes the payment_signature/_meta payment path and does not clarify max_usd semantics or URL expectations beyond the schema, so it sits at the baseline.

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 names a specific verb+resource ("pre-flight scan of an x402 endpoint") and compresses the purpose into one question: "Is this x402 endpoint answering right now, and what does its unpaid 402 show?" That is clearly distinct from data-returning siblings like get_x402_health_report or x402_envelope.

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 explicit procedural guidance: first call without payment to receive the PaymentRequired object, then retry with the signed payload in _meta["x402/payment"] or payment_signature, and reassures "Unpaid calls cost nothing." It does not explicitly say when to prefer this over siblings such as paycheck_demo or get_x402_health_report, which keeps it below a 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.

Resources