Skip to main content
Glama
aswathas

TradeMCP

by aswathas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRADEMCP_TIMEOUTNoHTTP timeout in seconds.30
TRADEMCP_CACHE_DIRNoDisk cache location.~/.cache/trademcp
TRADEMCP_PRICE_TTLNoPrice history cache seconds (15 min).900
TRADEMCP_QUOTE_TTLNoQuote cache seconds (5 min).300
TRADEMCP_USER_AGENTNoOutbound User-Agent.browser UA
TRADEMCP_PROFILE_TTLNoScreener.in profile cache seconds (24 h).86400
TRADEMCP_UNIVERSE_TTLNoNSE listing cache seconds (12 h).43200
TRADEMCP_MAX_CONCURRENCYNoParallel upstream requests.8
TRADEMCP_FUNDAMENTALS_TTLNoFundamentals cache seconds (6 h).21600
TRADEMCP_ENABLE_SCREENER_INNoSet to 0 to skip Screener.in entirely.1

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
trademcp_get_fundamentalsA

Get a full fundamental picture of an Indian stock.

Returns valuation (P/E, P/B, P/S, EV/EBITDA, market cap, dividend yield), profitability (gross/operating/net margin, ROE, ROA, ROCE, ROIC, asset turnover), leverage (debt/equity, net debt/EBITDA, interest coverage), liquidity (current ratio, quick ratio, free cash flow), growth (YoY and 3/5-year CAGR), a DuPont breakdown and a 0-100 health score.

Args: symbol: NSE symbol or company name include_india_metrics: pull India-specific ratios from Screener.in response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'valuation', 'profitability', 'leverage', 'liquidity', 'growth', 'dupont', 'india_specific' and 'health_score'.

trademcp_get_valuationA

Get a focused valuation sheet for an Indian stock.

Returns market cap, enterprise value, P/E, P/B, P/S, EV/EBITDA, PEG, dividend yield, EPS and book value per share, alongside a plain-English reading of whether the stock looks cheap or expensive versus its own growth and quality metrics.

Args: symbol: NSE symbol or company name peers: include a same-industry peer comparison response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'valuation', 'growth_context', 'verdict' and optional 'peers'.

trademcp_get_financial_statementsA

Get income statement, balance sheet and cash flow line items for a stock.

Shows revenue, gross profit, operating income, EBITDA, net income and EPS from the income statement; total assets, debt, equity and working capital from the balance sheet; and operating cash flow, free cash flow and capex from the cash flow statement, across the requested number of periods.

Args: symbol: NSE symbol or company name period: 'annual' or 'quarterly' years: number of periods to include response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'income_statement', 'balance_sheet' and 'cash_flow'.

trademcp_search_symbolA

Search NSE-listed companies by ticker symbol or company name.

Use this when the user gives a company name rather than an NSE code, or when a symbol might be ambiguous. Returns the NSE code, company name, ISIN and listing details for each match, ranked with exact symbol matches first.

Args: query: ticker or company name to search for limit: maximum number of matches to return response_format: 'markdown' or 'json'

Returns: Markdown table or JSON list of matches with 'symbol', 'name', 'isin' fields.

trademcp_get_quoteB

Get the latest price quote and key statistics for an Indian stock.

Returns the last traded price, day change, day's range, volume, 52-week range, market capitalisation and valuation multiples (P/E, P/B, EPS, dividend yield, beta), plus 1 week / 1 month / 3 month / 1 year returns.

Args: symbol: NSE symbol or company name exchange: 'NSE' or 'BSE' response_format: 'markdown' or 'json'

Returns: Markdown or JSON quote payload. 'Error: ...' if the symbol cannot be resolved.

trademcp_get_price_historyA

Get historical OHLCV candles for an Indian stock.

Returns the most recent candles with date, open, high, low, close and volume, newest first, along with the period's start/end prices and total return so the caller can chart or analyse the series.

Args: symbol: NSE symbol or company name range: lookback window interval: candle size limit: maximum candles to return exchange: 'NSE' or 'BSE' response_format: 'markdown' or 'json'

Returns: Markdown table of candles, or JSON with 'candles' and 'period_summary'.

trademcp_get_index_snapshotA

Get live quotes for major Indian indices.

Covers NIFTY 50, SENSEX, the NIFTY sector indices (Bank, IT, Auto, FMCG, Pharma, Realty, Metal, Energy, PSU Bank, Private Bank, Financial Services, Media) and INDIA VIX, so the caller can see where the market stands.

Args: indices: optional list of index names to fetch response_format: 'markdown' or 'json'

Returns: Markdown table or JSON list of index quotes with price, change and percent change.

trademcp_get_market_breadthA

Measure market breadth for an Indian index.

Counts advancers, decliners and unchanged stocks among the index constituents, reports the average and median move, and lists the top gainers and losers. Optionally adds the percentage of constituents trading above their 200-day moving average, the classic trend-breadth gauge.

Args: index: index to analyse include_trend: compute the 200-day moving average breadth too response_format: 'markdown' or 'json'

Returns: Markdown or JSON breadth summary with gainers, losers and breadth percentages.

trademcp_compare_stocksA

Compare two to five Indian stocks across price, valuation, quality and momentum.

Fetches the latest quote, headline fundamental ratios and the technical signal score for each symbol, then lines them up so the differences are obvious.

Args: symbols: two to five symbols or company names response_format: 'markdown' or 'json'

Returns: Markdown table or JSON list with one row per symbol.

trademcp_screen_stocksA

Screen Indian stocks by fundamental and technical criteria.

Scans an index universe (or every NSE-listed stock), pulls the latest fundamentals for each name, applies the fundamental filters, then applies the technical filters to the survivors and returns the best matches.

Args: universe: 'NIFTY 50', 'NIFTY 100', 'NIFTY 500' or 'NSE' min_pe: maximum P/E max_pe: minimum P/E min_roe: minimum return on equity (%) min_roce: minimum return on capital employed (%) min_net_margin: minimum net margin (%) max_debt_to_equity: maximum debt/equity min_market_cap: minimum market cap in rupees min_dividend_yield: minimum dividend yield (%) min_current_ratio: minimum current ratio min_revenue_cagr: minimum 3-year revenue CAGR (%) rsi_below: maximum RSI (oversold screen) rsi_above: minimum RSI (overbought screen) above_sma50: require price above the 50-day average above_sma200: require price above the 200-day average limit: maximum rows to return sort_by: field to sort by sort_order: 'desc' (default) or 'asc' response_format: 'markdown' or 'json'

Returns: Markdown table or JSON with 'matches' and the filter set applied.

trademcp_analyze_portfolioA

Analyse an Indian equity portfolio.

Values every holding at the latest price, computes profit and loss, weight and sector concentration, adds each stock's technical signal, then measures the portfolio against the benchmark (beta, annualised volatility, Sharpe, max drawdown) and flags concentration or signal risk.

Args: holdings: list of positions with symbol, quantity and optional cost price benchmark: benchmark index for risk metrics response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'holdings', 'allocation', 'risk', 'performance' and 'flags'.

trademcp_get_technical_indicatorsA

Compute technical indicators for an Indian stock.

Covers 60+ indicators across trend (moving averages, MACD, ADX, Supertrend, Ichimoku, Parabolic SAR, Aroon, Vortex), momentum (RSI, Stochastic, CCI, Williams %R, MFI, ROC, CMO, TSI, Ultimate Oscillator), volatility (ATR, Bollinger, Keltner, Donchian, historical volatility), volume (OBV, VWAP, Chaikin Money Flow, Accumulation/Distribution, Force Index) and statistics.

Args: symbol: NSE symbol or company name indicators: names to compute; omit for the full set range: lookback window interval: candle size limit: recent points kept per indicator response_format: 'markdown' or 'json'

Returns: Markdown table (indicator, latest value, recent values) or JSON with 'indicators' and 'series'.

trademcp_get_technical_analysisA

Run a full technical analysis and produce a directional read on a stock.

Scores every indicator, explains each signal in plain language, reports the composite score (Strong Buy / Buy / Neutral / Sell / Strong Sell), and adds risk statistics (annualised volatility, Sharpe, Sortino, max drawdown, beta, alpha, 30-day relative strength) plus recent candlestick patterns.

Args: symbol: NSE symbol or company name range: lookback window for the analysis benchmark: benchmark index for beta and relative strength response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'summary', 'signals', 'indicators', 'statistics' and 'candles'.

trademcp_get_support_resistanceB

Compute support and resistance levels for an Indian stock.

Returns pivot points in classic, Camarilla, Fibonacci, Woodie and DeMark styles, Fibonacci retracement levels over the recent range, recent swing highs and lows, 20-day Donchian channels, ATR and the position of the price inside its 52-week range.

Args: symbol: NSE symbol or company name range: lookback window response_format: 'markdown' or 'json'

Returns: Markdown or JSON with 'pivots', 'fibonacci_retracement', 'range', 'swing_highs' and 'swing_lows'.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 14 tools

Disambiguation4/5

Each tool has a reasonably distinct focus, but there is meaningful overlap: get_fundamentals already includes valuation multiples that get_valuation re-exposes, and get_technical_indicators, get_technical_analysis and get_support_resistance all derive from the same indicator/candle pipeline. Descriptions do enough to route an agent (raw indicators vs. scored signal vs. price levels), so confusion is limited but not eliminated.

Naming Consistency5/5

Every tool follows the same trademcp_verb_noun snake_case pattern (get_quote, get_price_history, screen_stocks, analyze_portfolio, compare_stocks). Verb usage (get/analyze/compare/screen/search) is coherent and predictable across the set.

Tool Count5/5

14 tools sits comfortably in the well-scoped range for a full equity-research server covering quotes, fundamentals, technicals, screening and portfolio analysis. No single tool looks like filler, and the surface is not so large that discovery becomes a burden.

Completeness4/5

The lifecycle from symbol lookup through quotes, history, fundamentals, valuation, screening, comparison and portfolio risk is well covered, with no obvious dead ends for analysis workflows. Gaps remain around news/events, corporate actions and dividends, and peer comparison is only available as an option inside get_valuation rather than as a first-class tool.

Maintenance

ActivityMaintained
ResponsivenessNo issues