Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Retirement Withdrawal Calculator

safe_spending
Read-onlyIdempotent

Retirement withdrawal calculator with an interactive chart. Finds the highest monthly spending that lasted in at least a chosen share of real US market history since 1928. Use it when the spending amount is the unknown, for retirement income questions, and to check the 4% rule.

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>",
      "share": "<share>"
    },
    "name": "safe_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge today, in whole years, from 18 to 100.
shareYesShare of past periods the money must last in, from 0.5 to 1.
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.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds that results come from a historical backtest of real US market returns since 1928 and are gated by a success-share threshold, but it omits the caveat that this is a historical simulation rather than a forecast and says nothing about failure modes when the horizon exceeds available data.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core computation, followed by the success criterion and then the usage routing. The mention of an 'interactive chart' is the only near-incidental detail, and it is useful because no output schema exists to convey the result form.

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?

For an 8-parameter, fully-described, non-destructive calculator this is largely sufficient: purpose, methodology and selection guidance are all present. The remaining gap is that no output schema exists, and the description only implies the return — a single monthly spending figure plus a chart — without stating what else comes back or how the age/retire_age/end_age interplay constrains valid inputs.

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% with all 8 required parameters documented, including ranges for age, share, stock allocation and end_age. The description adds no parameter-level meaning beyond the schema — its reference to a 'chosen share' simply echoes the documented 'share' field — so the baseline of 3 applies.

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?

The description names a concrete operation — 'Finds the highest monthly spending that lasted in at least a chosen share of real US market history since 1928' — rather than restating the title's 'calculator'. It also distinguishes the tool from the planning sibling by noting it applies 'when the spending amount is the unknown', so an agent can tell it apart without opening the schema.

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?

It gives explicit selection cues: use it when the spending amount is unknown, for retirement income questions, and to sanity-check the 4% rule. What it lacks is a negative condition or a named alternative (e.g. retirement_plan) for the opposite case where spending is known and the portfolio outcome is the unknown.

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