Skip to main content
Glama
mathieubernardi

MCP TradingView Server

tv_get_indicators

Compute technical indicators for any symbol—RSI, MACD, Bollinger Bands, ATR, ADX, OBV, and more—with optional weekly context, relative strength, and a composite score to support trading decisions.

Instructions

Compute technical indicators for any symbol. Includes RSI, MACD, Bollinger Bands (+ squeeze detection), EMA, SMA, ATR (+ stop levels), Stochastic, ADX (+DI/-DI), OBV, volume MA20/ratio, RSI divergence flags. Optional: weekly multi-timeframe context (include_weekly=true), relative strength vs benchmark (benchmark_symbol), composite technical score [-1,+1] (include_score=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bb_stdNo
n_barsNo
symbolYes
exchangeNoEURONEXT
intervalNo1D
bb_lengthNo
macd_fastNo
macd_slowNo
atr_lengthNo
indicatorsNo
rsi_lengthNo
ema_periodsNo
macd_signalNo
sma_periodsNo
atr_stop_multNoATR multiplier for stop_long / stop_short levels
include_scoreNoCompute composite technical_score [-1,+1] and sub-scores
include_weeklyNoFetch weekly bars for weekly_rsi, weekly_adx, weekly_trend
benchmark_symbolNoBenchmark ticker for RS 1M/3M (e.g. 'CW8'). Empty = skip.
benchmark_exchangeNoEURONEXT
divergence_lookbackNoBars window for RSI divergence detection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does add useful behavioral context: RSI divergence flags, Bollinger squeeze detection, ATR stop_long/stop_short levels, the [-1,+1] composite score range, and what each optional flag produces. However, it does not reveal the return shape, that the indicators parameter defaults to ['all'] so every call computes the entire indicator set, or any data-source/error behavior.

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?

Two dense sentences of roughly 60 words with the core purpose front-loaded and no filler. Parameter names are embedded inline (include_weekly=true, benchmark_symbol, include_score=true), making the text directly actionable for an agent without cross-referencing the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter tool with no output schema and no annotations, the description thoroughly covers the feature and option matrix but omits the output contract: what the response contains, how weekly/benchmark/score fields appear in results, and that the default is to compute all indicators. An agent can select the tool confidently but would invoke it without knowing what it returns.

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 only 25%, so the description must compensate. It maps the three optional features to their parameter names inline (include_weekly=true, benchmark_symbol, include_score=true) and its indicator inventory aligns with the indicators enum values. The many numeric tuning parameters (macd_fast, atr_length, sma_periods, etc.) are left to their self-explanatory names, which is passable but adds no real semantic depth.

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 technical indicators for any symbol') and enumerates the full indicator surface: RSI, MACD, Bollinger Bands with squeeze detection, EMA, SMA, ATR with stop levels, Stochastic, ADX, OBV, volume MA20/ratio, and RSI divergence flags. The sibling names (tv_get_historical_data, tv_get_quote, tv_screener) make this tool's distinct role unambiguous even without explicit comparison.

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?

The opening sentence establishes a clear selection context: use this tool when computed indicators are needed, as opposed to raw bars (tv_get_historical_data), a snapshot quote (tv_get_quote), or universe filtering (tv_screener). It stops short of naming those alternatives explicitly or stating when not to use this tool, but the purpose is specific enough that an agent can route correctly.

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