Skip to main content
Glama

XRPL FX basis

xrpl_metrics_fx_basis
Read-onlyIdempotent

The EUR/USD rate the XRP Ledger DEX implies through the EUR registry stablecoin against each USD registry stablecoin, and its basis to the ECB reference rate. When to use: To measure, from the XRP Ledger's own order books and AMM pools, the EUR/USD rate the DEX implies through the EUR registry stablecoin against each USD registry stablecoin, and how far it sits from the ECB reference rate. Prefer another tool: To measure how far one registry stablecoin trades from its peg against another registry coin (use /v1/xrpl/metrics/peg), or to read an order book or an AMM pool (use /v1/xrpl/orderbook or /v1/xrpl/amm/{a}/{b}). Example: xrpl_metrics_fx_basis {} Paid: 0.0726 USDC or 0.0605 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.05 EUR-denominated units (approx 20 calls per bundle) or 0.06 USD-denominated units (approx 13 calls per bundle).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xrpl_metrics_fx_basis"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds real context beyond them: the metric is derived from the ledger's own order books and AMM pools and is benchmarked against the ECB reference rate, and it discloses the per-call price and prepaid-credit debit. It stops short of describing the return shape or how many stablecoin pairs results cover.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core metric definition is stated twice almost verbatim (once as the headline, once inside 'When to use'), which is pure waste. The billing paragraph, while arguably necessary for a paid endpoint, occupies roughly a third of the text and dilutes the front-loaded metric 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?

For a parameterless single-metric endpoint with no output schema, the description covers what is measured, the data sources, the external benchmark, alternatives and cost. The main residual gap is the result shape — it implies one value per USD registry stablecoin but never says so explicitly.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline for an empty schema is 4. The description correctly shows the empty invocation `xrpl_metrics_fx_basis {}`, confirming no arguments are needed.

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 and resource: the EUR/USD rate implied by the XRPL DEX via the EUR registry stablecoin against each USD registry stablecoin, plus its basis to the ECB reference rate. It also names what it is not (peg drift, raw order book/AMM reads), so an agent can separate it from xrpl_metrics_peg without opening either 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?

It has an explicit 'When to use' clause tied to order books and AMM pools, and an explicit 'Prefer another tool' clause routing peg-drift to `/v1/xrpl/metrics/peg` and raw book/pool reads to `/v1/xrpl/orderbook` or `/v1/xrpl/amm/{a}/{b}`. Both the positive and negative selection conditions are stated.

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