{
  "openapi": "3.1.0",
  "info": {
    "title": "Cut N Looks Luxury Salon & Spa API",
    "description": "Programmatic developer API and AI agent tools for service discovery, stylist portfolios, appointment availability, and booking management at Cut N Looks salon in Dwarka, New Delhi.",
    "version": "1.0.0",
    "contact": {
      "name": "Cut N Looks Support",
      "email": "info@cutnlooks.in",
      "url": "https://cut-n-look-web.vercel.app"
    }
  },
  "servers": [
    {
      "url": "https://cut-n-look-web.vercel.app",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/services": {
      "get": {
        "summary": "List salon services and treatments",
        "description": "Retrieve the categorized list of all hair architecture, coloring, skincare, and bridal services with prices in INR and durations.",
        "operationId": "listServices",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "hair", "color", "skincare", "bridal"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": { "type": "string" },
                          "name": { "type": "string" },
                          "category": { "type": "string" },
                          "price": { "type": "string" },
                          "priceInr": { "type": "number" },
                          "durationMinutes": { "type": "number" },
                          "description": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stylists": {
      "get": {
        "summary": "List master stylists",
        "description": "Retrieve profiles, specialties, and schedules of master hair architects and aestheticians.",
        "operationId": "listStylists",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "stylists": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": { "type": "string" },
                          "role": { "type": "string" },
                          "experience": { "type": "string" },
                          "specialties": { "type": "array", "items": { "type": "string" } }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/availability": {
      "get": {
        "summary": "Check time slot availability",
        "description": "Verify available booking slots for a specified date.",
        "operationId": "checkAvailability",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": { "type": "string", "format": "date" },
            "description": "Date in YYYY-MM-DD format"
          }
        ],
        "responses": {
          "200": {
            "description": "Availability data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "date": { "type": "string" },
                    "availableSlots": {
                      "type": "array",
                      "items": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "summary": "Model Context Protocol (MCP) tool execution",
        "description": "Streamable JSON-RPC 2.0 endpoint supporting MCP tools for AI agents.",
        "operationId": "callMcpTool",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jsonrpc": { "type": "string", "example": "2.0" },
                  "id": { "type": ["string", "number"] },
                  "method": { "type": "string", "example": "tools/call" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
