Skip to main content
Glama

FreeDailyPro Calculators

calculate_compound_interest

Read-onlyIdempotent

Compound interest calculator

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

Input Schema

NameRequiredDescriptionDefault
yearsYesNumber of years, for example: 30.
frequencyNoFrequency: one of annually, semiannually, quarterly, monthly, daily.
principalYesStarting amount owed or invested as a plain number, for example: 250000.
startDateNoOptional start date, as YYYY-MM-DD. Adds startDate and maturityDate (the date the future value is reached). It only labels the timeline; the amounts do not change.
annualRatePercentYesYearly interest rate in percent, for example: 6.5 for 6.5%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / annualRatePercent / description
      Added value: +"Yearly interest rate in percent, for example: 6.5 for 6.5%."
    • addedInput schema / properties / frequency / description
      Added value: +"Frequency: one of annually, semiannually, quarterly, monthly, daily."
    • addedInput schema / properties / principal / description
      Added value: +"Starting amount owed or invested as a plain number, for example: 250000."
    • addedInput schema / properties / years / description
      Added value: +"Number of years, for example: 30."
  2. Changed1 schema field changed
    • addedInput schema / properties / startDate
      Added value: +{
      +  "description": "Optional start date, as YYYY-MM-DD. Adds startDate and maturityDate (the date the future value is reached). It only labels the timeline; the amounts do not change.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that, leaving unstated whether it returns just a future value or a full breakdown, and how frequency and startDate affect the result.

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

Conciseness2/5

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

Three words with zero waste, but this is under-specification rather than conciseness. There is no front-loaded explanation of inputs, output, or scope to orient the agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, an enum, a bounded date pattern, and no output schema, the description should explain what value is returned and how compounding frequency interacts with the rate. None of that is present, so the definition is thin relative to the tool's actual complexity.

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%, with each parameter documented in-schema including examples, the enum for frequency, and the note that startDate only labels the timeline. The description adds no parameter meaning, but the baseline of 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Compound interest calculator" only restates the tool name and title; it names no verb, no inputs, and no output. It also gives no signal distinguishing it from the sibling calculate_simple_interest, which an agent would plausibly confuse it with.

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 use this versus calculate_simple_interest or calculate_loan, and no prerequisites or exclusions are stated. The agent must infer the compounding-vs-simple distinction entirely from the tool name.

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