compare_to_sector
Compare a stock’s return with its sector index and the Nifty 50 over a chosen period to tell whether a move reflects a market/sector pullback or company-specific news.
Instructions
Has this stock fallen (or risen) more or less than its sector and the market? Separates a market/sector pullback from a company-specific move.
Compares the stock's close-to-close return against its sector index
(auto-picked from its Screener sector, e.g. Nifty Auto, Nifty IT, Nifty
India Defence) and the Nifty 50, over days calendar days plus 7/30/90-day
context windows. Also returns beta and correlation vs the sector, drawdown
from the window high, and a plain-language verdict.
symbol: NSE/BSE symbol days: window in calendar days (5-365, default 30) benchmark: optional index override — nifty50, nifty500, bank, it, auto, pharma, fmcg, metal, realty, energy, defence, chemicals, ...
Examples: compare_to_sector("MSUMI", days=60) compare_to_sector("HDFCBANK", benchmark="private_bank")
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": {
"symbol": "<symbol>"
},
"name": "compare_to_sector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| symbol | Yes | ||
| benchmark | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||