Skip to main content
Glama

MiniTools Precision Calculators

Exact Mortgage & Amortization Calculator

calculate_mortgage
Read-onlyIdempotent

Compute exact monthly mortgage payment, total interest, total cost, payoff acceleration from extra monthly payments, and yearly amortization summary.

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": {
      "loan_amount": "<loan_amount>",
      "annual_interest_rate_pct": "<annual_interest_rate_pct>",
      "term_years": "<term_years>"
    },
    "name": "calculate_mortgage"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoCurrency code (default "USD", e.g., "EUR", "GBP").
term_yearsYesLoan duration in years (1 to 50).
loan_amountYesProperty price or loan principal amount (> 0).
down_paymentNoOptional down payment subtracted from loan_amount (default 0).
extra_monthly_paymentNoOptional extra principal paid each month (default 0).
annual_interest_rate_pctYesAnnual nominal interest rate in percent (e.g., 3.5 for 3.5%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive behavior, so safety is covered. The description adds real value by disclosing the computation set, notably that extra monthly payments produce payoff-acceleration figures and that a yearly amortization summary is included, which is the main behavioral detail an agent needs.

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 with the verb first and no filler. The output enumeration is dense but every clause names a distinct result, so nothing is wasted.

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 must carry the return-value burden, and it does list the computed results. It stops short of describing the shape of the yearly amortization output or rounding/currency conventions, which would fully close the gap for a six-parameter calculator.

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%, so all six parameters are already documented with types, defaults, and ranges. The description only echoes 'extra monthly payments' in the context of payoff acceleration, adding little meaning beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

The description opens with a specific verb ('Compute') and resource ('monthly mortgage payment') and then enumerates the exact outputs: total interest, total cost, payoff acceleration, and yearly amortization. This clearly separates it from numeric siblings like calculate_compound_interest or calculate_vat.

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 is implied by the domain-specific name and output list, so an agent can infer this is the mortgage tool. However, there is no explicit when-to-use/when-not-to-use guidance and no reference to alternatives such as calculate_compound_interest for generic interest math.

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.