canli-mcp / Quant finance

Portfolio VaR and expected shortfall

Compute a positions portfolio's historical and parametric (normal) value at risk and expected shortfall from asset return history, with each position's contribution and the diversification benefit.

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

Arguments

As the server declares them
ArgumentRequiredType
positionsyesnumber[]
returnsyesnumber[][]
confidencenonumber
horizonnointeger
namesnostring[]

How a model reaches it

Ask in plain words. The model finds portfolio_var 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": "portfolio_var",
  "arguments": {
    "positions": "<number[]>",
    "returns": "<number[][]>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to portfolio_var on these words: portfolio, var, value, at, risk, expected, shortfall, cvar, component, contribution, historical, parametric, diversification, positions.

Recorded questions that use it

Each page shows the call and the full answer it returned, recorded with no API key.

More

Nothing here is investment advice.