Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Sequence of Returns Calculator

sequence_risk
Read-onlyIdempotent

Sequence of returns calculator with an interactive chart. Runs a list of yearly returns with a fixed yearly withdrawal in the order given and in reverse, and compares where the balance ends.

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": {
      "start_balance": "<start_balance>",
      "annual_withdrawal": "<annual_withdrawal>",
      "returns_pct": "<returns_pct>"
    },
    "name": "sequence_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
returns_pctYesYearly returns in percent, in order, from 1 to 60 years.
start_balanceYesStarting balance in US dollars.
annual_withdrawalYesAmount withdrawn at the start of each year, in US dollars.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety bar is low. The description does add real behavior: two scenarios are run (order given and reversed) against a fixed withdrawal, and the result is a comparison plus an interactive chart. It still does not say what the comparison returns (a single delta, per-year balances, or only the chart), which is the main behavioral gap.

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?

Two sentences, front-loaded with the core computation, with no redundant restatement of the name. 'With an interactive chart' is the only slightly loose phrase, but it does convey output shape.

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 a three-required-parameter, no-output-schema analytic tool with full annotation coverage, the description conveys the computation model and that a comparison is produced. The remaining ambiguity is what the returned comparison looks like, which is a smaller gap given there is no output schema to lean on.

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%, so all three parameters (start_balance, annual_withdrawal, returns_pct) are already documented, including that withdrawal occurs at the start of each year. The description adds only the framing that the withdrawal is fixed and the returns are consumed in the supplied order, which is a modest addition over the schema.

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

Purpose4/5

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

The description states a concrete computation: it runs a list of yearly returns forward and in reverse with a fixed yearly withdrawal and compares ending balances. That is specific enough to separate it from generic growth tools like compound_interest or dca_vs_lump_sum, though it never names an alternative to route against.

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

Usage Guidelines3/5

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

Usage is only implied by the mechanics described (comparing sequence-of-returns outcomes); there is no explicit 'use this when...' statement, no prerequisites, and no guidance on when a sibling such as drawdown_recovery or safe_spending would be the better choice.

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