Skip to main content
Glama

Noema Calculators

SWP Calculator (India): How Long a Corpus Lasts

swp_calculator
Read-onlyIdempotent

Estimates how long a corpus in India lasts with a monthly withdrawal (SWP), the total withdrawn, the corpus left and each year's withdrawal in today's rupees. Supports a yearly increase in the withdrawal, a fixed number of years or running until the money runs out (checked up to 100 years), and an optional accumulation block that builds the corpus with a monthly SIP before withdrawals start, so SIP to SWP runs in one call. Uses a true annual return converted to an equal monthly rate with each withdrawal at the start of the month. Amounts in INR, rates in percent a year. Figures are before tax. To grow a SIP, use sip_calculator.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "swp_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears of withdrawals. Leave out to run until the corpus runs out, checked up to 100 years. Page label: Years of withdrawals.
corpus_inrNoCorpus in INR when withdrawals start. Default 10000000. With accumulation, this is the amount already invested today (default 0) and it grows with the SIP. Page label: Corpus today (₹).
accumulationNoOptional. Build the corpus with a monthly SIP before withdrawals start. Page label: Invest with a SIP before withdrawals.
inflation_pctNoInflation a year in percent, used for withdrawals in today's rupees. Default 6. Page label: Inflation a year (%).
annual_return_pctNoExpected return a year on the corpus during withdrawals, in percent, a true annual rate. Default 9. Page label: Expected return a year (%).
monthly_withdrawal_inrNoMonthly withdrawal in INR in year 1. Default 80000. Page label: Monthly withdrawal (₹).
withdrawal_step_up_pctNoYearly increase in the monthly withdrawal in percent, applied from year 2. Default 0. Page label: Yearly increase in withdrawal (%).

Output Schema

NameRequiredDescriptionDefault
resultYes
cite_asYes
scheduleYes
tax_noteYes
warningsYes
disclaimerYes
assumptionsYes
rate_methodYes
source_pageYes
citation_urlYes
summary_lineYes
applied_defaultsYes
assumptions_as_ofYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this a safe read-only, idempotent computation, and the description adds substantive modeling behavior on top: withdrawals occur at the start of each month, the annual return is a true annual rate converted to an equal monthly rate, runs are capped at 100 years, amounts are INR with percent-per-annum rates, and figures are pre-tax. Those are exactly the assumptions an agent would otherwise have to guess.

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?

It is front-loaded with the purpose and outputs, then moves to capabilities, then modeling conventions, then the sibling pointer — a logical order with no filler. The long capabilities sentence bundles three features together, which is dense but still readable.

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

Completeness5/5

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

For a 7-parameter tool with a nested accumulation object, the description covers the non-obvious modeling assumptions, the optional-vs-required posture of accumulation, the units, and the tax caveat. An output schema exists, so return values need not be specified, and the brief output list is a bonus rather than a gap.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns above that by explaining cross-parameter semantics the schema states only in fragments — that the accumulation block builds the corpus via monthly SIP before withdrawals begin, and that this lets a SIP-to-SWP projection run in a single call. It still leaves per-parameter details (step-up applies from year 2, bounds) to the schema.

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 opens with a specific verb and resource ('Estimates how long a corpus in India lasts with a monthly withdrawal') and enumerates the outputs: duration, total withdrawn, corpus left, and each year's withdrawal in today's rupees. It also names the sibling it is not for ('To grow a SIP, use sip_calculator'), so an agent can distinguish it without opening a 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 clear selection guidance in two places: the accumulation block is flagged as optional and for the 'SIP to SWP in one call' scenario, and pure SIP growth is routed to sip_calculator. It does not, however, contrast with fire_calculator or inflation_calculator, which an agent might also consider for retirement/real-value questions.

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