Skip to main content
Glama

Technical Indicator

technical_indicator
Read-onlyIdempotent

Compute a technical indicator time series for a stock/forex/crypto symbol via Twelve Data, RSI, SMA, EMA, MACD, Bollinger Bands (bbands), ADX, ATR, Stochastic, CCI, and more. PREFER for "RSI(14) of AAPL", "50-day and 200-day SMA of TSLA", "MACD for BTC/USD", "Bollinger Bands of SPY". This is the right tool for ANY "RSI / SMA / EMA / MACD / moving average / technical indicator for " question. Computes ONE indicator per call: if several are requested (e.g. "RSI and the 50-day and 200-day SMA"), call this once per indicator starting with the first, do NOT decline just because multiple indicators are asked for. Returns dated indicator values.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "AAPL",
      "interval": "1day",
      "indicator": "rsi",
      "time_period": 14
    },
    "name": "technical_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesTicker/symbol. Stocks e.g. "AAPL", "MSFT"; forex "EUR/USD"; crypto "BTC/USD"; ETFs "SPY". Comma-separate for a batch (e.g. "AAPL,MSFT"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them.
intervalYesBar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.
indicatorYesIndicator (lowercase): rsi, sma, ema, wma, dema, tema, macd, bbands, stoch, stochrsi, adx, atr, natr, cci, mom, roc, willr, obv, ad, vwap, aroon, mfi, sar, trix, ppo, kama.
outputsizeNoNumber of data points to return (1-5000, default 30).
series_typeNoPrice series the indicator is computed on: close (default), open, high, low.
time_periodNoLook-back period in bars (e.g. 14 for RSI, 50 or 200 for SMA, 20 for bbands). Default varies by indicator.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / outputsize / description
      Previous value: -"Number of data points to return (1–5000, default 30)."New value: +"Number of data points to return (1-5000, default 30)."
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them."
  2. Changed1 schema field changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\"; indices \"IXIC\". Comma-separate for a batch (e.g. \"AAPL,MSFT\")."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "indicator": "rsi",
      +    "interval": "1day",
      +    "symbol": "AAPL",
      +    "time_period": 14
      +  },
      +  {
      +    "indicator": "sma",
      +    "interval": "1h",
      +    "symbol": "TSLA",
      +    "time_period": 50
      +  }
      +]
  4. Added

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, and open-world, so the safety profile is covered. The description adds genuinely new behavioral facts: one indicator per call, sequential calls for multi-indicator requests, and dated return values. It does not mention rate limits or latency despite the upstream Twelve Data dependency, which is the main remaining gap.

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 verb and capability, then routing guidance, then the multi-indicator rule — a sensible order. It is slightly repetitive in restating the "right tool for" point twice with overlapping example lists, but no sentence is wasted.

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?

With no output schema, the description does supply minimal return context ("dated indicator values"), and the schema plus annotations cover the rest of a read-only computation tool. It could say more about how many points come back by default or what happens with comma-separated batch symbols, but nothing essential for a correct call 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 description coverage is 100%, so the schema already documents every parameter including interval values, the full indicator list, and time_period defaults. The description's parameter-adjacent content (time_period hints, key requirement for indices) largely duplicates the schema, 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 verb and resource ("Compute a technical indicator time series") plus the data provider and the full indicator family covered. The concrete query exemplars ("RSI(14) of AAPL", "MACD for BTC/USD") make it immediately distinguishable from generic quote tools like eod or exchange_rate.

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?

"PREFER for ..." and "This is the right tool for ANY 'RSI / SMA / EMA / MACD ... for <ticker>' question" give an explicit selection rule. It also pre-empts the most likely mis-selection failure mode by stating that multiple requested indicators should be handled as one call per indicator rather than a refusal.

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.