calculate_portfolio_risk
Calculate portfolio variance and standard deviation from asset weights, standard deviations, and correlations to evaluate diversification benefit.
Instructions
Calculate portfolio risk (variance and standard deviation). Shows diversification benefit. correlations: NxN matrix, e.g., [[1, 0.3], [0.3, 1]].
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": {
"weights_json": "<weights_json>",
"std_devs_json": "<std_devs_json>",
"correlations_json": "<correlations_json>"
},
"name": "calculate_portfolio_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weights_json | Yes | ||
| std_devs_json | Yes | ||
| correlations_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |