Skip to main content
Glama

Home Loan Calculator by Munoz Loans

Does a refinance pay off

refinance_check
Read-onlyIdempotent

Compares a homeowner's current loan with a refinance: the current and new principal-and-interest payment, the monthly change, how many months until the costs are recovered, and the total interest on each path. Works in any state. Returns the rate used and its source and every assumption.

Example question: "I owe 300,000 at 7.5 percent with 28 years left. Is it worth refinancing?"

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": {
      "current_balance": "<current_balance>",
      "current_rate": "<current_rate>",
      "years_remaining": "<years_remaining>"
    },
    "name": "refinance_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_rateNoInterest rate in percent, when the buyer has one. Left out, the national average 30-year rate is used and named in the result.
new_yearsNoLoan length in years. Default 30.
current_rateYesCurrent interest rate in percent
closing_costsNoThe homeowner's own cost figure for the refinance, when known
current_balanceYesWhat is still owed
years_remainingYesYears left on the current loan

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the bar is lower; the description still adds real context by promising that the rate used, its source, and every assumption come back in the result. It also discloses the fallback behavior when no new rate is supplied (national average 30-year rate, named in the result). It does not mention how closing costs are estimated when the optional figure is omitted, which is the main remaining unknown for a mutation-free calculation tool.

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

Conciseness4/5

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

The output list is front-loaded in the first sentence and the example question is genuinely useful for triggering. Slightly packing six outputs into one long sentence hurts readability, but there is no filler or redundancy.

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?

There is no output schema, so the description carries the return-value burden and discharges it well by naming each computed result and the assumption/source disclosure. The one gap is what happens when the optional closing_costs is not supplied, since break-even months depend entirely on that number.

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 every one of the six parameters is documented there, including defaults and ranges, so the baseline is 3. The description only restates the new_rate defaulting behavior and the return of the assumptions; it adds no units, format, or interaction detail beyond the schema. Nothing is lost, but nothing is gained at the parameter level.

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 comparison (current loan vs. refinance) and enumerates the outputs: P&I payments on each path, monthly change, break-even months, and total interest on each path, plus the rate source. That is far more than a restatement of the name. It never names a sibling tool, so the agent must infer that monthly_payment or get_current_rates are the non-comparison alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Works in any state" plus a concrete example question ("I owe 300,000 at 7.5 percent with 28 years left. Is it worth refinancing?") makes the trigger scenario unambiguous. There is no explicit when-not guidance or pointer to monthly_payment/get_current_rates for agents that only want a single payment figure.

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