Skip to main content
Glama

rivus mcp

Order book liquidity profile of a token/XRP pair.

dex_liquidity_profile
Read-onlyIdempotent

Order book liquidity profile of a token/XRP pair. Use when: You need depth near the mid, the spread, the bid/ask imbalance and where the liquidity walls are. Price: 0.003 RLUSD per call, or the equivalent in XRP, paid on the XRP Ledger with x402 (the first call returns the payment requirements).

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": {
      "pair": "<pair>"
    },
    "name": "dex_liquidity_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYes

Output Schema

NameRequiredDescriptionDefault
pairYes
depthNo
networkYes
productYes
ask_bandsNo
bid_bandsNo
data_as_ofYes
disclaimerYes
spread_bpsYes
imbalance_xNo
bid_ask_ratioNo
pressure_codeNo
source_ledgerNo
mid_xrp_per_tokenYes
first_ask_wall_pctNo
first_bid_wall_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), so the bar is lower. The description nevertheless adds genuinely non-obvious behavior: a 0.003 RLUSD (or XRP-equivalent) charge per call via x402, with the first call returning payment requirements rather than data — a crucial calling detail that annotations do not convey. This is the strongest part of the definition, but it says nothing about latency, rate limits, or failure modes on unpaid calls.

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?

Two tightly-packed sentences with the capability front-loaded and the cost detail second; the 'Use when:' lead-in makes the guidance easy to find. Every clause carries information, though the metric list inside the when-clause doubles as a scope description and could read as slightly run-on.

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 an output schema present, return values need not be explained, and the description covers what the tool gives, when to call it, and the payment flow — unusually complete for a single-parameter tool. The remaining gap is the pair string format, which is left to the schema pattern alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the single 'pair' parameter relies entirely on the schema's regex pattern. The description only says 'token/XRP pair', which implies the pair shape but gives no concrete example (e.g. USD-XRP) or note on case/precision that would let an agent form a valid value confidently.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific resource and scope ('Order book liquidity profile of a token/XRP pair') and enumerates the concrete signals returned — depth near mid, spread, bid/ask imbalance, liquidity walls. That set clearly separates it from price-series siblings such as market_ohlc or market_chart, though no sibling is named explicitly.

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?

The 'Use when:' clause gives a concrete trigger ('you need depth near the mid... where the liquidity walls are'), which is a real use-case statement rather than a restatement of the name. It stops short of stating when not to use it or naming an alternative tool for simpler price lookups.

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