get_sector_price_performance
Price returns by sector over 1 day, 1 week, 1 month, 3 months, 6 months, 12 months and the year to date. Each row gives both the median company's return and the market-cap-weighted return. Use it for questions like "which sectors are leading this month" or "how has Energy done YTD, S&P 500 vs the rest".
Both filters are optional. sp_index=true covers only S&P 500 members, false covers only
companies outside the S&P 500, and leaving it out covers all of them. Unset filters are
left out of the request.
Returns {"filters", "count", "rows", "note"}, one row per sector. A row is {sector,
universe, as_of, n_symbols, median_return_1d … _ytd, mcap_weighted_return_1d … _ytd}
(windows 1d, 1w, 1m, 3m, 6m, 12m, ytd).
- Returns are in PERCENT, NOT fractions: 1.25 = +1.25%, -3.4 = -3.4%. Show them as they
are; do not multiply by 100.
- The median shows the typical company. The market-cap-weighted figure is driven by the
largest names. When the two differ a lot, a few mega-caps are carrying (or dragging)
the sector.
- as_of is the date the returns are measured to. n_symbols is the number of companies
behind the row.
FLOW: pair with get_sector_volume_performance to see whether a move came on rising volume.
Use get_earnings_season_cohort(sector=...) to find the companies behind a move.
An empty result is a valid answer, not an error: `note` is set only then. A 422 means a
filter failed validation. A 401 means the sign-in expired (your MCP client re-runs
OAuth). A 429 means the rate limit or the plan quota was hit. Requires auth (your MCP
client attaches the OAuth bearer automatically); counts toward plan quota.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sector_price_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sectors | No | Only these sectors, e.g. ["Technology", "Energy"]. Omit for all 11. | |
| sp_index | No | true = only S&P 500 members; false = only non-members. Omit for both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Set only when no rows came back: an empty result is a valid answer. | |
| rows | Yes | ||
| count | Yes | Rows returned, one per sector. | |
| filters | Yes | The request body sent to the backend (unset filters omitted). |