Skip to main content
Glama

XRPL liquidity stress

xrpl_metrics_liquidity_stress
Read-onlyIdempotent

How stressed a registry stablecoin's liquidity is against its peg default: a score from 0 to 100, its band and the four weighted components behind it. When to use: To score, from the XRP Ledger's own order books, AMM pool and issuer account, how stressed a registry stablecoin's liquidity is against its peg default, as one score with its band and the components behind it. Prefer another tool: To read the peg deviation of each price route (use /v1/xrpl/metrics/peg), or to check that an issued currency is the canonical registry coin and 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_liquidity_stress {"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_liquidity_stress"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesXRPL stablecoin of the registry whose liquidity stress is measured against its peg default, 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds genuinely new context: the score is computed from the ledger's own order books, AMM pool and issuer account, and the route refuses assets outside the registry. It also discloses per-call pricing, though the two parallel pricing paragraphs are dense and partly redundant. It does not name pagination or rate limits, which is minor for a read-only scoring call.

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 the routing guidance, and every section is labeled so an agent can skim. However, the 'When to use' sentence restates the opening sentence almost verbatim, and the two pricing paragraphs are verbose relative to the rest of the definition.

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?

With no output schema, the description does the work of saying what comes back (score, band, four weighted components) and which inputs feed it. The four components are never named, and the refusal case for non-registry assets is stated but not exemplified, leaving small gaps for an otherwise simple one-parameter tool.

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?

The schema already documents the single `asset` parameter at 100% coverage, including canonical code/issuer form, case sensitivity and percent-encoding rules. The description contributes only a sample invocation value, which demonstrates format but adds no semantics beyond the schema; the high-coverage baseline of 3 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?

States a specific verb, resource and output shape: scoring a registry stablecoin's liquidity stress against its peg default as a 0-100 score with band and four weighted components. It also names the sibling routes it is not (peg, stablecoin, orderbook, amm), so an agent can separate it from neighbors without opening another schema.

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?

Gives an explicit 'When to use' condition and an explicit 'Prefer another tool' section routing to /v1/xrpl/metrics/peg for per-route peg deviation, /v1/xrpl/stablecoin/{asset} for registry/issuer checks, and orderbook or amm routes for unregistered assets. Alternatives and the condition that selects them are spelled out.

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