{
  "protocol": "mcp",
  "transport": "http",
  "server": {
    "name": "MortgageRefi.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"
          }
        }
      }
    }
  ]
}