Skip to main content
Glama

XRPL buy pressure

xrpl_metrics_pressure
Read-onlyIdempotent

Buy or sell pressure of a pair's funded order book: a score from 0 to 100 and its band, from the depth near mid. When to use: To measure how the funded depth near mid of a pair's order book is split between bids and asks, as one score with its band. Prefer another tool: To read the order book levels (use /v1/xrpl/orderbook), the cost of a trade of a given size, CLOB against AMM (use /v1/xrpl/slippage), or an AMM pool (use /v1/xrpl/amm/{a}/{b}). Example: xrpl_metrics_pressure {"base":"XRP","quote":"5553444300000000000000000000000000000000.rGm7WCVp9gb4jZHWTEtGUr4dd74z2XuWhE"} Paid: 0.01452 USDC or 0.0121 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.0025 EUR-denominated units (approx 400 calls per bundle) or 0.003 USD-denominated units (approx 273 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": {
      "base": "<base>",
      "quote": "<quote>"
    },
    "name": "xrpl_metrics_pressure"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase currency of the book: `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.
quoteYesQuote currency of the book, different from base: `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/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered; the description adds real value beyond that by defining what the score means, its 0-100 range and band, and that it is computed from funded depth near mid. With no output schema, this return-value characterization matters, though it never says what the band labels are or how the score is normalized.

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?

Well front-loaded: purpose, then when-to-use, then alternatives, then example. However, roughly half the text is per-call pricing and prepaid-credit boilerplate that is operational metadata rather than selection guidance, diluting the useful signal.

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 two-required-parameter read-only metric tool with fully described params and no output schema, the description is nearly self-sufficient: it says what is scored, over what scope, and with what return shape. The remaining gap is that band semantics and any interpretation scale are left implicit.

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 both `base` and `quote` are fully documented in-schema (standard code vs 40-hex form, case sensitivity, quote must differ from base). The description's example adds a concrete 40-hex-encoded quote value, which is a modest illustration beyond the schema, but no new semantics about how the pair selects a book.

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 resource (buy/sell pressure of a pair's funded order book) and even the output shape (a 0-100 score and its band derived from depth near mid). The 'Prefer another tool' sentence explicitly separates it from order book levels, slippage/CLOB-vs-AMM, and AMM pool lookups, so an agent can route without opening schemas.

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?

Gives an explicit 'When to use' condition (measuring how funded depth near mid splits between bids and asks) plus named alternatives with the condition each serves. Minor friction: the alternatives are given as HTTP paths (`/v1/xrpl/orderbook`, `/v1/xrpl/slippage`, `/v1/xrpl/amm/{a}/{b}`) rather than sibling tool names such as xrpl_orderbook and xrpl_slippage, so the agent must map them itself.

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