Risk Parity Weights
workflow.run_risk_parityRisk-parity (equal or custom risk contribution) portfolio weights for N assets: given a covariance matrix (or N return series to compute one from), finds long-only weights where each asset contributes its target share of total portfolio risk. Edge cases: give either returns (at least 2 assets, each series at least 2 values and all the same length) or a square covariance matrix (2 by 2 or larger), never neither; risk_budgets must be positive, finite, one per asset (they are normalized, so they need not sum to 1); an asset with zero or negative variance is an error; non-finite values are an error. Long-only weights. Not covered: shorting, leverage, weight bounds, transaction costs, and estimation error of the covariance (garbage in, garbage out). Use when user asks "what weights give each asset equal risk contribution?" or "how do I risk-parity-weight this portfolio?". A portfolio-construction calculation, not a buy/sell recommendation. Returns: weights, risk_contributions (should match risk_budgets exactly at convergence), portfolio_volatility.
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": "workflow.run_risk_parity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returns | No | One return series per asset (2+ assets, all series the same length). Provide this OR covariance, not both. | |
| covariance | No | Direct NxN covariance matrix, if not supplying returns[][] directly. | |
| risk_budgets | No | Target risk share per asset, one per asset (need not sum to 1, normalized internally). Default: equal (1/N each). |