portfolio_risk
Compute a credit portfolio's loss distribution, including expected loss, value-at-risk, expected shortfall, economic capital, concentration, and top risk contributors from loan and settings files.
Instructions
Loss distribution of the whole portfolio: expected loss, standard deviation, and at each confidence level value-at-risk, expected shortfall and economic capital; plus concentration by sector, the ten largest risk contributors, the checks that were run and the steps taken.
`settings` is a JSON file: method ("simulation" or "creditriskplus"), confidence levels, correlation
(model "single" with rho, "basel_corporate", or "sector" with within/between), scenarios and seed.
`overrides` replaces single settings by dotted key, e.g. {"correlation.rho": 0.25, "scenarios": 400000}.
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": {
"loans": "<loans>",
"settings": "<settings>"
},
"name": "portfolio_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loans | Yes | ||
| settings | Yes | ||
| overrides | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||