finance
Calculate compound growth, loan payments, NPV, IRR, CAGR, real returns, and doubling time using percentage rates; performs arithmetic only, not advice.
Instructions
Money math, rates in %: compound (contributions, inflation), loan (payment, interest, amortization), npv, irr, cagr, real_rate, doubling. Arithmetic, not advice.
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": {
"op": "<op>"
},
"name": "finance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| rate | No | % per year (npv/irr: per period) | |
| years | No | ||
| months | No | loan payments | |
| cashflows | No | from t=0 | |
| end_value | No | ||
| inflation | No | % | |
| principal | No | ||
| compounding | No | per year, default 12 | |
| start_value | No | ||
| contribution | No | per period | |
| periods_per_year | No | loan, default 12 | |
| contribution_at_start | No |