Skip to main content
Glama

What's Your Equity?

Compare a HELOC with a cash-out refinance

compare_heloc_vs_refinance
Read-onlyIdempotent

Compare keeping the current first mortgage and adding our live HELOC, versus replacing it with a cash-out refinance at a rate the homeowner was quoted. Shows the monthly payment and 5-year interest plus fees for each. The refinance rate must come from the homeowner; it is never assumed.

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": {
      "state": "<state>",
      "homeValue": "<homeValue>",
      "mortgageBalance": "<mortgageBalance>",
      "currentRatePercent": "<currentRatePercent>",
      "remainingYears": "<remainingYears>",
      "cashNeeded": "<cashNeeded>",
      "creditScore": "<creditScore>",
      "otherLiens": "<otherLiens>",
      "occupancy": "<occupancy>",
      "units": "<units>",
      "selfEmployed": "<selfEmployed>"
    },
    "name": "compare_heloc_vs_refinance"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesTwo-letter US state code of the property
unitsYes
homeValueYes
occupancyYes
cashNeededYes
otherLiensYesOther liens (existing HELOC or second mortgage); 0 if none
creditScoreYes
selfEmployedYes
remainingYearsYesYears left on the existing first mortgage
mortgageBalanceYes
currentRatePercentYesInterest rate on the existing first mortgage
refinanceTermYearsNo
refinanceRatePercentNoCash-out refinance rate the homeowner was quoted
refinanceClosingCostsUsdNo

Output Schema

NameRequiredDescriptionDefault
noteYes
statusYes
sourceUrlYes
generatedAtYes
keepAndAddHelocNo
cashOutRefinanceNo
fiveYearDifferenceUsdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description's job is to add context. It does so by clarifying that the HELOC leg uses live rates on top of the existing first mortgage and that the refinance rate is user-supplied and never assumed, which is a real input constraint. The output summary (monthly payment, 5-year interest plus fees) partially duplicates the existing output schema.

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?

Three tight sentences with the comparison framing front-loaded and no filler. There is minor redundancy between the closing sentence and the schema's own description of refinanceRatePercent, but nothing that wastes an agent's reading time.

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?

An output schema exists, so the description need not explain return values, and the read-only annotations cover the safety profile. The gap is the input surface: an 11-required-parameter tool with 36% schema coverage leaves eligibility-driving fields undocumented in both structured and prose form, and no prerequisites (e.g., minimum equity or cash-needed threshold) are stated.

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?

With 14 parameters and only 36% schema description coverage, the description needs to compensate and largely does not. It only speaks to one input — the refinance rate must come from the homeowner — and mentions fees indirectly, leaving eleven required parameters such as creditScore, occupancy, units, selfEmployed, and remainingYears without any added meaning.

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 names both sides of the comparison precisely: keeping the current first mortgage plus a live HELOC versus replacing it with a cash-out refinance. It also states the metrics produced (monthly payment, 5-year interest plus fees), which distinguishes it from siblings such as compare_heloc_offers and calculate_heloc_payment.

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 scenario is implied by the name and the comparison framing, so an agent can infer this is the tool for a HELOC-vs-refi decision. However, there is no explicit when-to-use or when-not-to-use guidance, and no reference to the sibling tools an agent should prefer for a pure HELOC offer comparison or a standalone payment estimate.

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