Skip to main content
Glama

FreeDailyPro Calculators

converters_loan_interest

Read-onlyIdempotent

Loan and interest calculator: loan payments, simple interest and compound interest with contributions in one endpoint

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": {
      "kind": "<kind>"
    },
    "name": "converters_loan_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNoLoan: upfront fee; adds the APR and money received.
kindYesloan: payment, schedule and solving; simple-interest; compound-interest (with regular contributions and inflation).
yearsNoTerm in years.
paymentNoLoan: target payment per period for solveFor amount, term or rate.
loanTypeNoLoan: amortized (default), deferred or zeroCoupon.
solveForNoLoan: what to solve for; amount, term and rate need 'payment'.
frequencyNoCompound interest: compounding frequency (default annually).
principalNoAmount. For kind loan it is required except when solveFor is 'amount'.
startDateNoInterest kinds: start date, YYYY-MM-DD; adds the maturity date.
compoundingNoLoan: how interest compounds (default: on every payment).
extraMonthlyNoPlain monthly loan: extra principal each month; adds interest saved and payments saved.
inflationPctNoCompound interest: adds the future value in today's dollars.
previewMonthsNoLoan: number of schedule rows to return, 0 to 12.
yearlySummaryNoPlain monthly loan: adds a year-by-year principal, interest and balance table.
firstPaymentDateNoLoan: date of the first payment, YYYY-MM-DD; adds payment dates and the payoff date.
paymentFrequencyNoLoan: payment frequency (default monthly).
annualRatePercentNoAnnual rate in percent.
contributeAtStartNoCompound interest: true adds each contribution at the start of the month instead of the end.
compareWithCompoundNoSimple interest: adds the result with annual compounding for comparison.
monthlyContributionNoCompound interest: amount added every month (needs frequency monthly).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed8 schema fields changed
    • addedInput schema / properties / annualRatePercent / minimum
      Added value: +0
    • addedInput schema / properties / extraMonthly / minimum
      Added value: +0
    • addedInput schema / properties / fee / minimum
      Added value: +0
    • addedInput schema / properties / monthlyContribution / minimum
      Added value: +0
    • addedInput schema / properties / payment / minimum
      Added value: +0
    • addedInput schema / properties / previewMonths / minimum
      Added value: +0
    • addedInput schema / properties / principal / minimum
      Added value: +0
    • addedInput schema / properties / years / minimum
      Added value: +0
  3. Added

TDQS

A3.5/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 agent knows this is a safe, repeatable, offline computation. The description adds that all three calculation families are served from one endpoint, which is mild additional context, but says nothing about return shape, units of the results, or mode-specific requirements.

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

Conciseness5/5

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

A single front-loaded sentence that identifies the domain, the three supported calculations, and the consolidation benefit, with no filler. Every clause carries information an agent needs for tool selection.

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

Completeness3/5

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

With 20 parameters, 6 enums, three distinct modes and no output schema, a one-sentence description is thin at the tool level even though the schema compensates field by field. The description does not state which parameters become required per mode beyond the lone required 'kind', nor what the results look like, leaving the agent to reconstruct the mode logic from the schema.

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 the schema itself is unusually rich, prefixing nearly every field with the mode it applies to ('Loan:', 'Compound interest:', 'Simple interest:'). The description adds no parameter-level meaning beyond that, so the baseline 3 for fully documented schemas 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?

The description names a specific verb-and-resource combination and enumerates the three calculation modes it covers (loan payments, simple interest, compound interest with contributions). An agent can tell this is the consolidated multi-mode calculator rather than a single-purpose one, though it never names the sibling tools (calculate_loan, calculate_compound_interest) it overlaps with.

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 phrase 'in one endpoint' implies this tool can substitute for the narrower per-mode calculators, and the 'kind' enum implies mode selection at call time. However, there is no explicit statement of when to prefer this tool over calculate_loan or calculate_compound_interest, and no exclusions or prerequisites are given.

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