Skip to main content
Glama

Simplify Mortgage Calculators

Refinance break-even

refinance_breakeven
Read-onlyIdempotent

Work out whether a refinance pays off: change in monthly payment, how many months until the savings cover the closing costs, and the difference in total interest over the life of each loan.

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_pct": "<current_rate_pct>",
      "months_remaining": "<months_remaining>",
      "new_rate_pct": "<new_rate_pct>",
      "closing_costs": "<closing_costs>"
    },
    "name": "refinance_breakeven"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_rate_pctYes
closing_costsYesTotal cost to refinance, in dollars.
new_term_yearsNo
current_balanceYesWhat is still owed on the current loan.
current_rate_pctYes
months_remainingYesMonths left on the current loan.
roll_costs_into_loanNoTrue if closing costs are added to the new loan instead of paid in cash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish this as a read-only, idempotent, closed-world, non-destructive calculation, so the safety profile is covered. The description adds value by disclosing the three computed results, but says nothing about assumptions baked into the math, sign conventions on the payment change, or whether costs are compared pre- or post-tax.

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 purpose first and the three deliverables enumerated after. No filler, no restatement of the title.

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 usefully doubles as a return-value summary by naming the three results. For a 7-parameter calculator it is nearly sufficient, with the remaining gap being the unstated assumptions and defaults that materially change the answer.

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

Parameters2/5

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

Schema description coverage is 57%, so several parameters (current_rate_pct, new_rate_pct, new_term_years) carry only their titles. The description mentions no parameter at all and adds no meaning beyond the schema — notably it never explains the optional new_term_years default of 30 or how roll_costs_into_loan interacts with closing_costs.

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 analytical task (refinance pay-off analysis) and enumerates the three outputs: payment delta, break-even months, and lifetime interest difference. An agent can tell exactly what the tool computes, though it never distinguishes itself from the sibling compare_scenarios, which could plausibly cover similar ground.

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 phrase 'whether a refinance pays off', which clearly frames the decision context, but there is no explicit when-to-use instruction, no prerequisites, and no mention of when a sibling such as calculate_payment or compare_scenarios would be the better choice.

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