calculate_quant_risk_dcf
Compute DCF intrinsic value per share, Half-Kelly position size, and Sharpe ratio or max drawdown from returns to replace LLM arithmetic with deterministic financial calculations.
Instructions
Deterministic institutional finance engine: computes 5-year DCF intrinsic value per share, Half-Kelly optimal position sizing, and Sharpe/Max Drawdown from periodic returns. Eliminates LLM arithmetic errors.
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": {
"mode": "<mode>"
},
"name": "calculate_quant_risk_dcf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Calculation mode: dcf, kelly, or portfolio_stats | |
| wacc | No | DCF: Discount rate decimal (e.g. 0.095 for 9.5%) | |
| fcfBase | No | DCF: Base annual free cash flow (in millions) | |
| netDebt | No | DCF: Net debt in millions (negative for net cash) | |
| returns | No | portfolio_stats: Array of periodic decimal returns (e.g. [0.02, -0.01, 0.035]) | |
| winProb | No | Kelly: Win probability between 0 and 1 (e.g. 0.55) | |
| sharesOut | No | DCF: Diluted shares outstanding in millions | |
| growthRate | No | DCF: Annual FCF growth rate decimal (e.g. 0.12 for 12%) | |
| winLossRatio | No | Kelly: Average win / average loss payoff ratio (e.g. 1.8) | |
| periodsPerYear | No | portfolio_stats: 252 daily, 52 weekly, 12 monthly | |
| terminalGrowth | No | DCF: Perpetual growth rate decimal (e.g. 0.025 for 2.5%) |