Skip to main content
Glama
screener-mcp-server

screener-mcp-server

Get Technical Indicator (RSI/SMA/EMA/MACD) for an Indian Stock

technical_get_indicator
Read-onlyIdempotent

Compute RSI, SMA, EMA, or MACD for NSE/BSE stocks to get live intraday or historical momentum and trend signals, such as overbought readings or moving-average crossovers.

Instructions

Compute a price-based technical indicator — RSI, SMA, EMA, or MACD — for an NSE/BSE-listed stock. For a LIVE reading, use an intraday interval (default: 15minute) — the most recent candle reflects the current, still-forming period during market hours (9:15 AM–3:30 PM IST), so the top result is your "right now" value. Use daily/weekly/monthly for longer-term/end-of-day analysis instead. Historical close prices come from Yahoo Finance's public chart data (ticker + .NS/.BO suffix) and the indicator is computed server-side using standard formulas (Wilder's RSI, standard SMA/EMA, 12/26/9 MACD).

This is separate from the screener_* tools, which cover fundamentals only; use this for momentum/trend signals like "is this stock overbought right now" or "has it crossed its 200-day moving average."

Args:

  • ticker (string): Plain ticker, e.g. "TCS", "RITES" (no exchange prefix or suffix).

  • exchange (enum, default NSE): "NSE" or "BSE".

  • indicator (enum): "RSI", "SMA", "EMA", or "MACD".

  • interval (enum, default "15minute"): "1minute", "5minute", "15minute", "30minute", "60minute" for live/intraday readings, or "daily", "weekly", "monthly" for longer-term analysis.

  • time_period (number, default 14): Periods used in the calculation (e.g. 14 for standard RSI, 50/200 for common moving averages on daily+ intervals). Ignored for MACD (fixed 12/26/9).

  • limit (number, default 10, max 50): How many recent data points to return, newest first (the first one is the current/live value).

Returns: JSON: { "symbol": string, "indicator": string, "interval": string, "points": [{ "date": string, "values": {...} }] } Intraday dates are shown in IST (Indian Standard Time).

Examples:

  • Use when: "What's TCS's RSI right now?" -> ticker="TCS", indicator="RSI" (uses default live 15minute interval)

  • Use when: "Has RITES crossed its 200-day moving average?" -> ticker="RITES", indicator="SMA", time_period=200, interval="daily"

  • Don't use when: You want P/E, ROE, or other fundamentals (use screener_get_company_overview instead)

Error Handling:

  • Returns an error if the ticker/exchange combination isn't found on Yahoo Finance — double-check NSE vs BSE and the ticker spelling.

  • Returns an error if there isn't enough price history yet for the requested time_period (e.g. a recently listed stock and a 200-period SMA, or a long time_period on a short intraday window).

  • Outside market hours (or on non-trading days), the "live" value is simply the last traded candle, not a real-time price.

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": {
      "ticker": "<ticker>",
      "indicator": "<indicator>"
    },
    "name": "technical_get_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many most-recent data points to return (default 10, max 50).
tickerYesPlain NSE/BSE ticker symbol, e.g. 'TCS', 'RITES', 'RELIANCE' (no exchange prefix, no .NS/.BO suffix).
exchangeNoWhich exchange the ticker is listed on. Default: NSE.NSE
intervalNoCandle interval. For a LIVE/current reading during market hours, use an intraday interval like '5minute' or '15minute' — the most recent candle is the live, still-forming one. Use 'daily'/'weekly'/'monthly' for longer-term/end-of-day analysis. Default: '15minute'.15minute
indicatorYesTechnical indicator to compute: RSI (momentum/overbought-oversold), SMA/EMA (moving averages), MACD (trend momentum, fixed 12/26/9).
time_periodNoNumber of periods used in the indicator calculation (e.g. 14 for standard RSI, 50 or 200 for common SMA/EMA). Ignored for MACD (fixed 12/26/9).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world and non-destructive, and the description adds substantive context beyond that: the upstream data source (Yahoo Finance chart data with .NS/.BO suffixing), server-side computation with named formulas (Wilder's RSI, 12/26/9 MACD), and the important caveat that outside market hours the 'live' value is merely the last traded candle. It also documents two failure modes (ticker/exchange not found, insufficient history for the requested time_period), which is exactly the kind of operational disclosure annotations cannot convey.

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 purpose, then live-vs-historical guidance, then data provenance, with examples and error handling at the end — a sensible structure. However, the Args and Returns blocks duplicate the input schema almost verbatim and the intraday/live explanation appears twice, adding length without new information.

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?

With six parameters and no output schema, the description fully compensates by documenting the return shape ({symbol, indicator, interval, points[{date, values}]}), the IST timezone convention for intraday dates, and the error conditions. Nothing needed to call this 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 coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: it clarifies that ticker must be plain with no exchange prefix or suffix, explains why interval drives whether the output is 'live', notes time_period is ignored for MACD, and states that limit returns newest-first so the first point is the current value. The Args block largely restates schema text, which caps this below a 5.

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 price-based technical indicator: RSI/SMA/EMA/MACD) for an NSE/BSE stock, and explicitly distinguishes itself from the screener_* family, which it says covers fundamentals only. An agent can tell exactly what this produces versus nse_get_quote or screener_get_company_overview.

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?

Gives explicit when-to-use rules tied to intent ('is this stock overbought right now', 'has it crossed its 200-day moving average'), explicit interval selection logic (intraday for live, daily/weekly/monthly for end-of-day), and an explicit don't-use case routing to screener_get_company_overview for P/E and ROE. Two concrete examples map natural-language questions to argument values.

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