Skip to main content
Glama

rivus mcp

OHLC candles of the mid price of a pair, with data gaps and coverage reported.

market_ohlc
Read-onlyIdempotent

OHLC candles of the mid price of a pair, with data gaps and coverage reported. Use when: You need candles (open, high, low, close per interval) of an XRPL DEX pair for indicators or backtests. Candles are built from 5-minute mid-price samples; gaps are reported, never filled. Price: 0.001 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": "market_ohlc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYes
periodNo
intervalNo

Output Schema

NameRequiredDescriptionDefault
gapsNo
pairYes
basisNo
periodYes
candlesYes
networkYes
productYes
intervalYes
data_as_ofYes
disclaimerYes
coverage_pctNo
source_ledgerNo
price_conventionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses how the data is constructed ('built from 5-minute mid-price samples'), how gaps are handled ('reported, never filled'), and a full payment/auth flow (0.001 RLUSD or XRP via x402 on the XRP Ledger, first call returns payment requirements). Those are exactly the operational facts an agent cannot get from annotations and would otherwise discover only by failing.

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?

Four short sentences, front-loaded with the output type, then usage, then data construction, then cost. Every sentence contributes; the only slight redundancy is restating the title in sentence one.

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?

An output schema exists and the description covers cost, payment mechanics, sampling basis, and gap policy, which is strong for a three-parameter read tool. The unexplained 'period' parameter is the one substantive hole remaining.

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 description coverage is 0%, so the description must carry the burden; it clarifies 'pair' as an XRPL DEX pair and implies 'interval' via 'per interval' and '5-minute mid-price samples'. The 'period' parameter (1d/7d/30d lookback window) is never explained, so one of three parameters remains semantically opaque.

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?

States a specific resource and output form: 'OHLC candles of the mid price of a pair, with data gaps and coverage reported,' which immediately tells an agent this returns candle data, not raw trades or a chart object. It does not name or contrast a sibling such as market_chart, so differentiation is left to inference.

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?

'Use when: You need candles ... for indicators or backtests' gives clear positive guidance about the decision context. There is no when-not guidance or explicit alternative named (e.g., when to prefer market_chart instead), which keeps it below a 5.

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