Portfolio performance
portfolio_performanceThe signed-in user's PRIMARY active portfolio performance by default (archived/deleted excluded): invested cost, current value, total P&L (unrealized + realized), cost-basis return %, time-weighted return vs a benchmark (S&P 500 by default; Nasdaq 100, MSCI World, STOXX 600, Euro Stoxx 50, CAC 40, or a weighted mix), the deepest drop since tracking began and how long it took to recover (deposits and withdrawals taken out), daily equity curve. Use for 'how is my portfolio doing', 'my returns', 'vs the market', 'P&L'. Pass portfolio (a name, or 'all') only when the user asks for the others. Requires the user to be connected. Example: "how did my portfolio do vs the MSCI World?" → benchmark msci_world.
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": "portfolio_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| benchmark | No | Benchmark to compare with (default sp500). Index proxies: SPY, QQQ, URTH, VGK, FEZ, EWQ. | |
| portfolio | No | Optional: a portfolio name, or 'all' for every active portfolio. Defaults to the user's primary — only widen when the user explicitly asks. | |
| benchmark_mix | No | A blended benchmark instead, e.g. [{benchmark:'sp500', weight:60}, {benchmark:'stoxx600', weight:40}]. |
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. |