Skip to main content
Glama

Lookup Kit

compound_interest

Read-only

Compound interest calculator, savings and investment growth. Future value with compound interest: starting amount, annual rate (%), years, compounding per year, optional regular contribution per period (added at the end of each period). Returns final balance, total contributed and interest earned, with a year-by-year table. Price: $0.001 per call (x402, USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
yearsYes
per_yearNo
principalYes
annual_rateYes
contributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; on top of that the description discloses the return payload (final balance, total contributed, interest earned, year-by-year table) and the payment model ($0.001 per call via x402, USDC on Base), which is materially useful cost/side-effect information an agent cannot get from annotations. It also states the contribution timing convention ("added at the end of each period").

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?

A single dense paragraph that front-loads purpose, then the formula inputs, then outputs, then price — no filler sentences. It is slightly packed, but every clause carries information.

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 correctly spells out return values, and it covers all inputs despite zero schema coverage. Minor gaps remain around the exact compounding convention (whether annual_rate is nominal and divided by per_year) and rounding, which matter for a financial calculation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden, and it effectively documents all five parameters: principal as starting amount, annual_rate as a percentage, years, per_year as compounding frequency, and contribution as an optional per-period deposit added at period end. It omits edge semantics such as negative rates (allowed down to -100) or unusual per_year values.

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 opens with a specific verb+resource ("Compound interest calculator") and further pins down the model: starting amount, annual rate, years, compounding per year, optional per-period contribution. It is unambiguous what the tool computes, though it makes no attempt to position itself against any sibling calculator.

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?

Usage context is only implied by "savings and investment growth"; there is no explicit when-to-use or when-not-to-use statement and no named alternative for related computations (e.g., simple interest or loan amortization). An agent can infer the domain but gets no routing 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