Skip to main content
Glama

XRPL stablecoin peg

xrpl_metrics_peg
Read-onlyIdempotent

How far a registry stablecoin trades from its peg on the XRP Ledger DEX: the deviation of each price route, their median and a status. When to use: To check, from the XRP Ledger's own order books and AMM pools, how far a registry stablecoin trades from its peg against another registry coin, and how much funded depth sits near the peg. Prefer another tool: To check that an issued currency is the canonical registry coin, or to read its issuer posture (use /v1/xrpl/stablecoin/{asset}); for an asset outside the registry, which this route refuses, read its order book (/v1/xrpl/orderbook) or its AMM pool (/v1/xrpl/amm/{a}/{b}). Example: xrpl_metrics_peg {"asset":"524C555344000000000000000000000000000000.rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De"} Paid: 0.04356 USDC or 0.0363 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.03 EUR-denominated units (approx 33 calls per bundle) or 0.036 USD-denominated units (approx 22 calls per bundle).

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": {
      "asset": "<asset>"
    },
    "name": "xrpl_metrics_peg"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesXRPL stablecoin of the registry whose peg is measured, by its canonical code and issuer: `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code.
againstNoUSD stablecoin of the registry, other than asset, it is priced in; omit for the peg default (the other USD registry coin for a USD asset, RLUSD for an EUR asset): `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: the data comes from XRPL order books and AMM pools, the result contains per-route deviation plus a median and status, and out-of-registry assets are refused. It does not cover pagination or rate limits, and the pricing boilerplate sits outside behavioral disclosure.

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 semantics are front-loaded and clearly sectioned ('When to use', 'Prefer another tool', 'Example'), with no wasted wording in the functional part. The trailing per-call pricing and prepaid-credit paragraph does not help an agent select or invoke the tool and dilutes the payload.

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?

With no output schema, the description still conveys what is returned (each route's deviation, their median, a status, and funded depth near the peg), how defaults resolve for the omitted `against`, and what happens for non-registry assets. Nothing an agent needs to call it correctly is missing.

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 both `asset` and `against` are fully documented in the schema, including encoding rules and the omit-for-default behavior. The description adds no format or selection detail beyond what the schema supplies, so the baseline 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?

The first sentence names a specific verb and resource: peg deviation of a registry stablecoin on the XRPL DEX, including per-route deviation, median, and status, plus funded depth near the peg. It is clearly separable from siblings like xrpl_stablecoin (issuer posture) and xrpl_orderbook (raw books).

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' and 'Prefer another tool' sections name the exact alternatives (/v1/xrpl/stablecoin/{asset}, /v1/xrpl/orderbook, /v1/xrpl/amm/{a}/{b}) and the conditions that select them. It also states the out-of-registry case is refused rather than handled, which removes ambiguity.

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