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 €15/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. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, idempotentHint), and the description goes well beyond them by disclosing server-side execution, ephemeral data handling ("nothing stored"), per-IP rate limits (5 calls/day), and two auth paths (X-API-Key or x402 per-call billing). The mention of "files are deleted right after the call" is slightly incongruous for a tool with no file parameters, and error/response behavior is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded with the useful output summary but is a run-on that mixes results and inputs. The second sentence is dense pricing/access boilerplate that, while operationally relevant, occupies roughly half the definition and crowds out usage guidance.

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 no output schema, the description usefully enumerates the return payload including the year-by-year table, and it covers execution locality, data retention, rate limits, and auth. What remains missing is error/failure behavior and any note on units or rounding for the computed figures.

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 five parameters already carry inline descriptions; the description adds only that monthlyDeposit is optional and restates rate/years/compounding. The enum for compounding frequency is documented in the schema, not expanded on in prose, so the baseline of 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 names a specific computation and enumerates its outputs ("Final balance, total deposits and interest earned") plus the year-by-year table, along with the inputs that drive them. An agent can tell this is a compound-growth calculator rather than a plain loan or mortgage payment tool, though no sibling is explicitly named or ruled out.

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 guidance on when to choose this over adjacent calculators such as loan_calculator, mortgage_calculator, or inflation_calculator. The only conditional language concerns access/pricing tiers and payment methods, not task routing.

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