{
  "protocol": "mcp",
  "transport": "http",
  "server": {
    "name": "MortgageTop.com",
    "version": "1.0.0"
  },
  "tools": [
    {
      "name": "refinance_breakeven",
      "description": "Break-even month, net after the years you stay, and lifetime cost change for a refinance quote.",
      "inputSchema": {
        "type": "object",
        "required": [
          "balance",
          "current_rate",
          "years_left",
          "new_rate"
        ],
        "properties": {
          "balance": {
            "type": "number"
          },
          "current_rate": {
            "type": "number"
          },
          "years_left": {
            "type": "number"
          },
          "new_rate": {
            "type": "number"
          },
          "new_term_years": {
            "type": "number"
          },
          "closing_costs": {
            "type": "number"
          },
          "years_to_stay": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "cashout_vs_heloc",
      "description": "Compare a cash-out refinance with keeping the current loan and adding a HELOC.",
      "inputSchema": {
        "type": "object",
        "required": [
          "balance",
          "current_rate",
          "years_left",
          "cash_needed",
          "cashout_rate",
          "heloc_rate"
        ],
        "properties": {
          "balance": {
            "type": "number"
          },
          "current_rate": {
            "type": "number"
          },
          "years_left": {
            "type": "number"
          },
          "cash_needed": {
            "type": "number"
          },
          "cashout_rate": {
            "type": "number"
          },
          "cashout_costs": {
            "type": "number"
          },
          "heloc_rate": {
            "type": "number"
          },
          "heloc_years": {
            "type": "number"
          },
          "years_to_stay": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "extra_payment",
      "description": "Months and interest saved by extra monthly payments or a lump sum.",
      "inputSchema": {
        "type": "object",
        "required": [
          "balance",
          "rate",
          "years_left"
        ],
        "properties": {
          "balance": {
            "type": "number"
          },
          "rate": {
            "type": "number"
          },
          "years_left": {
            "type": "number"
          },
          "extra": {
            "type": "number"
          },
          "lump_sum": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "monthly_cost",
      "description": "Full monthly housing cost: principal, interest, tax, insurance, mortgage insurance and dues.",
      "inputSchema": {
        "type": "object",
        "required": [
          "loan",
          "rate"
        ],
        "properties": {
          "loan": {
            "type": "number"
          },
          "rate": {
            "type": "number"
          },
          "term_years": {
            "type": "number"
          },
          "tax_per_year": {
            "type": "number"
          },
          "insurance_per_year": {
            "type": "number"
          },
          "hoa_per_month": {
            "type": "number"
          },
          "mi_percent": {
            "type": "number"
          }
        }
      }
    }
  ]
}