---
title: "analyze: Analyze data across companies — eqdoc MCP tool"
description: "Any calculation across companies: returns, rankings, medians, multi-condition screens and charts. A tool in eqdoc's MCP server for Indian stocks."
url: "https://eqdoc.com/mcp/tools/analyze"
---

# analyze: Analyze data across companies

Any calculation across companies: returns, rankings, medians, multi-condition screens and charts.

## What it returns

The result of the calculation you describe across companies, sectors or indices: a table, a ranking, a figure or a chart series.

## Inputs

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

## Example questions

- Which Nifty 500 companies rose more than 30% in a year and have receivables below 10% of sales?
- What is the median P/E of each sector?
- Rank the Nifty Bank members by one-year return.

## Related tools

- [screen](https://eqdoc.com/mcp/tools/screen): Filter every listed company with simple conditions, like a stock screener.
- [rank_on_criteria](https://eqdoc.com/mcp/tools/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.
- [price_screen](https://eqdoc.com/mcp/tools/price_screen): Ranked lists across the market: new 52-week highs and lows, top gainers and losers over a chosen period.
- [price_history](https://eqdoc.com/mcp/tools/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).

## Data freshness

Prices and indicators are end of day, as of the last close. Company figures are as filed, each with its date. There are no live prices.

## More

- Part of the [Screening](https://eqdoc.com/mcp/tools#g-screening) group in the [tool reference](https://eqdoc.com/mcp/tools).
- [Set up the eqdoc MCP server](https://eqdoc.com/mcp) in Claude, ChatGPT, Cursor and other AI apps.
- [Limits and what each message means](https://eqdoc.com/mcp/docs/limits)

## Main sections

- [Home: ask the research desk](https://eqdoc.com/)
- [Stock screener](https://eqdoc.com/screener)
- [EqScore](https://eqdoc.com/eqscore)
- [Exchange filings](https://eqdoc.com/filings)
- [Results calendar](https://eqdoc.com/results-calendar)
- [Bulk and block deals](https://eqdoc.com/deals)
- [Stocks: the largest companies and A to Z](https://eqdoc.com/stocks)
- [Sectors](https://eqdoc.com/sectors)
- [Sector reading guides](https://eqdoc.com/guides)
- [Pricing](https://eqdoc.com/pricing)
- [Accuracy and verification](https://eqdoc.com/accuracy)
- [About eqdoc](https://eqdoc.com/about)
- [MCP server for AI tools](https://eqdoc.com/mcp)
- [Contact](https://eqdoc.com/contact)
