Skip to main content
Glama

x402 merchant readings (paid: 0.02 RLUSD / 0.02 USDC on XRPL / 0.02 USDC on Base / 0.02 RLUSD on Base via x402)

get_merchant_readings
Read-only

Paid: 0.02 RLUSD or 0.02 USDC per call via x402 on XRPL mainnet (xrpl:0), or 0.02 USDC on Base (eip155:8453). Pay per call, solves one question: What x402 payment readings does this XRPL payee show? Raw 24h payments, payers, account fields, and endpoint 402 readings with sources and timestamps. 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": {
      "address": "<address>"
    },
    "name": "get_merchant_readings"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesXRPL classic address of the payee (payTo) to report on
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.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the x402 payment requirement, the unpaid-call error behavior with a fresh invoiceId, the retry mechanism using _meta["x402/payment"] or payment_signature, and that unpaid calls cost nothing. These are material behavioral details for an open-world, non-idempotent, paid read tool.

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 description is front-loaded with cost and purpose, then moves to return content and payment/error flow. It is generally efficient, though the pricing and payment mechanics are somewhat verbose and partially repeat the title.

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?

The tool is a paid, read-only x402 reader with two parameters and no output schema. The description covers cost, payment flow, unpaid-call behavior, retry instructions, and the categories of readings returned, which is complete enough for an agent to invoke it 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%, so the input schema already documents both parameters, including the XRPL address pattern and the payment_signature usage. The description reinforces the payment_signature alternative but does not add substantial meaning beyond the schema.

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?

The description states a specific verb and resource: it returns x402 payment readings for an XRPL payee, including raw 24h payments, payers, account fields, and endpoint 402 readings. It is clear what the tool does, but it does not explicitly differentiate itself from sibling tools such as get_x402_activity or get_merchant_profile.

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?

The description gives a clear usage context by saying it solves one question: what x402 payment readings does this XRPL payee show? It also explains that calls are paid and what happens without payment, though it does not name alternatives or state when another sibling tool would be more appropriate.

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