Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Retirement Calculator

retirement_plan
Read-onlyIdempotent

Retirement calculator with an interactive chart of the balance by age. Replays a plan through every complete stretch of real US market history since 1928 and reports how often the money lasted. Use it when the monthly spending is known, for questions like can I retire at 60, or how long will my savings last. People ask for it as "retirement calculator", "how much money do i need to retire" or "can i retire at 62".

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": {
      "age": "<age>",
      "retire_age": "<retire_age>",
      "end_age": "<end_age>",
      "savings": "<savings>",
      "save_monthly": "<save_monthly>",
      "other_income": "<other_income>",
      "stock": "<stock>",
      "spend_monthly": "<spend_monthly>"
    },
    "name": "retirement_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge today, in whole years, from 18 to 100.
stockYesShare held in stocks, from 0 to 1. The rest is in 10-year US Treasuries.
end_ageYesAge the money must last to. It must be above retire_age, and the span from age must fit in the data since 1928.
savingsYesMoney saved so far, in US dollars.
retire_ageYesAge when saving stops and spending starts. It cannot be below age.
other_incomeYesMonthly income in retirement from other sources, such as Social Security, in today's dollars.
save_monthlyYesDollars added each month until retirement.
spend_monthlyYesMonthly spending in retirement, in today's dollars.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description is free to add what they cannot: the methodology (replay across every complete stretch of US market history since 1928), the headline metric (how often the money lasted), and the chart output. It does not detail the response shape beyond that, but the core behavioral model is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with capability and methodology, then when-to-use, then user phrasings. The trailing alias list ("retirement calculator", "how much money do i need to retire") is mildly redundant with the first sentence but earns its place as query-matching signal; otherwise there is no waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 required numeric parameters, no annotations gap, and no output schema, the description does the work of explaining what comes back: a backtest success rate and a balance-by-age chart. A note on result fields or the meaning of the success rate alone would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every property is documented with bounds and units, so the schema carries parameter meaning. The description adds only framing that maps spend_monthly to the gating condition and clarifies the planning horizon, with no extra detail on stock/bond split, other_income treatment, or the since-1928 span constraint beyond what end_age already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (retirement calculator that replays a plan through real US market history since 1928 and reports survival rate) plus an output artifact (balance-by-age chart). It also scopes itself against the family of planners by saying it is the tool for when monthly spending is known, which separates it from spending-solver siblings like plan_retirement_spending.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit entry condition ("Use it when the monthly spending is known") and concrete example questions ("can I retire at 60", "how long will my savings last") that an agent can pattern-match a user request against. It stops short of naming the alternative to use when spending is *not* known, so the exclusion is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources