Skip to main content
Glama

MaliMoney Calculators

Monte Carlo Retirement

monte_carlo_retirement
Read-onlyIdempotent

Stress-test the retirement plan across thousands of randomized market paths. Returns success rate WITH a 95% confidence interval, ending-balance percentiles, worst drawdown, and CVaR (average ending balance of the worst 5% of paths). Use when the user asks 'what are the odds', 'what's my success rate', 'what if markets crash', or wants a probability-based retirement analysis. For crash / bad-timing / sequence-of-returns questions set returnModel='block_bootstrap' (resamples real market history — fat tails + bad-streak clustering — more realistic than the default normal model). Quote the success rate with its CI, and cite CVaR for 'how bad could it get'.

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": {
      "currentAge": "<currentAge>",
      "currentBalance": "<currentBalance>",
      "targetRetireAge": "<targetRetireAge>",
      "targetAnnualSpend": "<targetAnnualSpend>"
    },
    "name": "monte_carlo_retirement"
  }
}

Input Schema

NameRequiredDescriptionDefault
endAgeNo
stdDevPctNo
currentAgeYes
iterationsNo100-5000.
ssStartAgeNo
returnModelNoReturn model. Default 'normal'. Use 'block_bootstrap' for crash/sequence-of-returns questions; 'student_t' for parametric fat tails.
inflationPctNo
annualSavingsNo
meanReturnPctNo
ssMonthlyAt67No
currentBalanceYes
targetRetireAgeYes
targetAnnualSpendYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), so the description's job is to add context — and it does: it discloses the exact output contents including a confidence interval and CVaR, and explains why block_bootstrap is more realistic than the default normal model. It says nothing about runtime cost of large iteration counts or how failure/edge inputs are handled, which keeps it at 4.

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 the core action, then usage triggers, then the model-selection caveat, then output guidance — a sensible ordering with little filler. The closing instruction about quoting the CI and citing CVaR is presentational rather than definitional, which slightly stretches conciseness.

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

Completeness3/5

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

Return values are well covered despite the absence of an output schema, and the key modeling decision is explained. However, for a 13-parameter simulation with no output schema and near-zero schema documentation, the description leaves too many inputs (savings, Social Security, inflation, allocation volatility) and their units unexplained for an agent to configure confidently without guessing.

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

Parameters2/5

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

Schema description coverage is only 15% across 13 parameters, so the description must compensate and largely does not. It adds real meaning only for returnModel (block_bootstrap resamples real history with fat tails; student_t for parametric fat tails); the other parameters — meanReturnPct, inflationPct, stdDevPct, annualSavings, ssMonthlyAt67, ssStartAge, endAge, iterations — are undocumented in both schema and description, leaving units and semantics to be guessed.

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 ('stress-test the retirement plan across thousands of randomized market paths') and immediately clarifies that it is a probabilistic simulation rather than a deterministic readiness check, which distinguishes it from the many single-scenario siblings in the catalog. The enumeration of return values (success rate + CI, percentiles, drawdown, CVaR) further pins down what the tool produces.

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 explicit trigger phrases ('what are the odds', 'what's my success rate', 'what if markets crash') and a conditional routing rule for returnModel='block_bootstrap' on crash/sequence-of-returns questions. It does not name a sibling alternative such as retirement_readiness or say when not to use it, so it stops short of the top score.

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