Skip to main content
Glama

compute_indicator

Compute a technical indicator (RSI, MACD, SMA, EMA, BBANDS, ATR, ADX, STOCH) over a ticker's price history. Returns the warmup-aligned series plus the latest values and a one-line summary. Tune the window with length (SMA/EMA/RSI/ATR/ADX/BBANDS), fast/slow/signal (MACD), std (BBANDS), or k/d/smooth_k (STOCH) — pass them either as top-level fields OR nested under params; both work. window and period are accepted as aliases for length. NOTE: for a long window like SMA(200) you MUST set length=200 (the default is 20). The response echoes the effective params it used, and the summary shows the window, e.g. SMA(200). Ensure range spans at least length bars (e.g. range=2y for SMA(200)) or the series is all-warmup NaN. (paid: $0.0050/call)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dNo
kNo
stdNo
fastNo
slowNo
rangeNo1y
lengthNo
paramsNo
periodNo
signalNo
tickerYes
windowNo
intervalNo1d
smooth_kNo
indicatorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does an excellent job. It discloses the return content (warmup-aligned series, latest values, summary), parameter aliases, default length of 20, the all-warmup NaN pitfall when range is too short, response echoing of effective params, and the paid cost per call. This is far more transparent than typical tool descriptions.

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?

Though the description is long, every sentence contributes operational value. It is well-organized: purpose, return value, parameter tuning, aliases, warnings, and cost. The front-loaded purpose makes it easy to scan, and the complexity of the tool justifies the length.

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?

Given the tool's complexity (15 parameters, 8 indicators, no annotations, no output schema), the description covers behavior, parameters, and common pitfalls thoroughly. It lacks explicit response field names and does not clarify `interval` semantics, but the provided guidance is sufficient for an agent to select and invoke the tool correctly in most cases.

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 0%, so the description must compensate. It does so by mapping parameters to indicators (length for SMA/EMA/RSI/ATR/ADX/BBANDS), explaining MACD/BBANDS/STOCH parameters, aliases, and nested params flexibility. The only notable gap is the `interval` parameter, which is not explained in the description despite being present in the schema.

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 opens with a specific verb and resource: 'Compute a technical indicator' and explicitly lists supported indicators (RSI, MACD, SMA, EMA, BBANDS, ATR, ADX, STOCH). This clearly distinguishes it from sibling tools like compute_correlation_matrix or detect_signals, making the tool's purpose immediately obvious.

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?

It provides clear context for when to use the tool: when a technical indicator over a ticker's price history is needed, and includes detailed guidance on parameter tuning, aliases, and range requirements. However, it does not explicitly mention when not to use this tool or point to alternatives, so it stops short of full usage differentiation.

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