calculate_401k
Projected 401k balance with employee contributions capped at 24500 per year, plus an employer match, compounded annually. Use when the user projects a 401k with contributions and an employer match. For a general investment projection use calculate_compound_interest; for TSP use calculate_tsp. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive 401k calculator.
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": {
"current_balance": "<current_balance>",
"annual_salary": "<annual_salary>",
"contribution_pct": "<contribution_pct>",
"match_pct": "<match_pct>",
"match_cap_pct": "<match_cap_pct>",
"years": "<years>",
"annual_return_pct": "<annual_return_pct>"
},
"name": "calculate_401k"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Years to project. | |
| match_pct | Yes | Employer match percent of the matched contribution. | |
| annual_salary | Yes | Annual salary in USD. | |
| match_cap_pct | Yes | Percent of salary eligible for the employer match. | |
| current_balance | Yes | Current 401k balance in USD. | |
| contribution_pct | Yes | Employee contribution percent of salary. | |
| annual_return_pct | Yes | Annual return percent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |