What-if on my portfolio
simulate_changesWhat-if on the signed-in user's portfolio (PRIMARY by default): the user names target weights for some holdings — 0 takes one out, a new ticker comes in — and the other holdings keep their proportions in what is left. Shows beta, volatility, 1-month VaR, concentration, the largest line and the sector weights before and after. Simulates only the changes named, never proposes any; past prices, not a forecast. Free. Requires the user to be connected. Example: "what if NVDA were 10% and I had no TSLA?" → changes [{ticker:'NVDA', target_weight_pct:10}, {ticker:'TSLA', target_weight_pct:0}].
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": {
"changes": "<changes>"
},
"name": "simulate_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Target weights, in percent of the portfolio. | |
| portfolio | No | Optional: a portfolio name, or 'all'. Defaults to the primary portfolio. |
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. |