Skip to main content
Glama

compound interest

compound_interest
Read-onlyIdempotent

Compound interest: what a starting amount plus monthly contributions grows to at a given annual rate, and how much of the final balance is money paid in versus interest. Compounding monthly unless set. Pure arithmetic, before tax and inflation. Use this for "how much will my savings grow" questions.

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": {
      "ratePct": "<ratePct>",
      "years": "<years>"
    },
    "name": "compound_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesYears
monthlyNoMonthly contribution (default 0)
ratePctYesAnnual interest or return, %
principalNoStarting amount (default 0)
compoundingNoCompounds a year: 1, 4, 12 or 365 (default 12)

Output Schema

NameRequiredDescriptionDefault
nextNoOptional paid follow-on (name, url, what) where it genuinely helps
noteNoWhen the figures were read, and that this is general information, not advice
pageYesThe calculator page to cite or link, https://decisionscalc.com/...
resultYesThe calculation (usually an object), same engine and figures as the calculator page
sourcesYesOfficial source URLs for the figures used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "next": {
      +      "description": "Optional paid follow-on (name, url, what) where it genuinely helps",
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "what": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "note": {
      +      "description": "When the figures were read, and that this is general information, not advice",
      +      "type": "string"
      +    },
      +    "page": {
      +      "description": "The calculator page to cite or link, https://decisionscalc.com/...",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The calculation (usually an object), same engine and figures as the calculator page"
      +    },
      +    "sources": {
      +      "description": "Official source URLs for the figures used",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "result",
      +    "page",
      +    "sources"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: the result is nominal (pre-tax, pre-inflation) and compounding defaults to monthly unless overridden. It does not discuss rounding, currency, or sign conventions, which is a minor residual 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?

Three short sentences, front-loaded with the computation and followed by scope limits and a usage trigger. The leading 'Compound interest:' largely repeats the name/title, which is the only wasted fragment; everything else earns its place.

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?

With annotations covering safety and an output schema covering return values, the description only needs to convey scope and defaults, which it does. What remains unstated — whether results are nominal currency-agnostic figures or how rounding is handled — is minor for a pure-arithmetic calculator.

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 coverage is 100%, with every parameter documented including defaults for monthly, principal and compounding. The description restates those semantics ('starting amount plus monthly contributions', 'annual rate', 'compounding monthly unless set') but adds no syntax, unit, or edge-case detail beyond the schema, so the baseline 3 applies.

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: growth of a starting amount plus monthly contributions at an annual rate, and the split between contributions and interest. It also scopes it as 'pure arithmetic, before tax and inflation', which separates it from tax- or inflation-aware calculators. It does not name any sibling tool explicitly, so differentiation is by scope rather than routing.

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 a clear trigger phrase ('Use this for "how much will my savings grow" questions') and an exclusion via 'before tax and inflation', implying that tax/inflation-modelling questions belong elsewhere. It stops short of naming an alternative tool or stating prerequisites, so an agent must still infer where the boundary lies.

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.