Skip to main content
Glama

Computed VWAP, RSI, EMA, MACD technical indicators

get_token_ohlc_indicators
Read-onlyIdempotent

Compute historical OHLCV candles and technical indicators (RSI-14, EMA, MACD, Bollinger Bands, volatility) for a DEX token pool to analyze price trends and generate trading signals.

Instructions

Compute historical OHLCV price candles and technical indicators (RSI-14, EMA, MACD, Bollinger Bands, volatility) for a DEX token pool. Pass chain (e.g. base, solana, ethereum), token or pool address, and optional timeframe (5m, 15m, 1h, 4h, 1d; default 1h). Returns candles[] (OHLCV), rsi_14, macd, ema, and trend_signal. Do not use for contract security audits (use check_evm_token_risk or check_solana_token_risk). 1 free try per IP, then HTTP 402 ($0.002 USDC).

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

Input Schema

NameRequiredDescriptionDefault
chainNoNetwork: base, ethereum, arbitrum, optimism, solanabase
tokenNoToken address or symbol (or pool address)
timeframeNoCandle timeframe: minute, hour, dayhour
timeout_msNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data
session_tokenNoOptional prepaid x402s_... session token from open_agent_session or https://apix402data.com/pay used after the 1 free try rolls over to HTTP 402.

Output Schema

NameRequiredDescriptionDefault
aiNo
as_ofNo
chainNo
tokenNo
cachedNo
degradedNo
endpointNo
timeframeNo
indicatorsNo
data_sourceNo
pool_addressNo
schema_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.6.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the bar is lower, and the description still adds substantial context beyond them: it names the returned keys and discloses the monetization gate ('1 free try per IP, then HTTP 402 ($0.002 USDC)'), which is exactly the kind of behavior an agent cannot learn from annotations or schema. It omits any discussion of rate limits beyond the free try or of the degraded/timeout pathway, keeping it just short of a 5.

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?

It is front-loaded with the core action and parameters, then closes with the exclusion and the pricing note. Every sentence carries information, though the parameter walkthrough and the return-key list partially duplicate the very complete schema and output schema.

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 indicator tool with a full input schema, an output schema, and rich annotations, the description covers purpose, inputs, outputs, exclusions, and payment behavior. The only substantive gap is the unresolved timeframe value/default mismatch with the schema, which leaves ambiguity about valid inputs.

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 the baseline is 3, and the description mostly restates parameter meaning with useful concrete examples ('base', 'solana', 'ethereum'). However it introduces a conflict with the schema: it lists timeframe values as `5m`/`15m`/`1h`/`4h`/`1d` with default `1h`, while the schema declares `minute`/`hour`/`day` with default `hour` — an agent following the description could pass a value the schema does not advertise.

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 leads with a concrete verb and resource — 'Compute historical OHLCV price candles and technical indicators (RSI-14, EMA, MACD, Bollinger Bands, volatility)' — and scopes it to a DEX token pool. It explicitly differentiates itself from the risk-audit siblings by name, so an agent can distinguish it without opening a schema.

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?

It states the required invocation inputs (chain, token/pool address, optional timeframe) and gives a clear when-not clause: 'Do not use for contract security audits (use check_evm_token_risk or check_solana_token_risk)'. Both the selection condition and the alternative are named explicitly.

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