Skip to main content
Glama

Funded order book

xrpl_orderbook
Read-onlyIdempotent

CLOB order book for a currency pair with unfunded offers removed. When to use: To read executable liquidity for a pair on the XRPL central limit order book (CLOB). Prefer another tool: Not for AMM liquidity (use the amm page) and not for a cost estimate (use the slippage page). Example: xrpl_orderbook {"base":"XRP","quote":"USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"} 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_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase currency: `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.
depthNoLevels per side: a positive integer no larger than 9007199254740991, rounded up to 10, 50 or 100; a larger depth is served at 100 (see depth_effective)
quoteYesQuote currency: `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.
domainNoOptional PermissionedDomain id (64 hex): reads that domain's permissioned order book; slippage then skips the AMM

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / depth / description
      Previous value: -"Levels per side: a positive integer, rounded up to 10, 50 or 100; a larger depth is served at 100 (see depth_effective)"New value: +"Levels per side: a positive integer no larger than 9007199254740991, rounded up to 10, 50 or 100; a larger depth is served at 100 (see depth_effective)"
  2. Changed4 schema fields changed
    • changedInput schema / properties / base / description
      Previous value: -"Base currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)"New value: +"Base currency: `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."
    • changedInput schema / properties / depth / description
      Previous value: -"Levels per side: a positive integer, rounded up to 10, 50, 100 or 200 (max 200)"New value: +"Levels per side: a positive integer, rounded up to 10, 50 or 100; a larger depth is served at 100 (see depth_effective)"
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Optional PermissionedDomain id (64 hex): reads that domain's permissioned order book; slippage then skips the AMM",
      +  "type": "string"
      +}
    • changedInput schema / properties / quote / description
      Previous value: -"Quote currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`)"New value: +"Quote currency: `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."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "BookLevel": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "gets": {
      -          "description": "Decimal string",
      -          "type": "string"
      -        },
      -        "pays": {
      -          "description": "Decimal string",
      -          "type": "string"
      -        },
      -        "price": {
      -          "description": "Pays per gets, decimal string",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "gets",
      -        "pays",
      -        "price"
      -      ],
      -      "type": "object"
      -    },
      -    "Meta": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "age_seconds": {
      -          "description": "Age of the data at response time",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "as_of": {
      -          "description": "When the data was read from the ledger",
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -          "type": "string"
      -        },
      -        "cache": {
      -          "enum": [
      -            "hit",
      -            "miss",
      -            "stale"
      -          ],
      -          "type": "string"
      -        },
      -        "ledger_index": {
      -          "description": "Validated ledger the data comes from",
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        "stale": {
      -          "description": "True when served past its fresh TTL (stale-on-error)",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "ledger_index",
      -        "as_of",
      -        "age_seconds",
      -        "cache",
      -        "stale"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "properties": {
      -    "asks": {
      -      "description": "Best (lowest) price first",
      -      "items": {
      -        "$ref": "#/$defs/BookLevel"
      -      },
      -      "type": "array"
      -    },
      -    "base": {
      -      "type": "string"
      -    },
      -    "bids": {
      -      "description": "Best (highest) price first, from the base-asset side",
      -      "items": {
      -        "$ref": "#/$defs/BookLevel"
      -      },
      -      "type": "array"
      -    },
      -    "depth": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/Meta"
      -    },
      -    "quote": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "base",
      -    "quote",
      -    "depth",
      -    "asks",
      -    "bids",
      -    "meta"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. First observed

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 and non-destructive, so safety is covered; the description adds the meaningful behavioral fact that unfunded offers are filtered out, so returned levels are executable. It does not cover pagination or what the response body looks like, and the cost/credit block is billing metadata rather than runtime behavior.

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 purpose sentence and the when/when-not routing are front-loaded and waste-free. The trailing pricing paragraph is roughly half the text and is useful for cost-aware agents but is dense boilerplate with two overlapping credit schemes.

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?

A read-only pair-lookup tool whose four parameters are fully described in the schema, with no output schema required to be summarized. The description supplies the one thing structured data omits — that the book is executable-only and excludes AMM liquidity.

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%, including the depth rounding rule and the domain-permissioned book caveat, so the schema carries parameter meaning. The description only reinforces base/quote via an example call in CODE.issuer form, adding little beyond what the schema already says.

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 and scope: a CLOB order book for a currency pair, with the key qualifier that unfunded offers are removed. That qualifier alone separates it from a raw offer listing, and the description explicitly names the AMM and slippage siblings it is not.

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?

Provides an explicit "When to use" (read executable liquidity on the XRPL CLOB) and two explicit "Prefer another tool" exclusions with the correct alternatives named for each. An agent can route between this, the AMM page, and the slippage page with no inference.

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