Skip to main content
Glama

tvm-fund

calculate_future_value_of_annuity

Read-onlyIdempotent

Calculate the future value of an ordinary annuity: what a series of equal payments made at the END of each period grows to, compounding at a given rate. Formula: Annuity FV = PMT x ((1 + r)^n - 1) / r. WHEN TO USE: Use to project the accumulated value of a regular savings/contribution stream — e.g. annual fund contributions, lease income reinvested at cost of capital, or the terminal size of a periodic investment programme. WHEN NOT TO USE: Do NOT use for payments at the START of each period (annuity due — adjust by multiplying by (1 + r)), for a single lump sum (use calculate_future_value), or for present value (use calculate_annuity_present_value). BEHAVIOUR: pure deterministic calculation — no side effects, no network or storage access; idempotent and non-destructive; identical inputs always produce identical outputs. Division by zero, non-finite inputs, or mathematically undefined combinations return an explicit error instead of a number. RETURNS: JSON object { future_value_of_annuity: number (currency), inputs }. PARAMETERS: payment (required): Payment amount per period, e.g. 50000. Must be > 0 for a normal contribution annuity. rate (required): Periodic return rate as a decimal, e.g. 0.08 = 8% (never pass percentage points). Use rate = 0 to just sum the payments. periods (required): Number of payments/periods, e.g. 10. Must be >= 1.

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": {
      "payment": "<payment>",
      "rate": "<rate>",
      "periods": "<periods>"
    },
    "name": "calculate_future_value_of_annuity"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYesPeriodic return rate as a decimal, e.g. 0.08 = 8% (never pass percentage points). Use rate = 0 to just sum the payments.
paymentYesPayment amount per period, e.g. 50000. Must be > 0 for a normal contribution annuity.
periodsYesNumber of payments/periods, e.g. 10. Must be >= 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing error semantics (division by zero, non-finite inputs, undefined combinations return an explicit error rather than a number), which the annotations do not convey. It does restate the readOnly/idempotent/non-destructive profile already declared in annotations, which is mild redundancy, but the failure-mode disclosure is genuinely additive.

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?

Well structured with labelled WHEN TO USE / WHEN NOT TO USE / BEHAVIOUR / RETURNS / PARAMETERS sections, and the core definition and formula are front-loaded. Slightly long due to the PARAMETERS block repeating schema content and the behaviour sentence restating annotation hints, but nothing is truly wasted.

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?

With no output schema available, the RETURNS section supplies the response shape ({ future_value_of_annuity, inputs }), and the error behavior plus the rate=0 edge case cover the remaining call-time ambiguity. Nothing an agent needs to invoke this correctly is missing.

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 the parameters are already fully documented. The description's PARAMETERS block largely mirrors the schema text (rate as decimal, payment > 0, periods >= 1) without adding new units, ranges, or edge-case guidance beyond what the schema states, so the baseline 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?

States a specific verb and resource ('Calculate the future value of an ordinary annuity'), then disambiguates the exact variant by defining payments at the END of each period and giving the formula. An agent can distinguish it from calculate_annuity_present_value or calculate_future_value without opening any schema.

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

Usage Guidelines5/5

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

Explicit WHEN TO USE block with three concrete example scenarios (fund contributions, lease income, periodic investment programme), plus a WHEN NOT TO USE block that names the sibling alternatives (calculate_future_value, calculate_annuity_present_value) and even states the annuity-due correction. Both inclusion and exclusion conditions are covered.

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