Portfolio stress test
stress_testStress-test the signed-in user's portfolio (PRIMARY by default): the standard scenarios plus the ones asked — a market move (market_pct, e.g. -10), a sector move (sector + sector_pct, e.g. Technology -20), one holding's move (ticker + ticker_pct), or a real past session replayed on today's weights (replay_date, up to 5 years back). Estimates from each line's beta and real past returns, in value and percent — never a forecast. Free: no analysis credit. Requires the user to be connected. Example: "what happens to my portfolio if tech drops 20%?" → sector Technology, sector_pct -20.
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": "stress_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sector | No | Sector to shock, e.g. Technology, Energy, Healthcare. | |
| ticker | No | One holding to shock, e.g. NVDA. | |
| portfolio | No | Optional: a portfolio name, or 'all'. Defaults to the primary portfolio. | |
| market_pct | No | S&P 500 move to apply, in percent (e.g. -10). | |
| sector_pct | No | Move applied to that sector's holdings, in percent. | |
| ticker_pct | No | Move applied to that holding, in percent. | |
| replay_date | No | A past session to replay, YYYY-MM-DD (e.g. 2025-04-04). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false on an error; then `error` says what happened and what to do. | |
| card | No | The in-chat InvestIQ card, in English and French. | |
| data | No | The tool's own result fields. | |
| tool | Yes | ||
| as_of | Yes | ISO time the data was computed (a stored analysis: when it was computed). | |
| error | No | ||
| links | No | InvestIQ pages for this result. | |
| degraded | No | true when part of the data was missing. | |
| viz_spec | No | The recommended chart's series (data only). | |
| disclaimer | Yes | ||
| data_quality | No | What was requested, what was used, and why anything was left out. |