Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_compound_interest

Calculate compound interest, future value, total interest earned, and cumulative deposits from principal, annual rate, time horizon, and monthly contributions with deterministic precision.

Instructions

Compound Interest & Capital Growth Calculator. Calculate exponential future value, compound frequency yields, and recurring monthly contribution growth. Discipline: FINANCE. Governing mathematical model / formula: A = P · (1 + r/n)^(n·t) + PMT · [((1 + r/n)^(n·t) - 1) / (r/n)].

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of future_value (Total Future Value), total_interest_earned (Total Compound Interest Earned), total_principal_contributed (Total Cumulative Deposits) using principal (Initial Principal Investment ($) in $), annual_rate_pct (Expected Annual Rate of Return (%) in %), time_years (Investment Horizon (Years) in years), monthly_contribution (Monthly Contribution ($) in $/mo). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Compound Interest & Capital Growth Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "compound-interest"

    • category (string): "finance"

    • name (string): "Compound Interest & Capital Growth Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.future_value (Total Future Value): Formatted display string (e.g. '$454,498')

      • metrics.total_interest_earned (Total Compound Interest Earned): Formatted display string (e.g. '$309,498')

      • metrics.total_principal_contributed (Total Cumulative Deposits): Formatted display string (e.g. '$145,000')

    • execution_time_ms (number): Latency in milliseconds.

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

Input Schema

NameRequiredDescriptionDefault
principalNoInitial Principal Investment ($) ($). Starting capital balance. Default: 25000. Min: 100. Max: 50000000.
time_yearsNoInvestment Horizon (Years) (years). Duration of compounding. Default: 20. Min: 1. Max: 60.
annual_rate_pctNoExpected Annual Rate of Return (%) (%). Compounded annual growth rate. Default: 8.5. Min: 0.5. Max: 40.
monthly_contributionNoMonthly Contribution ($) ($/mo). Additional deposit added each month. Default: 500. Min: 0. Max: 100000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools