{
  "$schema": "https://modelcontextprotocol.io/schemas/server-card.json",
  "name": "investbyali-mcp",
  "title": "Ali Shariat Real Estate MCP Server",
  "description": "Model Context Protocol tools and resources for searching listings, calculating mortgage payments, and getting market statistics for Orange County, CA and Texas.",
  "version": "1.0.0",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://investbyali.com/api/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "subscribe": false,
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "search_listings",
      "description": "Search active for-sale and recently sold residential real estate properties in California and Texas.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": ["Active", "Closed", "all"],
            "description": "Listing status: Active (for sale) or Closed (recently sold)"
          },
          "city": {
            "type": "string",
            "description": "City name (e.g. Irvine, Newport Beach, Corona)"
          },
          "maxPrice": {
            "type": "number",
            "description": "Maximum purchase price in USD"
          },
          "minBeds": {
            "type": "number",
            "description": "Minimum bedroom count"
          }
        }
      }
    },
    {
      "name": "estimate_mortgage",
      "description": "Calculate estimated monthly mortgage principal, interest, tax, and total monthly payment.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "purchasePrice": {
            "type": "number",
            "description": "Purchase price in USD"
          },
          "downPaymentPercent": {
            "type": "number",
            "description": "Down payment percentage (e.g. 20)",
            "default": 20
          },
          "interestRate": {
            "type": "number",
            "description": "Annual interest rate percentage (e.g. 7.32)"
          },
          "hoa": {
            "type": "number",
            "description": "Monthly HOA fees if applicable",
            "default": 0
          }
        },
        "required": ["purchasePrice"]
      }
    },
    {
      "name": "get_market_trends",
      "description": "Get real estate price trends, median sold price, and market metrics for a specific Southern California city.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "citySlug": {
            "type": "string",
            "description": "City slug (e.g. irvine-ca, newport-beach-ca, anaheim-ca)"
          }
        },
        "required": ["citySlug"]
      }
    },
    {
      "name": "submit_lead_inquiry",
      "description": "Submit a real estate or financing consultation inquiry for Ali Shariat.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "inquiryType": {
            "type": "string",
            "enum": ["buying", "selling", "refinance", "general"]
          }
        },
        "required": ["name", "email"]
      }
    }
  ]
}
