canli-mcp / Markets

Portfolio scenarios: macro shocks and past crises

A portfolio's holdings under a macro shock or a past crisis. Shock some of eight factors (US stocks, the 2- and 10-year Treasury yields, the Baa-Aaa spread, oil, the dollar, gold, the VIX) and the rest move as history says they do alongside, with a 90% range; or replay a crisis (2008, 2020, 2022 and eight more) beside each holding's actual return then, with the model's error. Betas from weekly returns over the last years. Local server (prices).

The tool is scenario_risk in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-markets-mcp, which canli-mcp includes, and it is also its own server.

Arguments

As the server declares them
ArgumentRequiredType
holdingsyes{symbol,weight}[]
shocksno{equities,rates_2y,rates_10y,credit_spread,oil,dollar,gold,volatility}
scenarionodotcom_bust|bank_crisis|debt_ceiling_2011|taper_tantrum|...
yearsnointeger
horizon_weeksnointeger
portfolio_valuenonumber

How a model reaches it

Ask in plain words. The model finds scenario_risk with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:

{
  "name": "scenario_risk",
  "arguments": {
    "holdings": "<{symbol,weight}[]>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to scenario_risk on these words: what, happens, to, my, portfolio, if, stocks, fall, market, drop, selloff, loss, holdings, in, a, crisis, replay, 2008, on, macro, scenario, shock, rates, rise, 100bp, yields, spike, oil, dollar, rally, gold, credit, spreads, widen, vix, recession, crash, 2020, 2022, historical, hypothetical, factor, conditional, aladdin, risk, model, stress, estimate, sensitivity, betas.

More

Nothing here is investment advice.