Skip to main content
Glama

finance_refinance

Read-only

Mortgage refinance analyzer — Should I refinance? Compares the current mortgage with a new one: both payments, monthly savings, simple and TRUE break-even month (counts principal paid down, not just the payment gap), net savings over how long you will stay, lifetime interest, term-extension warning, verdict STRONG REFINANCE / REFINANCE / MARGINAL / DON'T REFINANCE. Required: balance=, rate= (current %), new_rate=. Optional: years_left= or months_left= (default 30y), new_years= (30), closing_costs= (default est. 2.5%), points= (% of loan), roll_costs=true, cash_out=, stay_years=. Offline math. Price: $0.003 USDC (Base, via x402).

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": {
      "balance": "<balance>",
      "rate": "<rate>",
      "new_rate": "<new_rate>"
    },
    "name": "finance_refinance"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYes7.25
balanceYes320000
new_rateYes6.1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint/openWorldHint annotations, the description discloses that the math is 'Offline math' (no external dependency), that the tool counts principal paydown for the 'TRUE break-even', that it emits a term-extension warning, and that it costs $0.003 USDC on Base via x402. Cost and output-shape disclosure is exactly the kind of behavior an annotation schema cannot express.

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 purpose and verdict list are front-loaded, and the 'Required:/Optional:' block is an efficient way to convey many parameters in few tokens. The prose is telegraphic and reads as one long run-on sentence, which costs some scannability, but no sentence is 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 calculator with no output schema, the description fully enumerates what comes back (both payments, monthly and net savings, TRUE break-even, lifetime interest, term-extension warning, verdict) and states cost and computation locality. An agent can decide to call it and predict the response without further documentation.

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% for the three required parameters, but the schema's parameter descriptions are only bare examples ('7.25', '320000'), so the description carries real weight by labeling rate as current %, points as % of loan, and closing_costs as a default 2.5% estimate. It also documents optional inputs (years_left/months_left default 30y, roll_costs, cash_out, stay_years) that do not appear in the supplied schema, which is valuable but flags an input-schema mismatch.

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+resource ('Mortgage refinance analyzer — Should I refinance? Compares the current mortgage with a new one') and enumerates the exact outputs (payments, savings, break-even, lifetime interest, verdict). This distinguishes it from generic siblings like finance_loan_calc or finance_break_even, since it explicitly frames a current-vs-new comparison.

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?

The framing 'Should I refinance?' and the enumerated verdict tiers (STRONG REFINANCE / REFINANCE / MARGINAL / DON'T REFINANCE) make the use case unambiguous. However, there is no explicit exclusion or pointer to a sibling, such as when to prefer finance_loan_calc or finance_rent_vs_buy instead, so an agent must infer the boundary.

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