Skip to main content
Glama

The Spice Melange Trading Desk

OHLCV candles

get_ohlcv
Read-onlyIdempotent

OHLCV candles for a DeepBook pool (oldest first). Intervals: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w. Volume is in the base asset. Education/information only; not financial advice. Read-only public data, may be delayed or wrong. Free: 100 calls/day per client, then 0.002 USDC per call on Sui mainnet, prepaid in batches of about 0.01 USDC (the payment-required response gives an exact amount and a payment_token).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolYesDeepBook pool name BASE_QUOTE, e.g. SUI_USDC (case-insensitive; '/' or '-' also accepted)
limitNoNumber of candles (1-500, default 24)
end_timeNoUnix timestamp in SECONDS
intervalNo1h
payment_txNoOnly after the free tier: Sui transaction digest of your exact USDC payment for payment_token (see the payment-required response)
start_timeNoUnix timestamp in SECONDS
payment_tokenNoOnly after the free tier: the private payment_token from the payment-required response; it holds your prepaid calls

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds substantial context beyond that: data 'may be delayed or wrong', exact rate limit (100 calls/day per client), per-call price, prepaid batch size, and the payment-required handshake that yields a payment_token. That is exactly the operational behavior an agent needs to handle the paid path.

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?

Front-loaded with the core capability, then intervals, then units, then the operating constraints — a sensible order. The boilerplate disclaimer ('Education/information only; not financial advice') is padding for an agent, but everything else earns its place.

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 7-parameter tool with no output schema, the description covers ordering, granularity, units, rate limits, and the full paid-retry flow. It does not describe the shape of each candle record, but OHLCV is a well-known format and the key semantics (ordering, units) are given.

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

Parameters4/5

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

Schema coverage is 86%, so the baseline is 3 and the schema already documents pool format, limit range, and timestamps. The description adds value the schema does not: it ties interval choices to candle granularity, clarifies that results are oldest-first (disambiguating start_time/end_time ordering), states volume is in the base asset, and explains the relationship between payment_token and payment_tx.

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?

Names the exact resource (OHLCV candles for a DeepBook pool), the ordering (oldest first), the supported intervals, and the volume denomination (base asset). This is unmistakably distinct from siblings like get_volume, get_recent_trades, and get_order_book, which return different data shapes.

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?

Usage guidance is implied through the payment flow: free 100 calls/day then 0.002 USDC, with payment_tx/payment_token required only after the free tier — that tells the agent when those params become relevant. However, the description never says when to prefer this over get_volume or get_recent_trades, so the alternative-selection guidance is absent.

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