calculate_compound_interest
Compute the future value of a lump-sum investment using compound interest. Supports any currency and compounding frequency (monthly, quarterly, annual).
Instructions
Compute the future value of a single lump-sum investment at compound interest. Universal — no country specifics. Example queries: 'What will ₹1L grow to in 10 years at 7%?', 'future value of $5000 invested at 8% annually for 20 years compounded monthly'.
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": {
"principal": "<principal>",
"annual_rate": "<annual_rate>",
"years": "<years>"
},
"name": "calculate_compound_interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | Initial deposit amount (any currency). | |
| annual_rate | Yes | Decimal annual interest rate, e.g. 0.07 for 7%. | |
| years | Yes | Time horizon in years. | |
| compounding_per_year | No | Compounding frequency: 12=monthly (default), 4=quarterly, 1=annual. |