Financial Calculator
DCF, bonds, options & portfolios
Precise financial math: DCF valuation, WACC with CAPM, bond pricing with duration/convexity, Black-Scholes options with Greeks, loan amortization, present/future value solvers, and portfolio risk metrics (Sharpe, Sortino, max drawdown).
Run a discounted cash flow valuation model. Projects future cash flows to present value and calculates terminal value using Gordon Growth (perpetuity) or exit multiple method.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "dcf_valuation",
"input": {
"cash_flows": [
100,
110,
121,
133,
146
],
"discount_rate": 0.1
}
}' \
https://api.toolrouter.com/v1/tools/callCalculate the weighted average cost of capital from equity value, debt value, cost of equity, cost of debt, and tax rate. Optionally compute cost of equity via the Capital Asset Pricing Model (CAPM).
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "wacc_calculator",
"input": {
"equity_value": 800,
"debt_value": 200,
"cost_of_equity": 0.1,
"cost_of_debt": 0.05,
"tax_rate": 0.21
}
}' \
https://api.toolrouter.com/v1/tools/callValue a bond and compute yield analytics. Provide market_rate to calculate the bond price, or market_price to solve for yield to maturity (YTM). Returns price, YTM, current yield, Macaulay duration, modified duration, and convexity.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "bond_pricing",
"input": {
"face_value": 1000,
"coupon_rate": 0.05,
"years_to_maturity": 10,
"market_rate": 0.06
}
}' \
https://api.toolrouter.com/v1/tools/callValue European options using the Black-Scholes model with optional continuous dividend yield (Merton extension). Returns option price, all five Greeks (delta, gamma, theta, vega, rho), put-call parity, and moneyness.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "option_pricing",
"input": {
"spot_price": 100,
"strike_price": 105,
"time_to_expiry": 0.5,
"risk_free_rate": 0.05,
"volatility": 0.25
}
}' \
https://api.toolrouter.com/v1/tools/callGenerate a loan payment schedule with principal/interest breakdown. Supports monthly, biweekly, and weekly payment frequencies. Optionally model extra payments to see accelerated payoff savings.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "loan_amortization",
"input": {
"principal": 300000,
"annual_rate": 0.065,
"years": 30
}
}' \
https://api.toolrouter.com/v1/tools/callSolve any time value of money problem. Calculate future value, present value, payment, interest rate, or number of periods for lump sums and annuities. Supports ordinary annuities and annuities due.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "time_value",
"input": {
"calculation": "future_value",
"present_value": 10000,
"rate": 0.07,
"periods": 20
}
}' \
https://api.toolrouter.com/v1/tools/callAnalyze portfolio risk and return from an array of periodic returns. Calculates annualized return, volatility, Sharpe ratio, Sortino ratio, max drawdown, Calmar ratio, skewness, and kurtosis. With benchmark returns, also computes beta, alpha, tracking error, information ratio, and R-squared.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "financial-calculator",
"skill": "portfolio_metrics",
"input": {
"returns": [
0.02,
-0.01,
0.03,
0.01,
-0.02,
0.04,
0.01,
-0.03,
0.02,
0.03,
-0.01,
0.02
]
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"financial-calculator","skill":"dcf_valuation","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
Can it value a company with DCF and WACC?
Yes. `dcf_valuation` discounts projected cash flows and terminal value, and `wacc_calculator` builds the discount rate from equity, debt, and CAPM inputs when needed.
Can it price bonds or solve for yield to maturity?
`bond_pricing` can either price a bond from market rate or solve for YTM from market price, and it also returns duration, convexity, and current yield.
Can it handle options and Greeks?
`option_pricing` uses Black-Scholes for European options and returns the price plus delta, gamma, theta, vega, and rho.
Can it calculate loans, time value, and portfolio risk?
Yes. `loan_amortization` builds payment schedules, `time_value` solves for PV, FV, payment, rate, or periods, and `portfolio_metrics` reports Sharpe, Sortino, drawdown, beta, and alpha.