Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_blended_mortgage_rate

Calculate blended mortgage interest rate, total debt, and annual interest by combining a first mortgage with a HELOC or second loan, then compare cash-out refinance costs.

Instructions

Blended Mortgage Interest Rate & Second Loan Calculator. Calculate effective blended interest rate combining a low-rate first mortgage with a Home Equity Loan, HELOC, or mezzanine second mortgage. Discipline: FINANCE. Governing mathematical model / formula: Blended APR = [(First Balance × First Rate) + (Second Balance × Second Rate)] / Total Debt.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of blended_effective_apr (Effective Blended Interest Rate), total_combined_debt (Total Combined Debt Balance), annual_total_interest (Annual Combined Interest Expense), refinance_decision_verdict (Cash-Out Refinance Comparison) using first_mortgage_balance (Existing 1st Mortgage Balance), first_mortgage_rate (1st Mortgage Interest Rate (%) in %), second_loan_balance (New 2nd Mortgage / HELOC / Cash-Out), second_loan_rate (2nd Loan Interest Rate (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Blended Mortgage Interest Rate & Second Loan Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "blended-mortgage-rate"

    • category (string): "finance"

    • name (string): "Blended Mortgage Interest Rate & Second Loan Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.blended_effective_apr (Effective Blended Interest Rate): Formatted display string (e.g. '4.50% APR')

      • metrics.total_combined_debt (Total Combined Debt Balance): Formatted display string (e.g. '$400,000.00')

      • metrics.annual_total_interest (Annual Combined Interest Expense): Formatted display string (e.g. '$18,000.00 / yr')

      • metrics.refinance_decision_verdict (Cash-Out Refinance Comparison): Formatted display string (e.g. 'Keep 1st + HELOC (Beats 6.8% Cash-Out Refinance)')

    • execution_time_ms (number): Latency in milliseconds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "omni_blended_mortgage_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
second_loan_rateNo2nd Loan Interest Rate (%) (%). Current higher market interest rate. Default: 9.5. Min: 3. Max: 20.
first_mortgage_rateNo1st Mortgage Interest Rate (%) (%). Locked historical low interest rate. Default: 3.25. Min: 1.5. Max: 10.
second_loan_balanceNoNew 2nd Mortgage / HELOC / Cash-Out. Subordinate loan or home equity line. Default: 80000. Min: 5000. Max: 5000000.
first_mortgage_balanceNoExisting 1st Mortgage Balance. Low fixed-rate existing mortgage. Default: 320000. Min: 10000. Max: 10000000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools