Skip to main content
Glama

get_order_book

Retrieves the current order book for a currency pair on the XRPL DEX, displaying live buy and sell offers to assess market depth and liquidity.

Instructions

Get the order book for a currency pair on the XRPL DEX. Shows current buy and sell offers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of offers to return per side (default: 20)
networkNoThe XRPL network to query (default: mainnet)
base_issuerNoThe issuer account for the base currency (not needed for XRP)
quote_issuerNoThe issuer account for the quote currency (not needed for XRP)
base_currencyYesThe base currency code (e.g., "XRP", "USD", "EUR")
quote_currencyYesThe quote currency code (e.g., "XRP", "USD", "EUR")
Behavior3/5

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

With no annotations, the description must disclose safety and behavior. It states it 'shows current buy and sell offers,' implying a read-only operation, but it does not detail response format, pagination, default limit, or how issuers are handled for non-XRP currencies. Minimal behavioral disclosure, though it does convey the core read intent.

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

Conciseness5/5

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

The description is two sentences: the first states the action precisely, the second adds a key detail about contents. No filler or redundancy, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should convey return values and edge cases. It only gives a high-level statement about buy and sell offers, omitting response structure, default limits, network selection, and the distinction between XRP and issued currencies. For a moderately complex tool with six parameters, this is insufficient.

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?

All six parameters have descriptions in the schema (100% coverage), so the baseline is 3 as the description need not re-explain them. The description adds no further meaning about parameter semantics, such as relationships between base/quote or default behaviors, but neither is required given the schema completeness.

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 clearly identifies the operation ('Get'), the resource ('order book for a currency pair'), and the specific domain ('XRPL DEX'), and adds that it shows current buy and sell offers. This distinguishes it from sibling tools like get_account_info or get_ledger, which target different data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for current market data on the XRPL DEX, but it does not explicitly state when to prefer this tool over alternatives, nor note any exclusions or prerequisites. The sibling tool list is provided externally, but the description itself offers no comparative guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/esonica/mcp_xrpl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server