Skip to main content
Glama

Compound Interest Calculator API - growth with monthly deposits

compound_interest_calculator
Read-onlyIdempotent

Final balance, total deposits and interest earned with yearly rate, years, optional monthly deposit and compounding frequency, plus the year-by-year table. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/compound-interest-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "years": 10,
      "ratePercent": 5,
      "startAmount": 10000,
      "monthlyDeposit": 200
    },
    "name": "compound_interest_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears
compoundingNoTimes per year: 12, 4, 1 or 36512
ratePercentNoYearly interest rate in %
startAmountNoStarting amount
monthlyDepositNoAdd every month (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / years / minimum
      Added value: +0
  2. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, and the description adds meaningful context beyond them: the calculation runs server-side, no data is stored, and there is a hard rate limit of 5 calls/day per IP with named auth (X-API-Key) and payment alternatives. The 'files are deleted right after the call' clause is boilerplate that doesn't fit a fileless numeric calculator, a small imprecision.

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?

One front-loaded paragraph that leads with what is computed and what it accepts before moving to operational details. The pricing and URL details are somewhat long, but they are actionable access information rather than filler.

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 five optional parameters, an output-less schema, and no output schema, the description does the necessary work by enumerating the returned figures including the amortization-style yearly table. What remains unstated is response shape detail (field names, units, rounding), which keeps it short of complete.

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 the enum for compounding and defaults already documented in the schema, so the baseline is 3. The description restates the parameter set at a high level but adds no units, edge-case behavior (e.g. years=0, monthlyDeposit=0), or sign conventions beyond what the schema supplies.

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 names the concrete outputs (final balance, total deposits, interest earned, year-by-year table) and the drivers (yearly rate, years, optional monthly deposit, compounding frequency), so the agent knows exactly what computation the tool performs. It does not explicitly contrast itself with the sibling loan_calculator or percentage_calculator, so full sibling differentiation is missing.

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

Usage Guidelines2/5

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

There is no statement of when to prefer this tool over loan_calculator or percentage_calculator, nor any prerequisites or exclusions. The only conditional guidance concerns access tiers (free 5 calls/day, API key, or x402 per-call payment), which is billing routing rather than usage selection guidance.

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