Compare portfolios side by side
compare_portfoliosTwo to eight separate portfolios on one shared window of prices. In: {label: {ticker: weight}}. Out: growth, volatility, worst fall, and how each moved against the others. Typical questions: 'Compare 60/40 with an all-world fund.'; 'Which of these three mixes fell less in 2022?'; 'Put my portfolio next to the S&P 500.'. Instead: for one portfolio before and after a change, test_a_change or check_before_you_buy. It does not recommend, predict or calculate tax.
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": {
"portfolios": "<portfolios>"
},
"name": "compare_portfolios"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Currency code every figure is expressed in: USD, EUR, GBP, CAD… Default USD. | |
| portfolios | Yes | Two to eight portfolios, {label: {ticker: weight}}. Labels are shortened to letters and digits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Shared window end. | |
| data | No | Where the prices came from and what was missing or repaired. | |
| start | No | Shared window start. | |
| _fence | Yes | What these figures are and are not: descriptive, no forecast, no advice. Repeat its sense when presenting the result. | |
| series | No | Per portfolio label: the growth path over the window. | |
| metrics | No | Per portfolio label: growth, volatility, worst fall and related figures. | |
| correlation | No | Per pair of labels: how the portfolios moved together. |