Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

get_dex_price_candles

Read-onlyIdempotent

Retrieve ETH or BTC OHLCV price candles from on-chain Uniswap v3 DEX swaps on Base at 5m, 15m, 1h, 4h, or 1d intervals. Use it for DEX-based charting and analysis rather than oracle spot prices.

Instructions

chainpeek: Get ETH or BTC OHLCV price candles from on-chain DEX swaps. For the oracle price now use get_token_price. Returns OHLCV for WETH/USDC or cbBTC/USDC from Uniswap v3 swaps on Base, at 5m, 15m, 1h, 4h or 1d, with pool, fee and indexed block. DEX prices can differ from centralized exchanges. Empty candles carry the previous close. The last candle is forming unless closed_only is true: complete as indexed, no chain finality implied. Informational only, not investment advice. Bad input (422), warming_up and rpc_unavailable (503) are not charged. Typically under 0.1 s (served from an index kept current in the background). Price: USD 0.003. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/crypto-ohlcv-candles-api.html

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": "get_dex_price_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesWETH/USDC (ETH in USDC, Uniswap v3 0.3% pool on Base) or cbBTC/USDC (BTC in USDC, Uniswap v3 0.05% pool on Base).
limitNoCandles, newest last. Default 48 up to the cap: 5m/15m 200, 1h 168, 4h 42, 1d 30 (closed only: 29).
intervalNoCandle length, UTC-aligned.1h
closed_onlyNoOnly intervals complete at the indexed block time.

Output Schema

NameRequiredDescriptionDefault
dexNo
feeNo
baseNo
noteNo
pairNo
poolNo
as_ofNo
chainNo
countNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
quoteNo
sourceNo
candlesNo
intervalNo
as_of_isoNo
price_unitNo
timestampsNo
as_of_blockNo
interval_secondsNo
last_candle_partialNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely useful operational context beyond that: empty candles inherit the previous close, the last candle is forming unless closed_only is set, no chain finality is implied, and 422/503 failures are not billed. However, latency, pricing and free-tier text is service metadata rather than tool behavior, so it sits below the top band for this dimension.

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 purpose and the sibling redirect, then dense but relevant detail. Some sentences (investment-advice disclaimer, price, free-tier quota, docs URL) are boilerplate rather than invocation guidance, keeping it out of the top band, though they are brief.

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?

With an output schema present, the description need not explain return structure, and it still covers data source, pairs, intervals, candle-completion semantics, error codes and cost. Nothing an agent needs in order to call this correctly is missing.

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%, so both enums, the limit cap and the closed_only flag are already documented, establishing a baseline of 3. The description adds real meaning beyond the schema by explaining that candles are 'complete as indexed' with no finality guarantee and that empty candles carry the previous close, which clarifies what closed_only actually buys you.

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 verb and resource (OHLCV price candles from on-chain DEX swaps), names the exact pairs, venues and intervals covered, and distinguishes itself from the sibling oracle-price tool by name. An agent can tell immediately this is historical/indexed candle data, not a spot price.

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?

Explicitly routes the agent: 'For the oracle price now use get_token_price,' and adds the caveat that DEX prices can diverge from centralized exchanges. It also tells the agent that incomplete candles are the default and how to get closed-only data, which is the main usage decision for this tool.

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

Deploy Server

Other Tools