# eqdoc MCP server: guide

eqdoc serves Indian listed-company data (NSE and BSE) to AI assistants over MCP. Server URL: `https://mcp.eqdoc.com/mcp` (remote MCP, Streamable HTTP). 84 tools, all read-only except `send_feedback`, which sends a message to the eqdoc team only when the user explicitly asks. Start with `search_company` to find a symbol. Every tool's inputs are listed under "Tool inputs" below.

Fundamental data and end-of-day figures from company filings and exchange closes; no live (intraday) prices or volumes. Figures as filed / computed by eqdoc; not investment advice. This holds for every tool and is not repeated in each tool's description.

- **Sign-in**: OAuth 2.1 with PKCE and Dynamic Client Registration. The app opens `mcp.eqdoc.com/authorize`, the reader signs in with their eqdoc account (Google), then sees "Connect `<app>` to eqdoc" with what the app can read (company data, nothing in the reader's account changed, no live prices), and chooses Allow or Cancel; Allow names the host it returns to.
- **Access**: free for every signed-in eqdoc reader until 15 January 2027, 23:59:59 IST; from then on, eqdoc Pro.

## Connect

The same steps as the eqdoc.com/mcp page.

### Claude
1. In claude.ai, open Settings, then Connectors, and choose Add custom connector.
2. Name it eqdoc and paste the server URL `https://mcp.eqdoc.com/mcp`.
3. Choose Connect, sign in with your eqdoc account and approve access. Claude Desktop uses the same Connectors setting.
4. In Claude Code, add it from your terminal, then run `/mcp` inside Claude Code to sign in:
   ```
   claude mcp add --transport http eqdoc https://mcp.eqdoc.com/mcp
   ```

### ChatGPT
1. In ChatGPT on the web, open Settings, then Apps and Connectors (Connectors on some plans).
2. Under Advanced settings, turn on Developer mode. It is available on paid ChatGPT plans.
3. Create a new connector, name it eqdoc, and paste the MCP server URL `https://mcp.eqdoc.com/mcp`. Leave authentication on OAuth.
4. Sign in with your eqdoc account and approve access. Turn the connector on in a chat to use it.

### Codex
1. Add the server from your terminal: `codex mcp add eqdoc --url https://mcp.eqdoc.com/mcp`
2. Sign in with `codex mcp login eqdoc`. A browser window opens for your eqdoc account; approve access there.
3. Or add it to `~/.codex/config.toml` by hand, then run the login command above:
   ```toml
   mcp_servers.eqdoc = { url = "https://mcp.eqdoc.com/mcp" }
   ```

### Gemini CLI
1. Add eqdoc to `~/.gemini/settings.json`. If the file already has an `mcpServers` block, add the eqdoc entry inside it:
   ```json
   { "mcpServers": { "eqdoc": { "httpUrl": "https://mcp.eqdoc.com/mcp" } } }
   ```
2. Start Gemini CLI and sign in with `/mcp auth eqdoc`. A browser window opens for your eqdoc account; approve access there.

### Antigravity
1. In the agent panel, open the menu, choose MCP Servers, then Manage MCP Servers and View raw config.
2. Add eqdoc to `mcp_config.json` and save:
   ```json
   { "mcpServers": { "eqdoc": { "serverUrl": "https://mcp.eqdoc.com/mcp" } } }
   ```
3. Refresh the server list. Antigravity opens a browser window to sign in with your eqdoc account; approve access there.

### Cursor
1. Add eqdoc to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in one project):
   ```json
   { "mcpServers": { "eqdoc": { "url": "https://mcp.eqdoc.com/mcp" } } }
   ```
2. Open Cursor Settings, then MCP, and choose Connect beside eqdoc. Sign in with your eqdoc account and approve access.

### Perplexity
1. In Perplexity, open Plugins in the sidebar (or Settings, then Connectors), and choose Add custom.
2. Choose Remote, name it eqdoc, and paste the MCP server URL `https://mcp.eqdoc.com/mcp`.
3. Sign in with your eqdoc account and approve access when asked.

### VS Code
1. In VS Code with GitHub Copilot in agent mode, add eqdoc to `.vscode/mcp.json` (or to your user settings):
   ```json
   { "servers": { "eqdoc": { "type": "http", "url": "https://mcp.eqdoc.com/mcp" } } }
   ```
2. Start the eqdoc server from the file or the MCP servers list. VS Code opens a browser window to sign in with your eqdoc account; approve access there.

### Anything else
A client that only speaks stdio: `npx mcp-remote https://mcp.eqdoc.com/mcp`. It opens the same sign-in in the browser and relays stdio to the server.

## Data rules

- Filed fundamentals and everything end-of-day (closes, market cap, P/E, P/B, dividend yield, the 52-week range), each dated to its close.
- Figures are as filed, or computed by eqdoc. Say the date with any figure you quote.
- No live (intraday) prices or volumes.
- Not investment advice. Rankings and scores describe data; they are not a recommendation to buy or sell.

## Coverage and freshness

- About 5,700 listed NSE and BSE companies.
- Closes, and everything computed from them (market cap, P/E, P/B, dividend yield, technicals, returns), are for the latest settled close. The day's close is in after the market closes, about 4 pm IST; while the market is open, the market-wide tools say so instead of giving a live figure. There are no intraday prices or volumes.
- Financial statements, shareholding, filings and call summaries are as the company filed them, with the date; an answer says which year or quarter it is on.
- Depth of one call: prices up to five years (within the last five years); annual financials up to 12 years; filings up to 3650 days; shareholding up to 12 quarters; corporate actions up to 10 years; insider trades up to 12 months; a rule backtest up to 10 years.

## Limits

Per reader per day (resets at midnight IST): 500 data calls, 50 screens, 100 price histories, 100 analyses, 20 rule backtests, 30 downloads (Excel or CSV files), 10 feedback messages.

What counts against each daily limit: screens: `screen`, `technicals_screen`, `signal_screen`, `indicator_screen`, `signal_backtest`, `price_screen`, `market_movers`, `market_breadth`, `sector_moves`; price histories: `price_history`, `price_change`; analyses: `analyze`; rule backtests: `rule_backtest`; downloads: `export_workbook`; feedback messages: `send_feedback`. Every call is also a data call. A download is an Excel workbook, or a CSV file from `financials`, `price_history`, `shareholding`, `screen`, `analyze`, `deals`, `insider_trades`, `index_members` (`format: "csv"`), or reading one listed filing's PDF with `read` in `documents` or `filings`.

A call over a daily limit is refused with: "You have used today's N eqdoc MCP <kind> calls. The count resets at midnight IST." Nothing is spent by a refused call; wait for the reset.

Per minute: a budget of 30 units. A lookup weighs 1, a screen, comparison or valuation history 3, an analysis or a file 5. At most 6 calls in flight at once. Over the limit, the call is refused with: "Too many calls this minute. Retry in N seconds." Wait that long, then retry.

## Access, disconnecting and your data

- **Sign-in**: an access token lasts 1 hour and your app refreshes it for you; a refresh token lasts 30 days, then your app asks you to sign in again.
- **Disconnect**: remove eqdoc from your assistant's connector or MCP settings. In Claude or ChatGPT, open the connector and remove it; in Claude Code run `claude mcp remove eqdoc`; in Codex run `codex mcp remove eqdoc`; in Gemini CLI, Antigravity, Cursor or VS Code, delete the eqdoc entry from the config file; in Perplexity, open the connector and remove it. To end the access on eqdoc's side too, write to support@eqdoc.com from your account's email.
- **Logging**: eqdoc records each tool call (your account, the app, the tool, its arguments, the outcome and the response) to run the service and apply the limits. It does not receive your conversation with the AI app, only the tool calls the app makes. Sign-in tokens are not written to these records, and your IP address only as a salted hash.
- **Questions, problems, a connection ended**: support@eqdoc.com. Inside a conversation, `send_feedback` sends the team a message, but only when you ask for it.

## Decisions

### How eqdoc finds a fact (2026-11-10)

Any fact is looked for in this order. First eqdoc's own tables (order wins, figures companies disclose, financials and the rest). If a table has nothing for that company or topic, the filings search. If the filing is listed but cannot be searched yet (filed minutes ago, a scan, an older document), that one PDF is read and the answer carries its link and date; it is queued to be added to the searchable filings. This server never searches the web: when nothing above has it, it says so in one plain line, so your own assistant can look further.

### A page that could not be fully read is not served as complete (2026-11-11)

An answer is often built from several reads. When one of them fails, the tool says the data could not be read just now and to try again. It does not hand back some figures with the others silently missing, and nothing half-read is saved for later, so the next try reads everything afresh.

### Calls are also limited per minute (2026-11-11)

Besides the daily limits, each reader has a budget of 30 units a minute. A plain lookup costs 1, a screen, a comparison or a valuation history costs 3, and an analysis or a file costs 5. No more than 6 calls run at once. A call over the limit is refused with "Too many calls this minute. Retry in N seconds." so your assistant knows how long to wait before it tries again, and a refused call does not use up any of the daily limits.

## Playbooks

Eight MCP prompts (`prompts/list`, `prompts/get`): short recipes for questions that take several tools. Get one when the question matches, then follow it. The same text the eqdoc.com Desk follows.

### `playbook_technicals`: Technical readings: indicators, crosses, Fibonacci, support and resistance, trendlines

Arguments: `company`, `question` (optional).

```
PLAYBOOK technicals: Technical readings: indicators, crosses, Fibonacci, support and resistance, trendlines
1. Resolve the company asked about with search_company unless the symbol is certain (an index by its symbol: NIF50, NIFBAN, SNSXSENSEX).
2. Call technicals for each company (at most three). Every indicator, average, cross, level, Fibonacci retracement and trendline comes from it; never work one out yourself.
3. A chart pattern: chart_patterns. One stock's past signals, how often they worked: signal_backtest or pattern_record with its symbol.
4. Across the market: signal_screen for a scanned signal, indicator_screen for any indicator condition, signal_backtest for how it fared.
5. Weekly or monthly: pass timeframe weekly or monthly and say which bars the readings are on.
Always: State each study's parameters (RSI 14 Wilder, MACD 12/26/9 with signal and histogram, Bollinger 20/2, Supertrend 10/3) and the close date it is as of. Say the basis of any level or range: session highs and lows, or closes.
Never: Say buy, sell or hold; give targets, stop-losses or entry levels.
Answer shape: A lead line with the reading asked, then the studies discussed (value, parameters, as-of close), then what the levels are.
```

### `playbook_why_moved`: Why did a share, or the top movers, move

Arguments: `company` (optional), `date` (optional), `question` (optional).

```
PLAYBOOK why_moved: Why did a share, or the top movers, move
1. Resolve the company asked about with search_company; read the move with price_change. Top gainers or losers: market_movers (market cap of at least ₹500 crore, say so), explaining the largest three at most.
2. Count the move in sessions (sessions_between, session_note), never calendar days.
3. what_moved on the day asked about (the latest settled session if none): filings that day, the sector's median move, institutional flows; then filing_events around it, or event_timeline for a window of dated events. A market-wide move: sector_moves and institutional_flows.
4. News: a web news search, if your client has one, for each company explained (name, symbol, day). If it cannot be read (older than seven days, or no news source), say so, never that none was reported.
Always: Say what you checked. Name the publisher of a news cause; it is from the web.
Never: State a cause no source states; say none is on record. Name a news-aggregator site.
Answer shape: The move (size, both closes and dates, sessions), what coincided, then the cause as its source states it, or none on record.
```

### `playbook_ipo_note`: An IPO note: offer document, subscription, issue price and listing

Arguments: `issue`, `question` (optional).

```
PLAYBOOK ipo_note: An IPO note: offer document, subscription, issue price and listing
1. Read ipo_analysis for the issue asked about: restated financials, valuation at the top of the band beside the peers the document names, objects, anchors, risks, subscription by category while open.
2. Listed already: the issue price is in ipo_analysis; recent_listings gives the first close and the latest close.
3. Link only official sources: SEBI, NSE, BSE, the registrar, the offer document.
4. No issue named: list the issues the tools return, with official links only.
Always: Give subscription by category (QIB, NII, retail) with the date it is as of. Say when the offer document has not been read.
Never: Quote a grey-market premium or estimate a listing gain. Say apply, subscribe or avoid. Name any third-party IPO site.
Answer shape: The issue (dates, band, size, fresh issue and offer for sale), three restated years, valuation against peers, subscription by category, the listing if listed, the top risks.
```

### `playbook_compare`: Compare companies side by side

Arguments: `companies`, `question` (optional).

```
PLAYBOOK compare: Compare companies side by side
1. Resolve each company with search_company (two to six).
2. Read compare, and peers for the wider set.
3. Set the same period for all (each one's latest filed year, or the same quarter) and the same basis (consolidated for all, or standalone for all). Say which. A company without it is shown apart, never mixed in.
4. Cover valuation (P/E, P/B, yield against its own median: valuation_history), growth (sales and profit, latest year and 3-year CAGR), margins, ROE or ROCE, leverage, cash flow.
Always: State the period and basis above the table. Place the table the tool returned.
Never: Pick a company to buy or call one 'better'; say what differs. Fill a gap from memory.
Answer shape: One lead sentence on the biggest difference, the table, then two or three plain differences.
```

### `playbook_results`: Results summary: the latest quarter

Arguments: `company`, `quarter` (optional), `question` (optional).

```
PLAYBOOK results: Results summary: the latest quarter
1. Resolve the company asked about with search_company. Read quarter_changes: the quarter against the same quarter last year and the quarter before, for revenue, profit and margins.
2. profit_quality: other income as a share of profit before tax, exceptional items, associates.
3. management_commentary for the call summaries: what management said, with the call's date.
4. Name the basis (consolidated or standalone) and the quarter's end date.
Always: Give both figures for every change you state. Say eqdoc holds no analyst estimates, so no beat or miss.
Never: Use rising or falling without the comparison that proves it. Recommend anything.
Answer shape: A lead with revenue and profit against both comparisons, then margins, other income's share, exceptional items, management's commentary.
```

### `playbook_governance`: Governance, audit, insider activity and leadership track record

Arguments: `company`, `question` (optional).

```
PLAYBOOK governance: Governance, audit, insider activity and leadership track record
1. Read auditor_notes for the company asked about: the auditor, the audit opinion, any qualification or resignation, and each revised quarter.
2. Check restatements for restated line items against original figures, and profit_quality for other income's share of profit before tax, exceptional items and cash conversion.
3. Read insider_trades for promoter and KMP trades (date, person, role, action, shares, value), and shareholding for promoter stake and pledged shares across quarters.
4. Read track_record for guidance paired with actual outcomes, and people_changes for board, KMP, CEO, CFO, compliance officer and auditor appointments or exits.
Always: Date every audit note, restatement, trade, pledge figure and board or auditor change to its filing. Distinguish open-market insider trades from ESOPs, gifts, pledge invocations or inter-se transfers.
Never: Call a company clean or a fraud, or give investment advice; state what was filed and when. Fill a missing filing from memory.
Answer shape: Lead with any qualified opinion, restatement, pledge or key exit; then audit and profit quality, promoter stake and insider trades, guidance record, and board or auditor changes.
```

### `playbook_orders_capex`: Order book, order inflows, execution and capex

Arguments: `company`, `question` (optional).

```
PLAYBOOK orders_capex: Order book, order inflows, execution and capex
1. Read order_wins for the company asked about: individual order announcements, client named, contract value in rupees crore, execution timeline and filing date.
2. Read disclosed_kpis for the closing order book, quarterly order inflows, L1 pipeline and capacity utilisation across recent quarters.
3. Read financials for trailing revenue to state book-to-bill (closing order book divided by trailing revenue), gross block additions, CWIP and capex outflow.
4. Read management_commentary for execution timelines, working-capital cycle, margin mix of the book and commissioning dates from recent calls.
Always: State the as-of quarter end for the closing order book and the period for inflows and revenue. Keep announced order wins separate from the closing order book; if a sector discloses none, say so.
Never: Treat L1 status or a bid pipeline as part of the executable order book, or project future revenue. Give investment advice or fill an unfiled KPI from memory.
Answer shape: Closing order book and book-to-bill with as-of date, quarterly inflows and notable order wins, capacity utilisation and capex additions, then management commentary on execution.
```

### `playbook_dividend`: Dividends, payout ratio, free cash flow cover and corporate actions

Arguments: `company`, `question` (optional).

```
PLAYBOOK dividend: Dividends, payout ratio, free cash flow cover and corporate actions
1. Read dividends for the company asked about: interim, final and special dividends per share with ex-dates; company_snapshot for the trailing yield at the latest close.
2. Read corporate_actions for record dates, splits, bonus and rights issues that affect per-share comparability.
3. Read financials across recent fiscal years for dividend payout ratio, operating cash flow, capex, free cash flow cover of dividends paid, and debt-to-equity.
4. Read rates_macro for the RBI repo rate and 10-year G-Sec yield as the dated macro benchmark alongside trailing dividend yield.
Always: State ex-dates, fiscal years, per-share rupee amounts and whether figures are adjusted for splits or bonus issues. For banks and lenders, use profit payout and capital adequacy instead of free cash flow cover and debt-to-equity.
Never: Frame payouts around personal income needs or give investment advice; report filed figures and dates only. Project future dividends or compute a forward yield.
Answer shape: Trailing dividend per share and yield against the 10-year G-Sec rate, multi-year dividend and split or bonus history, then payout ratio, free cash flow cover and leverage.
```

## Which tool for which question

### Company basics

| Tool | What it does | Example question |
|---|---|---|
| `search_company` | Find a listed company or a stock index by its name, ticker or code. | What is the ticker for Tata Consultancy Services? |
| `company_snapshot` | One company at a glance: last close, market cap, P/E, P/B, key ratios, growth over 3, 5 and 10 years, cash flow and EqScore. | Give me a quick snapshot of Mazagon Dock. |
| `peers` | A company's listed peers in the same business, with their key figures. | Who are HDFC Asset Management's peers? |
| `sector_overview` | All companies in a sector or industry with their key figures, largest first. | Show me the largest cement companies. |
| `list_sectors` | The sectors eqdoc classifies companies into, with company counts. | Which sectors does eqdoc cover? |
| `company_profile` | Who a company is: sector, industry, indices, listings and what it does. | What does Polycab do, and which indices is it in? |

### Financials

| Tool | What it does | Example question |
|---|---|---|
| `financials` | Profit and loss, balance sheet or cash flow, by year or by quarter, as filed. | Show HDFC Bank's quarterly results for the last two years. |
| `dividends` | Every dividend with its date and amount, and the total for each financial year. | How much dividend has ITC paid in the last five years? |
| `corporate_actions` | One company's dividends, splits, bonuses, buybacks, rights issues and mergers with their dates; or the ex-dates coming up across the market. | Which companies go ex-dividend in the next two weeks, and has Infosys had a buyback? |
| `segments` | Revenue and profit of each business segment, by year. | How much of Reliance's profit comes from retail? |
| `quarter_changes` | What changed in the latest quarter against a year ago and the quarter before, and why. | Why did Bajaj Finance's profit change last quarter? |
| `disclosed_kpis` | Figures a company reports in its presentations and calls: order book, AUM, NPAs, capacity and more. | What is Mazagon Dock's order book? |
| `export_workbook` | Download a company's full Excel workbook, the same file as the Download button on eqdoc.com. | Give me an Excel file of Asian Paints' financials. |
| `valuation_history` | Where a company's P/E and P/B sit against their own past, for one company or up to eight side by side. | Is Titan's P/E high or low against its own history? |
| `cost_exposure` | Who gains or loses if a driver moves: each company's exposed cost line as a share of sales, its margins, and what a 5% or 10% move is worth. | Crude oil prices are cooling: which listed Indian companies benefit, and how much? |
| `brsr` | A company's BRSR sustainability disclosures by fiscal year: emissions, energy, water, waste, people, board, complaints, assurance. | What were Infosys's Scope 1 and Scope 2 emissions in FY2026, and on what boundary? |
| `restatements` | Results a company later changed: the earlier figure, the later figure and when each was filed. | Has Reliance restated its results? |
| `profit_quality` | Where reported profit came from: operations, other income, exceptional items, associates and tax. | Is Reliance's profit growth from operations or from other income? |
| `implied_growth` | The yearly EPS growth that would bring today's P/E to its own 3-year median in five years. | What EPS growth does Titan's P/E imply? |
| `case_for_against` | What improved and what worsened against a year earlier, in the latest quarter and the latest year. | What improved and what worsened at Bajaj Finance against a year ago? |
| `bank_metrics` | A bank's, lender's or insurer's own book: NPAs, margins, capital, deposits, advances or premiums. | What are HDFC Bank's gross and net NPA, CASA ratio and NIM? |
| `bank_group` | Asset quality across private, public or all banks, side by side with the group median. | How do PSU banks' net NPAs compare with private banks'? |

### Filings & management

| Tool | What it does | Example question |
|---|---|---|
| `order_wins` | Orders and contracts companies told the exchange they won: the client, the value and its share of sales, the order type and when it runs, from April 2024. | Which Ministry of Defence orders were won in the last six months, and by whom? |
| `event_timeline` | One call for why a share moved: the days with an event or a big move, with its orders, results and filings beside its, the Nifty's and the sector's move. | Line up BEL's orders and results against its price over the last three months. |
| `filings` | A company's exchange filings and announcements, newest first, with links; or read one listed filing. | What has Infosys announced in the last three months? |
| `search_filings` | Search inside annual reports, results, call transcripts and filings. | What did L&T say about its order pipeline in its last call? |
| `management_commentary` | What management said on earnings calls, the promises they made, and which were kept. | Has Tata Motors' management kept its promises on debt reduction? |
| `results_calendar` | Upcoming results dates, for the market or one company. | Which companies announce results this week? |
| `credit_ratings` | A company's credit ratings: agency, rating, outlook and date. | What is Bajaj Finance's latest credit rating? |
| `documents` | Annual reports, investor presentations, call transcripts and rating reports, with links; or read one listed filing. | Get me Titan's last three annual reports. |
| `market_events` | Classified filing events across the whole market: rating changes, auditor exits, buybacks, splits and more. | Which companies had a rating downgrade this week? |
| `list_calls` | Which companies held an earnings call between two dates. | Who held earnings calls this week? |
| `auditor_notes` | A company's auditor, the audit opinion, any resignation or qualification, and each revised quarter. | Who audits Infosys, and has the auditor ever qualified its opinion? |
| `track_record` | Management promises graded as kept, slipped, missed or pending, with the words that settled each. | Which of Tata Motors' promises were missed? |
| `results_declared` | Who filed quarterly results in a window and how the quarter went, ranked by year-on-year growth. | Which banks reported results last week, and how did profit change? |
| `results_lists` | The results season's turnarounds and best results, with the year-ago figures. | Which companies turned profitable this quarter? |
| `filing_events` | What happened at a company lately from its filings: classified events, announcements and the latest of each kind. | Any management changes or fund raises at Zee recently? |
| `people_changes` | CEO, MD, CFO, company secretary, auditor, chairman and director appointments and exits from exchange filings, for one company or across the market. | Which companies had a CFO or auditor resign in the last 90 days? |
| `catalyst_calendar` | Dated corporate events ahead for one company or the market: results board meetings, dividend, split, bonus, rights and buyback dates, and general meetings. | What dated catalysts and corporate actions are coming up for Reliance in the next 60 days? |
| `filings_by_topic` | Exchange filings on a subject across every listed company: how many, by how many companies, and the list with links. | How many companies reported a cyber fraud on BSE in the last three months? |

### Ownership & deals

| Tool | What it does | Example question |
|---|---|---|
| `shareholding` | Who owns the company: promoter, foreign, domestic institution and public holdings by quarter, with pledges. | How has the promoter holding in Adani Ports changed this year? |
| `holders` | Find a named shareholder and every company they hold. | Which companies does LIC hold more than 5% of? |
| `deals` | Bulk and block deals reported to the exchanges (insider dealings are in insider_trades). | Were there any block deals in Zomato this month? |
| `institutional_flows` | Daily net buying and selling by foreign and domestic institutions. | Have foreign investors been buying or selling this month? |
| `insider_trades` | Promoter, director and insider buying, selling and pledging as filed under SEBI's rules. | Did Dixon's promoters sell shares this year? |
| `fpi_sector` | Which sectors foreign portfolio investors bought and sold, by fortnight or summed over a window. | Which sectors did FPIs sell most in the last month? |

### Market & macro

| Tool | What it does | Example question |
|---|---|---|
| `price_history` | Daily closing prices of a company or an index (Nifty 50, Sensex, sector indices) between two dates or for the last N days (end of day only). | What were Reliance's closing prices in October 2026? |
| `rates_macro` | RBI policy rates, how markets moved after rate changes, equities against fixed deposits, the official INR reference rates, and India's CPI and WPI inflation. | How did the Nifty move after the last repo rate cut, and what was the latest CPI inflation? |
| `chart_patterns` | Chart patterns and indicator signals found on a company in the last five sessions, and shapes drawn on its chart (triangles, flags) with points. | Which chart patterns formed on Reliance this week? |
| `pattern_record` | What followed a chart pattern in the past: market-wide, for one company, or every member of an index or sector ranked on its own record. | How often did a bullish engulfing pattern go on to rise within five sessions? |
| `technicals` | A company's or index's technical indicators at its last close: RSI, moving averages, MACD, Bollinger Bands, support and resistance and more. | What is TCS's RSI and is it above its 200-day average? |
| `delivery` | A company's delivery percentage by day and its exchange price band. | What was the delivery percentage in Infosys last week? |
| `price_change` | How a stock or index moved over any window: start and end closes, change, highs and lows, drawdown and volatility. | How did the Nifty move over the last three months, and how does it compare with the Sensex? |
| `ipo_analysis` | A note on one IPO from its offer document: financials, issue, objects, promoters and risks. | Analyse the Lenskart IPO from its offer document. |
| `recent_listings` | Companies that listed recently, with their first-session close and return since listing. | Which companies listed in the last 60 days? |
| `what_moved` | What else was true on the day a share moved: its move, anything filed that day, how its sector moved and what institutions did. | Why did Tata Steel fall yesterday: was it news or the sector? |
| `market_movers` | The biggest gainers or losers in the whole market at the last close. | Which stocks gained the most at yesterday's close? |
| `market_breadth` | How many companies rose, fell or closed at a 52-week high or low at the last close, and how many sit above their moving averages. | How broad was yesterday's market: how many stocks advanced and declined? |
| `sector_moves` | How each sector moved at the last close, or over a week, a month or three months. | Which sectors did best over the last month? |
| `global_cues` | The latest reading of the global cues, taken three times a weekday: GIFT Nifty, US and Asian indices, Brent, gold, silver, the rupee, each dated. | What are the global cues right now: US markets, Brent and GIFT Nifty? |
| `indices` | NSE and BSE index levels at the last close, and India VIX. | Where did the Nifty, Sensex and Bank Nifty close? |
| `index_detail` | One index in detail: level, returns over several periods, 52-week range, all-time high and valuation. | How has the Nifty Bank done this year, and how far is it from its high? |
| `index_members` | The companies in an index, the indices a company is in, and whether one company is a member. | Is Reliance in the Nifty 50, and which indices is it in? |

### Screening

| Tool | What it does | Example question |
|---|---|---|
| `screen` | Filter every listed company with simple conditions, like a stock screener. | Which companies have ROE above 20%, debt to equity below 0.5 and EqScore above 70? |
| `rule_backtest` | Test your own rule on daily prices: trades, win rate, return against holding and the Nifty 50, drawdown, by year. Past only; costs not modelled. | How would buying Nifty 50 stocks when RSI(14) is below 30 and the close is above the 200-day average, and leaving after 20 sessions, have done over five years? |
| `compare` | Two to six companies side by side: valuation, ratios, growth over 3, 5 and 10 years, cash flow and EqScore. | Compare TCS, Infosys and HCL Tech. |
| `analyze` | Any calculation across companies: returns, rankings, medians, multi-condition screens and charts. | Which Nifty 500 companies rose more than 30% in a year and have receivables below 10% of sales? |
| `technicals_screen` | Which members of an index, sector or the market meet one technical condition, such as trading below the 50-day average. | Which Nifty 50 stocks are trading below their 200-day moving average? |
| `signal_screen` | Which companies showed a named chart signal, market-wide, on a date or in the last sessions: a Supertrend flip up, a MACD crossover, a 52-week high breakout. | How many stocks gave a Supertrend flip up on the latest session? List them. |
| `indicator_screen` | Which companies meet one or more technical conditions across the market: RSI, ADX, MACD, averages, Supertrend, crosses in N sessions, and / or. | Which stocks have RSI below 30 and are still above their 200-day average? |
| `signal_backtest` | How a chart signal or pattern fared in the past, market-wide or for one company with each dated signal: win rate, returns, excess over the Nifty. | Backtest a Supertrend flip up over the last 5 years at a 10-session horizon. |
| `price_screen` | Ranked lists across the market: new 52-week highs and lows, top gainers and losers over a chosen period. | Which large-cap stocks gained the most this year? |
| `rank_on_criteria` | Ranks a group on five stated measures: profit growth, ROE, debt, valuation against its own history, one-year return. A ranking, not a recommendation. | Rank the Nifty Bank members on growth, ROE, asset quality, valuation and return. |

### EqScore

| Tool | What it does | Example question |
|---|---|---|
| `eqscore_breakdown` | A company's EqScore (0 to 100, against its own sector) with every check behind it. | Why does HDFC Bank have the EqScore it has? |
| `sector_scores` | The EqScore ranking inside one scoring sector, best first. | Which banks have the highest EqScore? |
| `market_scores` | EqScores ranked across all sectors, optionally within large, mid or small caps. | Which large caps have the lowest EqScore? |
| `score_movers` | Companies whose EqScore moved most between two runs. | Which banks' EqScore rose most in the last month? |

### Learn & rules

| Tool | What it does | Example question |
|---|---|---|
| `define_term` | What a finance term means in eqdoc's own words: ROCE, P/E, gross NPA, price band and more. | What does ROCE mean and how is it calculated? |
| `learn_concept` | Teaching notes on a market concept: technical analysis, valuation, ratios, risk. | Explain how to read RSI. |
| `search_basics` | Dated articles on how the Indian market works: demat accounts, IPOs, settlement, charges, SEBI. | How do I apply for an IPO through UPI? |
| `sector_guide` | How to judge a company in an industry: what drives it, the figures that matter, the red flags. | What drives cement company performance? |
| `find_circular` | Search SEBI circulars and NSE and BSE notices for a rule or a change. | What did SEBI change about F&O expiry? |

### Feedback

| Tool | What it does | Example question |
|---|---|---|
| `send_feedback` | Send feedback or report a problem to the eqdoc team, only when you ask. The one tool that sends something out. | Tell eqdoc that the dividend yield for ITC looks wrong on the snapshot. |

## Tool inputs

### `search_company`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | up to 80 chars |

### `company_snapshot`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `peers`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `sector_overview`

| Input | Required | Type | Note |
|---|---|---|---|
| `sector` | no | string | a sector name or slug; give this or industry, or both; up to 80 chars |
| `industry` | no | string | an industry or basic industry as SEBI names it; up to 80 chars |

### `list_sectors`

No inputs.

### `company_profile`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `financials`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `statement` | yes | pnl / balance_sheet / cash_flow | - |
| `period` | no | annual / quarterly | default "annual" |
| `years` | no | integer | 1..12; default 5 |
| `basis` | no | c / s | default "c" |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `dividends`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `years` | no | integer | 1..12; default 5 |

### `corporate_actions`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | one company; omit it with upcoming_days for the whole market; up to 20 chars |
| `years` | no | integer | with a symbol: how far back, in years; 1..10; default 5 |
| `upcoming_days` | no | integer | ex-dates from today through this many days ahead (1 to 60); with no symbol it lists the whole market, and 14 days if you give types alone; 1..60 |
| `types` | no | array of string | with upcoming_days: dividend, split, bonus, rights, buyback, income, merger, spinoff; omit for all |
| `offset` | no | integer | with upcoming_days: rows to skip; pass the previous answer's next_offset to read the next page (100 a page); 0..5000; default 0 |

### `segments`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `years` | no | integer | 1..5; default 3 |

### `quarter_changes`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `disclosed_kpis`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `kpis` | no | array of string | the figures wanted, e.g. ["order book", "GNPA", "cash"]; omit for all |

### `export_workbook`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `basis` | no | c / s | c consolidated, s standalone; default consolidated, else standalone where a company files no consolidated statements |
| `years` | no | integer | 1..12; default 12 |

### `valuation_history`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `symbols` | no | array of string, 1-8 | - |
| `sector` | no | string | a SEBI sector or industry name (list_sectors); up to 80 chars |
| `index` | no | string | an index by name, e.g. Nifty 50; up to 60 chars |

### `cost_exposure`

| Input | Required | Type | Note |
|---|---|---|---|
| `driver` | no | string | the driver and its move in words, as the reader put it; up to 120 chars |
| `symbols` | no | array of string, 1-15 | up to 15 company symbols (search_company finds them) |
| `sector` | no | string | one sector or industry name (list_sectors); up to 80 chars |
| `top_n` | no | integer | companies per industry for a driver (default 4) or in the sector (default 8); 1..15 |
| `lines` | no | array of string | the P&L lines to measure; omit to take the driver's lines for each industry |
| `move` | no | falls / rises | which way the driver's own value moves; omit to read it from the driver's words (the answer says how it was read) |
| `move_pct` | no | number | one move size in percent; default both 5 and 10; 0.5..100 |
| `linked_share_pct` | no | number | the part of the line (for an export or import line, of sales) linked to the driver, from the company's disclosure; 0..100 |

### `brsr`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `fiscal_year` | no | integer | one fiscal year, the year it ends in (2026 for April 2025 to March 2026); 2020..2100 |
| `years` | no | integer | how many of the latest filed years (default 3); 1..6 |
| `topic` | no | environment / workforce / governance / complaints / community | only this group of figures |

### `restatements`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `profit_quality`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `implied_growth`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `case_for_against`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `bank_metrics`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `bank_group`

| Input | Required | Type | Note |
|---|---|---|---|
| `groups` | no | array of string, 1-4 | default private and public |
| `order` | no | best / worst | the ranking's order: best (lowest NPA first, the default) or worst (highest first) |
| `metric` | no | gross_npa / net_npa | the ratio ranked on; default gross_npa |
| `limit` | no | integer | banks in the ranking; default 10; 1..40 |

### `order_wins`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `since` | no | string | YYYY-MM-DD |
| `until` | no | string | YYYY-MM-DD |
| `client` | no | string | words in the awarding party's name, e.g. Ministry of Defence, NHAI, railway; up to 80 chars |
| `min_value_cr` | no | number | across companies: the smallest value in ₹ crore (default 500; 0 with a client); 0..1000000 |
| `order_type` | no | new / amendment / extension / cancellation / l1 / other | - |
| `min_pct_of_sales` | no | number | across companies: only orders worth at least this percent of the company's latest full-year sales (10 = a tenth of a year's sales); judged over the whole window, not the largest rows by size; min_value_cr then defaults to 0; 0..1000000 |
| `wins_only` | no | boolean | across companies: only new awards; drops L1 bids, amendments, extensions, cancellations, MoUs and project values (every row says counts_as_win, and why not) |
| `related_party` | no | yes / no / unstated | across companies: only orders the filing itself answers as a related-party transaction (yes), not one (no) or does not say (unstated) |
| `offset` | no | integer | across companies: rows to skip; pass the previous answer's next_offset to read the next 50; 0..5000 |
| `sort` | no | value / pct_of_sales | across companies: value (default, the largest rupee value first) or pct_of_sales (the largest share of the company's sales first) |
| `sector` | no | string | across companies: only this sector or industry (words in SEBI sector, SEBI macro sector, macro sector or industry, e.g. Power, Capital Goods, Construction); up to 60 chars |

### `event_timeline`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `from` | no | string | first day (default 90 days before until) |
| `until` | no | string | last day (default the latest settled session) |
| `days` | no | integer | look-back in days when from is not given (default 90); 1..400 |
| `big_move_pct` | no | number | flag a move of at least this many percent that has no event (default 3); 0.5..25 |

### `filings`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `days` | no | integer | 1..3650; default 90 |
| `kind` | no | string | a category to keep, e.g. results, board meeting, credit rating, dividend; up to 40 chars |
| `page` | no | integer | 1..200; default 1 |
| `include_routine` | no | boolean | true keeps routine filings (trading-window closures, newspaper notices, compliance certificates); default false |
| `read` | no | string | read ONE listed filing's PDF: pass a link from this company's list when the filing is listed but not found by search_filings (filed minutes ago, a scan, an older document); up to 600 chars |

### `search_filings`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | up to 300 chars |
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `limit` | no | integer | 1..8; default 5 |
| `from_date` | no | string | only filings dated on or after this day, YYYY-MM-DD: for 'last N months' or 'latest quarter' questions |
| `to_date` | no | string | only filings dated on or before this day, YYYY-MM-DD |
| `sort` | no | relevance / newest | relevance (default), or newest: the best-matching passages in the window, most recent filing first; default "relevance" |

### `management_commentary`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `kind` | no | call_summaries / promises / said_and_done | call_summaries (default), promises or said_and_done; default "call_summaries" |

### `results_calendar`

| Input | Required | Type | Note |
|---|---|---|---|
| `days` | no | integer | 1..60; default 14 |
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `page` | no | integer | 1..200; default 1 |
| `page_size` | no | integer | 10..100; default 50 |
| `min_mcap_cr` | no | number | market-wide: only companies with a market cap at or above this, in ₹ crore; 0..10000000 |

### `credit_ratings`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `documents`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `kind` | no | annual_report / presentation / transcript / rating / all | default "all" |
| `years` | no | integer | 1..15; default 5 |
| `read` | no | string | read ONE listed filing's PDF: pass a link from this company's list when the filing is listed but not found by search_filings (filed minutes ago, a scan, an older document); up to 600 chars |

### `market_events`

| Input | Required | Type | Note |
|---|---|---|---|
| `types` | no | array of string | event types to include; omit for all |
| `symbols` | no | array of string | a watchlist of NSE tickers; omit for the whole market |
| `index` | no | string | an index by name ('NIFTY 50'): only its members; not with symbols; up to 40 chars |
| `adverse_only` | no | boolean | - |
| `days` | no | integer | 1..400; default 30 |
| `sector` | no | string | a sector in your words ('pharma', 'banks'): only its companies' events; up to 80 chars |
| `industry` | no | string | an industry; the same filter as sector; up to 80 chars |
| `query` | no | string | words every headline must contain, e.g. 'warning letter' or 'USFDA'; up to 80 chars |
| `cap_band` | no | large / mid / small | - |
| `min_severity` | no | low / medium / high / critical | - |
| `limit` | no | integer | page size, at most 100; 1..100; default 30 |
| `offset` | no | integer | rows to skip: pass the previous answer's next_offset to read the next page; 0..5000; default 0 |

### `list_calls`

| Input | Required | Type | Note |
|---|---|---|---|
| `from` | no | string | first call date, YYYY-MM-DD |
| `to` | no | string | last call date, YYYY-MM-DD |
| `sector` | no | string | up to 80 chars |
| `limit` | no | integer | 1..20; default 20 |

### `auditor_notes`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `track_record`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `status` | no | kept / slipped / missed / pending | - |
| `limit` | no | integer | 1..50; default 15 |

### `results_declared`

| Input | Required | Type | Note |
|---|---|---|---|
| `window` | no | today / yesterday / this_week / last_week / past_week / this_month / last_month / season / days / between | the filing window: today, yesterday, this_week (Monday to today), last_week, past_week (the last seven days), this_month, last_month, season (the latest results season, or the quarter named), days (the last N days: pass days) or between (pass from and to); default "season" |
| `days` | no | integer | 1..120 |
| `from` | no | string | YYYY-MM-DD |
| `to` | no | string | YYYY-MM-DD |
| `quarter` | no | string | a quarter end, YYYY-MM-DD (a March, June, September or December month end); with window season, every company that filed that quarter |
| `group` | no | string | a sector, industry, bank group or index, e.g. banks, IT services, Nifty 50; up to 60 chars |
| `order` | no | best / worst | default "best" |
| `measure` | no | profit / revenue | default "profit" |
| `limit` | no | integer | 1..50; default 10 |

### `results_lists`

| Input | Required | Type | Note |
|---|---|---|---|
| `list` | yes | turnarounds / best | - |
| `limit` | no | integer | 1..50; default 10 |

### `filing_events`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `days` | no | integer | 7..730; default 120 |

### `people_changes`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code for one company; omit for a market-wide scan; up to 20 chars |
| `role` | no | value | role filter: ceo, managing_director (md), cfo, company_secretary (cs), auditor, chairman, executive_director (ed), non_executive_director (ned), independent_director (id), director, key_managerial_person (kmp), c_suite, board, or comma/'or'-separated list like 'CFO or auditor' |
| `change_type` | no | value | change type filter: appointment (appointed/joined), reappointment, resignation (resigned), cessation, retirement (retired), removal (removed), completion_of_term (term_ended), death, exit/exits/left/departure, or comma/'or'-separated list |
| `days` | no | integer | lookback window in days when since is not set (default 365 for one company, 90 market-wide); 1..1098 |
| `since` | no | string | earliest filing date YYYY-MM-DD |
| `until` | no | string | latest filing date YYYY-MM-DD |
| `limit` | no | integer | maximum changes to return (default 25, max 100); 1..100 |

### `catalyst_calendar`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code for one company; omit for market-wide upcoming events.; up to 20 chars |
| `horizon_days` | no | integer | Forward lookahead window in calendar days (1 to 180, default 60).; 1..180; default 60 |

### `filings_by_topic`

| Input | Required | Type | Note |
|---|---|---|---|
| `topic` | yes | string | comma-separated phrases, e.g. 'cyber fraud, cyber security incident, ransomware'; up to 300 chars |
| `days` | no | integer | 1..1100; default 365 |
| `from` | no | string | first filing date, YYYY-MM-DD; overrides days |
| `to` | no | string | last filing date, YYYY-MM-DD; default today |
| `exchange` | no | bse / nse / both | default "both" |
| `category` | no | string | a filing category to keep, e.g. Corp. Action, Credit Rating; up to 60 chars |
| `full_text` | no | boolean | default false |
| `include_all` | no | boolean | also count SAST/insider-trading disclosures and periodic reports (daily buy-back reports); off by default, they are listed in not_counted; default false |
| `page` | no | integer | 1..200; default 1 |

### `shareholding`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `quarters` | no | integer | 1..12; default 4 |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `holders`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | no | string | the holder's name, at least 3 characters; give this or holder_id; up to 80 chars |
| `holder_id` | no | string | the holder_id a search returned, to list that holder's holdings; give this or query; up to 120 chars |

### `deals`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `days` | no | integer | 1..90; default 30 |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `institutional_flows`

| Input | Required | Type | Note |
|---|---|---|---|
| `days` | no | integer | 1..60; default 20 |
| `detail` | no | boolean | default false |

### `insider_trades`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `months` | no | integer | Lookback window in months (1 to 12).; 1..12; default 12 |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `fpi_sector`

| Input | Required | Type | Note |
|---|---|---|---|
| `period_end` | no | string | end date of the last fortnight in the window; omit for the latest |
| `fortnights` | no | integer | 1..24; default 1 |
| `limit` | no | integer | 1..25; default 8 |

### `price_history`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker (e.g. TCS), BSE code (e.g. 500325), or an index code or name (NIF50, "NIFTY 50", Sensex); up to 20 chars |
| `from` | no | string | YYYY-MM-DD |
| `to` | no | string | YYYY-MM-DD |
| `days` | no | integer | the last N calendar days up to `to` (default 90); ignored when from is given; 1..1830 |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `rates_macro`

| Input | Required | Type | Note |
|---|---|---|---|
| `kind` | yes | policy_rates / rate_reaction / equity_vs_fd / fx_rates / inflation | - |
| `series` | no | array of string | policy_rates: which series, from repo, reverse_repo, sdf, msf, bank_rate, crr, slr, wadtdr_fresh, wadtdr_outstanding, td_1_3y_low, td_1_3y_high, gsec_10y, cpi_yoy (default the seven policy rates); rate_reaction: crr, else the repo |
| `since` | no | string | - |
| `instrument` | no | string | an index (e.g. NIFTY 50) or a symbol, for rate_reaction and equity_vs_fd; up to 40 chars |
| `from` | no | string | - |
| `to` | no | string | - |
| `currency` | no | value | fx_rates: USD (default), EUR, GBP, JPY, AED, IDR or RUB; a list for several |
| `date` | no | string | fx_rates: the rate on this day |
| `limit` | no | integer | fx_rates: sessions per currency, newest first; default 30; 1..400 |
| `measure` | no | cpi / wpi | inflation: cpi (consumer prices, MoSPI; default) or wpi (wholesale, Office of the Economic Adviser) |
| `inflation_series` | no | string | inflation: general (headline, default), food, fuel, groups (every major group for one month) or a group's name; up to 60 chars |
| `sector` | no | combined / rural / urban | inflation, CPI only; default combined |
| `month` | no | string | inflation: one month, YYYY-MM |
| `months` | no | integer | inflation: months back, default 13; 1..240 |

### `chart_patterns`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `pattern_record`

| Input | Required | Type | Note |
|---|---|---|---|
| `pattern` | no | string | the pattern's name in words, e.g. 'bullish engulfing'; omit it, with a symbol, to rank that company's patterns; up to 60 chars |
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `index` | no | string | with a pattern and no symbol: rank this index's members on their own record of the pattern ('NIFTY 50', 'Bank Nifty') |
| `sector` | no | string | with a pattern and no symbol: rank this sector's or industry's members ('banks', 'pharma') |
| `family` | no | candlestick / chartpattern / indicator | with a symbol and no pattern: rank only that family of the company's patterns, all of them (candlestick shapes, chart patterns such as triangles and head and shoulders, or indicator signals) |
| `horizon` | no | 1 / 5 / 10 / 21 | for a ranking (one company's patterns, or a group's members): sessions after the signal at which it is judged (default 21 for a company's patterns, 5 for a group's members) |

### `technicals`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker, BSE code, or an index code or name (RELIANCE, NIF50, NIFBAN, SNSXSENSEX, Nifty 50, Bank Nifty) |
| `timeframe` | no | daily / weekly / monthly | bar size the indicators run on (default daily). Weekly and monthly bars are built from the daily ones (first open, highest high, lowest low, last close, summed volume, dated the last session) and every indicator is computed on them, so a 50-day average becomes a 50-bar one; a figure needing more bars than held is null with its reason. The answer carries timeframe, bars and partial_bar (true while the last week or month is still running) |
| `fib_from` | no | string | Fibonacci anchor date YYYY-MM-DD, given with fib_to: the swing runs from the session nearest this date to the one nearest fib_to. A date outside the price record gives a null Fibonacci block with its reason |
| `fib_to` | no | string | Fibonacci anchor date YYYY-MM-DD, given with fib_from |
| `fib_window` | no | 52w / 120s / ytd | Fibonacci range when no dates are given: 52w (default), 120s (the latest 120 bars) or ytd (year to date) |
| `fib_basis` | no | session_high_low / close | Fibonacci extremes from each bar's high and low (default) or from closes; the anchors used are echoed in fibonacci.anchors |

### `delivery`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `days` | no | integer | 1..400; default 30 |

### `price_change`

| Input | Required | Type | Note |
|---|---|---|---|
| `instrument` | yes | string | an index in words (Nifty 50, Bank Nifty, Sensex, India VIX) or a company: symbol or name; up to 60 chars |
| `period` | no | string | the window as a person says it: '1 week', '5 sessions', '3 months', '1 year', 'ytd', 'FY2025'; or give from (and to) instead; up to 40 chars |
| `from` | no | string | YYYY-MM-DD |
| `to` | no | string | YYYY-MM-DD |
| `compare_to` | no | string | a second instrument over the same dates: an index or a company; up to 60 chars |
| `drawdowns_at_least_pct` | no | number | list every fall of at least this percent from a peak; 1..100 |
| `drawdowns_from` | no | string | with drawdowns_at_least_pct: only falls whose low came on or after this date |

### `ipo_analysis`

| Input | Required | Type | Note |
|---|---|---|---|
| `issue` | yes | string | the company whose IPO is asked about, as named, e.g. Lenskart; up to 80 chars |

### `recent_listings`

| Input | Required | Type | Note |
|---|---|---|---|
| `days` | no | integer | 7..365; default 90 |
| `limit` | no | integer | 1..50; default 15 |

### `what_moved`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |
| `date` | no | string | YYYY-MM-DD; omit for the latest session |

### `market_movers`

| Input | Required | Type | Note |
|---|---|---|---|
| `kind` | no | gainers / losers | default "gainers" |
| `n` | no | integer | 1..50; default 10 |

### `market_breadth`

| Input | Required | Type | Note |
|---|---|---|---|
| `list` | no | advances / declines / unchanged / above_50dma / above_200dma / at_52w_high / at_52w_low | - |
| `limit` | no | integer | 1..50; default 20 |
| `exchange` | no | NSE / BSE | default "NSE" |

### `sector_moves`

| Input | Required | Type | Note |
|---|---|---|---|
| `period` | no | today / 1w / 1m / 3m | default "today" |
| `tier` | no | sector / industry | sector (default) or industry: the level each row is a group at |
| `weight` | no | mcap / equal / count | how the return is weighted: mcap (market-cap weighted, default), or equal (each company counts once; count is the same) |

### `global_cues`

No inputs.

### `indices`

No inputs.

### `index_detail`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | an index: NIFTY, SENSEX, NIFTY BANK, INDIA VIX, or a code or name from indices; up to 60 chars |

### `index_members`

| Input | Required | Type | Note |
|---|---|---|---|
| `index` | no | string | an NSE or BSE index by name, e.g. NIFTY 50, Bank Nifty, SENSEX, NIFTY SMALLCAP 250, BSE Capital Goods; up to 60 chars |
| `symbol` | no | string | NSE ticker or BSE code; up to 20 chars |
| `limit` | no | integer | members to list, largest first; the default is 60. A number at or above the index's member count lists them all; 1..2000 |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `screen`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | up to 2000 chars |
| `limit` | no | integer | how many to return, the top N of the shortlist (default 15); 1..50; default 15 |
| `top_n` | no | integer | the same as limit; 1..50 |
| `offset` | no | integer | rows to skip: the next_offset of the previous page, to read past the first page; 0..10000; default 0 |
| `sort` | no | string | optional: one field and asc/desc, e.g. 'roe desc'; without it the shortlist order applies; up to 80 chars |
| `group_by` | no | sector / industry | top per_group of each sector or industry in one call |
| `per_group` | no | integer | with group_by: how many from each group (default 3); 1..10 |
| `universe` | no | all / psu | psu: government-owned listed companies in every sector |
| `as_of` | no | string | a past date (YYYY-MM-DD, from 2016-01-01 to yesterday): screen as the market stood then, with no look-ahead; no shortlist order then, only the fields held for a past date |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `rule_backtest`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbols` | no | array of string, 1-50 | NSE tickers or BSE codes; delisted names work. Give exactly one of symbols, index, sector |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty'): its largest members by market cap; up to 60 chars |
| `sector` | no | string | a sector or industry by name ('banks', 'pharma'): its largest members by market cap; up to 60 chars |
| `top` | no | integer | for index or sector: how many of the largest members (default all of them, at most 50); 1..50 |
| `entry` | yes | object | - |
| `exit` | yes | object | - |
| `years` | no | number | look-back in years (default 5, at most 10) when from is not given; ..10 |
| `from` | no | string | YYYY-MM-DD, the first day of the window |
| `to` | no | string | YYYY-MM-DD, the last day (default the last settled close) |

### `compare`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbols` | yes | array of string, 2-6 | - |

### `describe_data`

| Input | Required | Type | Note |
|---|---|---|---|
| `topic` | no | string | a dataset name, 'sectors', 'indices', 'screen_fields', 'signals', a doc spec ('quickstart', 'analyze_spec', 'screen_grammar', 'rule_backtest_spec'), or empty for the list of datasets; up to 60 chars |

Other tools point here for exact names: `analyze` reads datasets, sector and index names from it, topic `signals` lists the scanned chart signals `signal_screen` takes, `technicals_screen`'s conditions and the indicator names `indicator_screen` accepts, and topic `screen_fields` the field names `screen` reads. `topic` is a dataset name, `sectors`, `indices`, `screen_fields` or `signals`; with no topic it lists the datasets.

### `analyze`

| Input | Required | Type | Note |
|---|---|---|---|
| `version` | yes | value | the spec version: 2 |
| `universe` | no | value | exactly one of {symbols:[..]} {indices:[..]} {group:{field,equals/in}} {index_members:'NIFTY 500'} {all:true} |
| `columns` | no | value | An object keyed by column name; each value an object {dataset, metric, stat, window?, entity?} or {derive, ...} or {dim}. Not a string. |
| `filter` | no | value | {and:[...]} / {or:[...]} of {col, op: gt/gte/lt/lte/eq/ne, value/ref} or {col, between:[lo,hi]} or {dim, in:[..]} |
| `rank` | no | value | {by: column, dir: 'asc'/'desc'} |
| `limit` | no | integer | rows to list, up to 200; with format csv leave it out to get every row that passes; 1..200 |
| `aggregate` | no | value | {fn, of: column, by?: dimension}, with output 'aggregate' |
| `output` | no | rows / aggregate / series | - |
| `series` | no | value | {lines:[{dataset,metric,entity,label}], window, bucket, transform}, with output 'series' |
| `format` | no | json / csv | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; default "json" |

### `technicals_screen`

| Input | Required | Type | Note |
|---|---|---|---|
| `condition` | yes | above_sma / below_sma / golden_cross / death_cross / rsi_above / rsi_below / near_52w_high / near_52w_low / volume_spike / above_supertrend / below_supertrend / supertrend_flip_up / supertrend_flip_down | - |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `sector` | no | string | a sector or industry by name ('pharma', 'banks', 'cement') |
| `sma_days` | no | 20 / 50 / 100 / 200 | for above_sma / below_sma: the average's length in sessions (20, 50, 100 or 200) |
| `sessions` | no | integer | for golden_cross / death_cross: how many recent sessions the cross must fall in (default 20); for supertrend_flip_up / supertrend_flip_down (default 1, the latest session); 1..60 |
| `threshold` | no | number | RSI level; percent from the 52-week high or low; or times the 20-session average volume; 0..1000 |

### `signal_screen`

| Input | Required | Type | Note |
|---|---|---|---|
| `signal` | no | string | the scanned signal's name in words or alias, e.g. 'Supertrend flip up', 'MACD bullish cross', '52-week high breakout', 'bullish engulfing'; omit when family is given; up to 80 chars |
| `family` | no | chartpattern | 'chartpattern': every chart pattern, daily and weekly, in ONE call (instead of signal); each row names its pattern. With state: 'which chart patterns failed this week'; with side and index: 'a confirmed bullish chart pattern in the Nifty 50' |
| `date` | no | string | one session, YYYY-MM-DD: the signals formed on that date (omit for the latest session or the last N sessions) |
| `sessions` | no | integer | the last N scanned sessions (default 1, the latest; at most 20); not with date; 1..20 |
| `side` | no | bull / bear / neutral | only the bullish, bearish or neutral side of the signal asked |
| `state` | no | forming / confirmed / failed | chart patterns only: still forming, confirmed (broke out) or failed |
| `liquid` | no | liquid / all | liquid names only (default) or every name the scan read |
| `candles` | no | curated / all | for a candle word that holds several shapes ('doji'): the curated twenty (default) or all 61; a shape asked by exact name is always read |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `sector` | no | string | a sector or industry by name ('pharma', 'banks', 'cement') |
| `min_market_cap_cr` | no | number | only companies with at least this market cap, ₹ crore; 0..10000000 |
| `limit` | no | integer | rows to list; 1..50; default 50 |

### `indicator_screen`

| Input | Required | Type | Note |
|---|---|---|---|
| `conditions` | yes | array of object, 1-5 | - |
| `combine` | no | and / or | - |
| `date` | no | string | judge on this scan day, YYYY-MM-DD (omit for the latest) |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `sector` | no | string | a sector or industry by name ('pharma', 'banks', 'cement') |
| `min_market_cap_cr` | no | number | only companies with at least this market cap, ₹ crore; 0..10000000 |
| `liquid` | no | liquid / all | liquid names only (default) or every name written |
| `limit` | no | integer | rows to list; 1..50; default 50 |

### `signal_backtest`

| Input | Required | Type | Note |
|---|---|---|---|
| `signal` | yes | string | the signal or chart pattern in words or alias: 'Supertrend flip up', 'bullish engulfing', 'head and shoulders', 'golden cross'; up to 80 chars |
| `symbol` | no | string | ONE company (NSE ticker or BSE code): restricts the backtest to its own past signals and lists each with its date and what followed; up to 20 chars |
| `side` | no | bull / bear / neutral | only this side of a signal that has both ('engulfing') |
| `horizon` | no | 1 / 5 / 10 / 21 | sessions after the signal at which the outcome is judged; default 5 |
| `from` | no | string | first signal date, YYYY-MM-DD (default 5 years before the end) |
| `to` | no | string | last signal date, YYYY-MM-DD (default today) |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `sector` | no | string | a sector or industry by name |
| `min_market_cap_cr` | no | number | only companies with at least this market cap today, ₹ crore; 0..10000000 |
| `max_market_cap_cr` | no | number | only companies with at most this market cap today, ₹ crore (small caps: a ceiling, or index 'Nifty Smallcap 250'); 0..10000000 |
| `liquid` | no | liquid / all | liquid names only (default; for one symbol every day is read) or every name the scan read |

### `price_screen`

| Input | Required | Type | Note |
|---|---|---|---|
| `screen` | yes | 52w_high / 52w_low / gainers / losers | - |
| `period` | no | 1d / 1w / 1m / 3m / 6m / 1y / ytd | for gainers and losers: 1d (default), 1w, 1m, 3m, 6m, ytd or 1y |
| `band` | no | large / mid / small / all | default "all" |
| `index` | no | string | an index by name ('NIFTY 50', 'Bank Nifty', 'NIFTY IT'); only that index's members, as the index lists them |
| `min_market_cap_cr` | no | number | for gainers and losers: the smallest market cap, in ₹ crore, a company may have to be ranked. Default 500 for a whole-market screen (the list the home page and market_movers show). 0 ranks every listed company, micro-caps included; 0..10000000 |
| `within_pct` | no | number | for 52w_high or 52w_low: how close, in percent, counts as near (omit for a new high or low); 0..100 |
| `segment` | no | fno | fno: only shares in the futures and options segment |
| `limit` | no | integer | 1..50; default 10 |

### `rank_on_criteria`

| Input | Required | Type | Note |
|---|---|---|---|
| `group` | yes | string | an index ('Nifty 50', 'Nifty Bank'), a sector or industry (it, fmcg, pharma, auto, cement), or banks / psu banks / private banks; up to 60 chars |
| `largest` | no | integer | a sector or industry only: rank its N largest members by market cap; 3..50 |
| `include_small` | no | boolean | true to include small caps where a sector group has a market-cap floor |

### `eqscore_breakdown`

| Input | Required | Type | Note |
|---|---|---|---|
| `symbol` | yes | string | NSE ticker or BSE code; up to 20 chars |

### `sector_scores`

| Input | Required | Type | Note |
|---|---|---|---|
| `sector` | no | string | a scoring sector or a sector word ('banks', 'retail'); omit for the list; up to 80 chars |
| `limit` | no | integer | 1..100; default 25 |

### `market_scores`

| Input | Required | Type | Note |
|---|---|---|---|
| `band` | no | large / mid / small / all | default "all" |
| `order` | no | asc / desc | desc: highest first; default "desc" |
| `limit` | no | integer | 1..100; default 25 |

### `score_movers`

| Input | Required | Type | Note |
|---|---|---|---|
| `days_back` | no | integer | 2..400; default 30 |
| `sector` | no | string | one EqScore sector, as a slug such as banks; omit for all; up to 40 chars |
| `direction` | no | up / down / both | default "up" |
| `limit` | no | integer | 1..50; default 15 |
| `min_market_cap_cr` | no | number | market-cap floor in crore rupees; default 500, 0 for none; 0..10000000 |

### `define_term`

| Input | Required | Type | Note |
|---|---|---|---|
| `term` | yes | string | the term as you would write it, e.g. 'ROCE', 'EV/EBITDA', 'promoter pledge'; up to 200 chars |

### `learn_concept`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | the concept, in your words, e.g. 'how to read RSI'; up to 300 chars |

### `search_basics`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | the question, in your words; up to 300 chars |
| `limit` | no | integer | articles to return, 1 to 3; 1..3; default 2 |

### `sector_guide`

| Input | Required | Type | Note |
|---|---|---|---|
| `sector` | no | string | an industry in words ('cement', 'hospitals') or a guide name from the list; omit for the list; up to 80 chars |

### `find_circular`

| Input | Required | Type | Note |
|---|---|---|---|
| `query` | yes | string | the rule or topic, in your words; up to 300 chars |
| `issuer` | no | sebi / nse / bse | one issuer; omit for all three |
| `since` | no | string | only circulars dated on or after this day, YYYY-MM-DD |

### `send_feedback`

| Input | Required | Type | Note |
|---|---|---|---|
| `message` | yes | string | What the user wants to tell eqdoc, in their words (20 to 5000 characters).; up to 5000 chars |
| `kind` | yes | feedback / bug / data_issue / feature_request | feedback, bug, data_issue or feature_request |
| `symbol` | no | string | The company symbol the feedback is about, if any.; up to 20 chars |
| `tool` | no | string | The name of the eqdoc tool the feedback is about, if any. |
