Skip to main content
Glama

calculate compound interest

calculate_compound_interest
Read-onlyIdempotent

Simulates compound interest growth with initial principal, annual yield, recurring monthly contributions, and annual balance trajectory.

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>",
      "rate": "<rate>",
      "years": "<years>"
    },
    "name": "calculate_compound_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYesAnnual return / interest rate in percent (e.g. 7 for 7%)
yearsYesInvestment duration in years (maximum 100)
principalYesInitial lump sum principal investment amount in KRW or local currency
monthlyContributionNoOptional monthly recurring savings or investment amount
compoundingFrequencyNoCompounding cycle (default monthly)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds useful model-level context: growth is driven by monthly recurring contributions and the result is an 'annual balance trajectory', which matters because there is no output schema. It does not disclose compounding defaults or precision/rounding behavior beyond that.

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 front-loaded sentence with no filler, moving from action to resource to inputs to output shape. It is dense but every clause carries information; the only weakness is that the output clause ('annual balance trajectory') is buried at the end.

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 compensates by naming the return shape as an annual balance trajectory, and the fully documented five-parameter schema carries the input burden. What is missing is minor: no statement of when compounding applies to contributions or what currency is assumed in results.

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 each parameter already documented (rate in percent, years max 100, principal in KRW or local currency, optional monthlyContribution, compoundingFrequency default monthly). The description restates the parameter set at a high level but adds no new semantics such as rate/period units beyond what the schema states, 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?

States a specific verb ('Simulates') and resource ('compound interest growth') and enumerates the four inputs that drive the model (principal, annual yield, monthly contributions, balance trajectory). An agent can tell this apart from calculators in the sibling set that compute taxes, salary, or leave, though no sibling is named as a contrast.

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 explicit when-to-use or when-not-to-use guidance, and no alternative tool is referenced (e.g., nothing that separates a growth projection from calculate_cagr). The word 'Simulates' weakly implies a forward-looking projection, but the agent must infer that.

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.