Skip to main content
Glama

Token indicator

getTokenIndicator
Read-onlyIdempotent

Get a technical indicator (RSI, EMA, MACD, Bollinger Bands or VWAP) for one token, computed server-side from the token's USD candles across every pool it trades in on the network (the same series as getTokenOHLCV), returned as a time series. Read-only. Runs on the caller's own Dev, Pro or Enterprise API key, set as the Authorization header on the connection to this server; without one it returns DP401_API_KEY_REQUIRED and sends nothing upstream, and a free key gets 403. In either case fall back to getPoolIndicator on the token's most liquid pool, found with getTokenPools sorted by volume. Values come oldest first, one per completed candle: rsi, ema and vwap return value; macd returns macd, signal and histogram; bbands returns upper, middle and lower. RSI over 70 is commonly read as overbought and under 30 as oversold; a MACD histogram that changes sign means MACD crossed its signal line. RSI, EMA and MACD are smoothed, so start at least ten periods before the first value you rely on. Params: network (required); token_address (required); indicator (required): 'rsi', 'ema', 'macd', 'bbands' or 'vwap'; interval (pass it every time: '1m','5m','10m','15m','30m','1h','6h','12h','24h' or '1d'); start (optional; a relative offset such as '-24h' or '-7d', Unix seconds, RFC3339 or yyyy-mm-dd; without it you get the last limit values); end (optional, exclusive); limit (default 100, max 1000); cursor (next_cursor of the previous page, not with start); period for rsi (default 14), ema (20), bbands (20) and vwap (14); fast_period (12), slow_period (26) and signal_period (9) for macd only; std_dev (2) for bbands only. A parameter that belongs to another indicator is refused.

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": {
      "network": "<network>",
      "token_address": "<token_address>",
      "indicator": "<indicator>",
      "rationale": "<rationale>"
    },
    "name": "getTokenIndicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoOPTIONAL: End of the range, exclusive, same formats as start. Defaults to now
limitNoOPTIONAL: Values per response (default 100, max 1000)
startNoOPTIONAL: First candle. A relative offset from now is simplest: '-24h', '-7d' (units s, m, h, d). Also Unix seconds, RFC3339 or YYYY-MM-DD. Without it you get the last `limit` values
cursorNoOPTIONAL: next_cursor from the previous page. Do not combine with start
periodNoOPTIONAL: rsi (default 14), ema (default 20), bbands (default 20), vwap (default 14). Not for macd
networkYesREQUIRED: Network ID from getNetworks (e.g., 'ethereum', 'solana')
std_devNoOPTIONAL, bbands only: band width in standard deviations (default 2)
intervalNoCandle interval the indicator is computed on. Pass it every time; '1d' equals '24h'
indicatorYesREQUIRED: 'rsi', 'ema', 'macd', 'bbands' (Bollinger Bands) or 'vwap'
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.
fast_periodNoOPTIONAL, macd only: fast EMA period (default 12)
slow_periodNoOPTIONAL, macd only: slow EMA period (default 26), must be above fast_period
signal_periodNoOPTIONAL, macd only: signal line period (default 9)
token_addressYesREQUIRED: Token contract address

Output Schema

NameRequiredDescriptionDefault
dataYesOne value per completed candle, oldest first.
networkNo
intervalNo
indicatorNo
parametersNoParameters used, defaults included.
next_cursorNoPass as cursor for the next page; empty on the last page.
pool_addressNoSet on pool indicators.
has_next_pageNo
token_addressNoSet on token indicators.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • removedOutput schema / properties / data / items / additionalProperties
      Removed value: -true
    • addedOutput schema / properties / data / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "histogram": {
      +        "description": "macd minus signal; a sign change is a crossover.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "lower": {
      +        "description": "bbands lower band.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "macd": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "middle": {
      +        "description": "bbands middle band (the moving average).",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "signal": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "timestamp": {
      +        "description": "Open time of the candle, RFC3339.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "upper": {
      +        "description": "bbands upper band.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "value": {
      +        "description": "rsi, ema and vwap.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "timestamp"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / data / items / properties
      Removed value: -{
      -  "histogram": {
      -    "description": "macd minus signal; a sign change is a crossover.",
      -    "type": "number"
      -  },
      -  "lower": {
      -    "description": "bbands lower band.",
      -    "type": "number"
      -  },
      -  "macd": {
      -    "type": "number"
      -  },
      -  "middle": {
      -    "description": "bbands middle band (the moving average).",
      -    "type": "number"
      -  },
      -  "signal": {
      -    "type": "number"
      -  },
      -  "timestamp": {
      -    "description": "Open time of the candle, RFC3339.",
      -    "type": "string"
      -  },
      -  "upper": {
      -    "description": "bbands upper band.",
      -    "type": "number"
      -  },
      -  "value": {
      -    "description": "rsi, ema and vwap.",
      -    "type": "number"
      -  }
      -}
    • removedOutput schema / properties / data / items / required
      Removed value: -[
      -  "timestamp"
      -]
    • removedOutput schema / properties / data / items / type
      Removed value: -"object"
    • changedOutput schema / properties / has_next_page / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / indicator / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / interval / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / network / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / next_cursor / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / parameters / additionalProperties
      Removed value: -{}
    • addedOutput schema / properties / parameters / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / parameters / type
      Removed value: -"object"
    • changedOutput schema / properties / pool_address / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / token_address / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/no-destructive, but the description adds substantial non-obvious behavior: the caller's own Dev/Pro/Enterprise key in the Authorization header, that nothing is sent upstream on failure, the exact error codes, and the refusal of parameters belonging to a different indicator. It also discloses ordering (oldest first, one per completed candle) and smoothing warm-up guidance ('start at least ten periods before the first value you rely on').

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?

Purpose and scoping come first, then failure/fallback, then output semantics, then parameters — a sensible front-loaded order with no filler sentences. It is dense, though: the trailing parameter list largely restates the schema and lengthens an already long single paragraph.

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?

For a 14-parameter tool with auth gating, an output schema and an unusual rationale requirement, the description covers the gaps that matter: auth/error handling, accepted values, default ranges, pagination interaction, and per-indicator return keys. Nothing an agent needs in order to call it correctly appears to be missing.

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 description coverage is 100%, so the baseline is 3 and the schema carries the per-parameter defaults. The description still adds operational meaning: interval must be passed every time, start omission implies the last `limit` values, cursor conflicts with start, and the cross-indicator parameter refusal rule that the schema only implies through per-field 'macd only'/'bbands only' notes. It also maps indicator families to their period parameters in one place.

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?

Opens with a specific verb and resource ('Get a technical indicator') and enumerates the five supported indicators, the input series (USD candles across every pool the token trades in), and the output shape (time series). It explicitly names the sibling it shares a series with ('the same series as getTokenOHLCV'), so the agent can separate it from both getTokenOHLCV and getPoolIndicator.

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?

Goes beyond when-to-use into a concrete fallback path: without an API key it returns DP401_API_KEY_REQUIRED (and 403 on a free key), in which case use getPoolIndicator on the token's most liquid pool, discovered via getTokenPools sorted by volume. That is an explicit alternative plus the condition that selects it, which is the top of the scale.

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