Skip to main content
Glama

Mortgage Calculator API - monthly payment, amortization schedule, comparisons

mortgage_calculator
Read-onlyIdempotent

Calculate monthly mortgage payment (P&I plus optional property tax, insurance, PMI and extra monthly payment), total interest, payoff date, full amortization table and 15/20/30-year side-by-side comparison. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/mortgage-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "price": "400000",
      "years": "30",
      "downPayment": "20%",
      "interestRate": "6.5"
    },
    "name": "mortgage_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYesHome price, e.g. 400000
yearsNoLoan term in years, e.g. 3030
pmiRateNoOptional annual PMI rate % when down payment < 20%
startMonthNoOptional start month YYYY-MM
downPaymentNoDown payment amount or percentage, e.g. 20% or 8000020%
extraMonthlyNoOptional extra monthly principal payment
interestRateYesAnnual interest rate %, e.g. 6.5
insuranceYearlyNoOptional yearly home insurance
propertyTaxYearlyNoOptional yearly property tax

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses real operational facts: execution is server-side, no data is persisted, there is a 5-call/day per-IP free tier, and access requires either an X-API-Key or x402 payment. That is genuinely valuable context an agent cannot get from annotations alone. Minor oddity: it says 'files are deleted' although the schema accepts no file input.

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?

Two sentences, front-loaded with the capability and outputs, then access/logistics. Every clause carries information: the optional cost components, the return artifacts, the privacy posture, and the pricing paths. No filler.

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

Completeness5/5

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

For a nine-parameter calculator with no output schema, the description is complete: it enumerates the return values, covers optional vs required cost inputs implicitly, and states access, rate limits and pricing. An agent could decide and invoke correctly from this alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all nine parameters and the baseline would be 3. The description adds meaning by grouping property tax, insurance, PMI and extra monthly payment as optional add-ons to principal and interest, clarifying how those inputs affect the result rather than just naming them.

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 and enumerates the exact outputs (P&I payment, total interest, payoff date, amortization table, 15/20/30-year comparison), so an agent knows precisely what it produces. It does not, however, distinguish itself from the sibling loan_calculator, which covers overlapping territory.

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 enumerated feature set (mortgage-specific inputs like PMI, property tax, insurance), and the auth/pricing model is spelled out. But there is no explicit when-to-use or when-not-to-use guidance, and no routing to loan_calculator or mortgage_rates_api for adjacent needs.

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