Skip to main content
Glama

MaliMoney Calculators

Compound Interest

compound_interest
Read-onlyIdempotent

Projects the future value of a starting balance and monthly contributions with monthly compounding. Use to estimate investment growth over a specified time horizon.

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": "compound_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoInvestment horizon in years, converted to a rounded number of months; defaults to 0.
principalNoStarting invested balance in dollars; defaults to 0.
annualRatePctNoAnnual return percentage divided by 12 for monthly compounding, expressed as 7 for 7%, not 0.07; defaults to 7.
monthlyContributionNoContribution in dollars at the end of each month; defaults to 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so safety profile is covered. The description adds one genuine behavioral fact beyond them: monthly compounding frequency. It does not disclose what the projection returns (a single future value? a schedule?), whether contributions are end-of-month, or that the calculation is deterministic with no side effects.

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?

Two tight sentences with the calculation model front-loaded and the use case second; nothing is wasted. The slight overlap between 'projects the future value' and 'estimate investment growth' is the only redundancy, keeping it just below a 5.

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?

A simple deterministic calculator with four optional, fully documented parameters and no output schema. The description covers the calculation model, the key compounding assumption, and the intended use, which is everything an agent needs to invoke it correctly.

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% and every parameter documents its units, defaults, and the 7-vs-0.07 percentage convention, so the schema carries the burden. The description mentions 'starting balance and monthly contributions' and 'monthly compounding' but adds no format, unit, or default information beyond what the schema already states. Baseline 3 is appropriate.

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?

States a specific verb and resource: 'Projects the future value of a starting balance and monthly contributions with monthly compounding.' An agent can tell this is a compound-interest projection rather than a loan, tax, or withdrawal calculator. It does not name a sibling (e.g. cd_hysa_growth, growth_401k, savings_goal) to sharpen the boundary, so it stops short of a 5.

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

Usage Guidelines3/5

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

The second sentence gives an implied use case ('estimate investment growth over a specified time horizon'), which is enough to pick the tool for a generic growth projection. There is no explicit when-not guidance and no routing to the many overlapping growth calculators in the sibling list, so selection among them is left to inference.

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