calculate_compound_interest
Calculate the future value of a lump sum investment with compound interest. Input principal, annual rate, and duration to get final amount, total interest, and yearly breakdown.
Instructions
Compute compound growth of a lump sum with A = P·(1+r/n)^(n·t). Use for savings, investment or retirement projections without periodic contributions. Inputs: principal (initial amount), annual_rate (annual rate in percent), years (duration), optional compounds_per_year (compounding frequency, default annual). Returns final amount, total interest earned and a yearly breakdown. Read-only, deterministic. For loans/repayments use calculate_loan_payment or calculate_mortgage instead.
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 |
|---|---|---|---|
| years | Yes | Investment duration in years | |
| principal | Yes | Initial amount | |
| annual_rate | Yes | Annual interest rate in % | |
| compounds_per_year | No | Compounding frequency per year |