Skip to main content
Glama

getPoolOHLCV

Read-onlyIdempotent

Get historical OHLCV candles (open, high, low, close, volume) for one pool over a time range, returned as a time-series array. Read-only and keyless. Use for 'price history of this pair', 'hourly chart for the last week', 'candles since Jan 1', or backtesting; for the single current price use getPoolDetails instead. Params: network (required); pool_address (required); start (required; Unix timestamp, RFC3339, or yyyy-mm-dd); end (optional, capped to 1 year after start); interval one of '1m','5m','10m','15m','30m','1h','6h','12h','24h' (default '24h'); limit (default 100, max 366 candles); inversed (optional bool, default false).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoOPTIONAL: End time for historical data (max 1 year from start)
limitNoOPTIONAL: Number of OHLCV data points to retrieve (default: 100, max: 366). One row per `interval`.
startYesREQUIRED: Start time. RFC3339 recommended (e.g. '2024-01-01T00:00:00Z'). Also accepts Unix epoch seconds and YYYY-MM-DD (treated as 00:00:00 UTC).
networkYesREQUIRED: Network ID from getNetworks (e.g., 'ethereum', 'solana')
intervalNoOPTIONAL: Interval granularity (default: '24h')24h
inversedNoOPTIONAL: Whether to invert the price ratio for alternative pair perspective (default: false)
rationaleYesREQUIRED. 1-2 sentence rationale for this call (e.g. "User asked for X; calling Y to fetch Z"). Logged for MCP improvement, never shown to end users. No PII or secrets. See the server `instructions` field for the full convention and worked examples.
pool_addressYesREQUIRED: Pool address or identifier

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ohlcvYesOpen-High-Low-Close-Volume rows ordered by time_open ascending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "ohlcv": {
      +      "description": "Open-High-Low-Close-Volume rows ordered by time_open ascending.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "close": {
      +            "type": "number"
      +          },
      +          "high": {
      +            "type": "number"
      +          },
      +          "low": {
      +            "type": "number"
      +          },
      +          "open": {
      +            "type": "number"
      +          },
      +          "time_close": {
      +            "description": "ISO 8601 timestamp of bucket close (inclusive at 23:59:59 for 24h).",
      +            "type": "string"
      +          },
      +          "time_open": {
      +            "description": "ISO 8601 timestamp of bucket open.",
      +            "type": "string"
      +          },
      +          "volume": {
      +            "description": "Trade volume in the bucket, in pair-quote units (or USD where applicable).",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ohlcv"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, and the description adds context beyond that by stating it is 'Read-only and keyless' and by disclosing constraints such as the 1-year cap after start and the 366-candle maximum. This meaningfully augments the structured annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: the first sentence states the resource, output shape, and access traits, and the second sentence gives parameter essentials and usage guidance. Every sentence adds value, and the param summary is dense without being verbose.

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?

Given the tool's 8-parameter complexity, the description covers purpose, input semantics, constraints, access traits, and sibling differentiation, while the output schema covers return-value details. The only minor omission is the required rationale parameter, but the schema documents it thoroughly, so the definition is complete for correct invocation.

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 the input schema fully documents all 8 parameters, including rationale which the description omits from its param summary. The description does add useful shorthand—start format options, interval enum, end cap, defaults, and max limit—but the schema already carries most of the semantic weight, so a baseline 3 is appropriate.

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?

The description uses a specific verb-resource pair ('Get historical OHLCV candles') and defines the exact scope: one pool over a time range, returned as a time-series array. It also distinguishes itself from getPoolDetails by noting the single-current-price case, so an agent can clearly select this tool over its siblings.

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?

The description explicitly lists use cases ('price history of this pair', 'hourly chart for the last week', 'candles since Jan 1', backtesting) and names the alternative for a different need ('for the single current price use getPoolDetails instead'). This gives an agent clear, actionable selection criteria.

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