Skip to main content
Glama

Base on-chain reads and pay-per-call feeds (x402/MPP)

Price candles (OHLC and swap volume) for any Uniswap v3 pool on Base, computed from on-chain Swap logs: open, high, low,

pool_candles
Read-onlyIdempotent

Price candles (OHLC and swap volume) for any Uniswap v3 pool on Base, computed from on-chain Swap logs: open, high, low, close per 1-60 minute bucket over the last 100-5000 blocks, with token addresses and decimals (pool=0x..., interval=5, blocks=2000; default WETH/USDC). For trading and market-making agents that need a chart without a data-vendor key. Pay per call $0.05 USDC on Base via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pool_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolNoUniswap v3 pool address on Base, 0x..., default WETH/USDC
blocksNohow many recent blocks, 100-5000, default 2000 (about 2 s each)
intervalNocandle size in minutes, 1-60, default 5
x_paymentNosigned x402 payment (X-PAYMENT header value); omit on the first call to receive the price and payment requirements

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the description is not required to carry the safety profile. It nonetheless adds genuinely useful behavior beyond the annotations: the data is computed from Swap logs (not an indexer), and each call costs $0.05 USDC on Base via x402, with a first-call-without-payment handshake. Rate limits and latency are not mentioned.

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 output and data source, then a concrete example call, then audience, then payment. The inline parenthetical example is slightly dense but every clause carries information an agent uses.

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 read-only data tool with full schema coverage and no output schema, the description adequately covers what is returned (OHLC plus volume per bucket), the ranges, and the payment requirement an agent must handle before calling. Only the absence of any mention of latency or failure modes keeps it from a 5.

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 100%, so every parameter including defaults and the x_payment handshake is already documented in the schema. The description's example call (pool=0x..., interval=5, blocks=2000) restates defaults rather than adding new semantics, so the baseline 3 applies.

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 resource (OHLC price candles + swap volume for any Uniswap v3 pool on Base) and a specific derivation source (on-chain Swap logs), plus the bucketing logic (open/high/low/close per 1-60 minute bucket over 100-5000 blocks). An agent can tell exactly what it gets without opening the schema.

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?

Names the target caller and condition: trading and market-making agents that need a chart without a data-vendor key. That is clear usage context, but there is no explicit when-not guidance or named alternative, so it falls short of 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