{
 "openapi": "3.1.0",
 "info": {
  "title": "Glinsky Studio catalog API (read-only)",
  "version": "1.0.0",
  "description": "Glinsky Studio (glinskyhq.com) catalog. Use list_products / get_product / get_prices for packages and USD prices (card monthly or per package, annual USDC stablecoin, monthly USDC stablecoin on Office Employee as a Service, Black Friday and after_promotion prices), get_open_booking_slots for free 30-minute discovery-call times (UTC) and get_booking_link for the page where the customer books. Read-only: quote prices exactly as returned, never invent one. Same data as the MCP server at https://glinskyhq.com/mcp."
 },
 "servers": [
  {
   "url": "https://glinskyhq.com"
  }
 ],
 "paths": {
  "/agent/v1/products": {
   "get": {
    "operationId": "list_products",
    "summary": "List packages with USD prices",
    "parameters": [
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "Category id or title"
     },
     {
      "name": "query",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "Free text"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100
      },
      "description": "Max rows"
     }
    ],
    "responses": {
     "200": {
      "description": "Packages",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "429": {
      "description": "Rate limited (60/min/IP)"
     }
    }
   }
  },
  "/agent/v1/products/{slug}": {
   "get": {
    "operationId": "get_product",
    "summary": "One package by slug",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]{2,64}$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Package",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "404": {
      "description": "Unknown slug"
     },
     "429": {
      "description": "Rate limited (60/min/IP)"
     }
    }
   }
  },
  "/agent/v1/prices": {
   "get": {
    "operationId": "get_prices",
    "summary": "Full price list, Black Friday offer, USA 3-platform example",
    "parameters": [
     {
      "name": "slugs",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "Comma-separated slugs"
     }
    ],
    "responses": {
     "200": {
      "description": "Price list",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "429": {
      "description": "Rate limited (60/min/IP)"
     }
    }
   }
  },
  "/agent/v1/booking-slots": {
   "get": {
    "operationId": "get_open_booking_slots",
    "summary": "Open 30-minute discovery-call times (UTC)",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "format": "date-time"
      },
      "description": "Start"
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 14
      },
      "description": "Days ahead"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      },
      "description": "Max slots"
     }
    ],
    "responses": {
     "200": {
      "description": "Open times + /book link",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "429": {
      "description": "Rate limited (60/min/IP)"
     }
    }
   }
  },
  "/mcp": {
   "post": {
    "operationId": "mcp",
    "summary": "MCP Streamable HTTP (JSON-RPC 2.0): initialize, tools/list, tools/call",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     },
     "202": {
      "description": "Notification accepted"
     }
    }
   }
  }
 }
}
