{
  "$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
  "name": "ua.com.aoa/mcp",
  "title": "AOA — заклади, столики і події",
  "version": "1.0.0",
  "description": "Пошук кавʼярень, барів, ресторанів, коворкінгів і подій в Україні, бронювання столиків і реєстрація на події. Бронь людина підтверджує сама в інтерактивній картці (MCP Apps).",
  "icons": [
    {
      "src": "https://aoa.com.ua/brand/logo-square-1024.png",
      "mimeType": "image/png",
      "sizes": [
        "1024x1024"
      ]
    },
    {
      "src": "https://aoa.com.ua/brand/favicon.png",
      "mimeType": "image/png",
      "sizes": [
        "256x256"
      ]
    }
  ],
  "websiteUrl": "https://aoa.com.ua",
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://aoa.com.ua/api/mcp",
      "supportedProtocolVersions": [
        "2025-11-25",
        "2025-06-18",
        "2025-03-26"
      ]
    }
  ],
  "serverUrl": "https://aoa.com.ua/api/mcp",
  "serverInfo": {
    "name": "AOA",
    "title": "AOA — заклади, столики і події",
    "version": "1.0.0"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false,
      "subscribe": false
    },
    "extensions": {
      "io.modelcontextprotocol/ui": {
        "mimeTypes": [
          "text/html;profile=mcp-app"
        ]
      }
    }
  },
  "instructions": "AOA — платформа бронювання столиків і подій: кавʼярні, бари, ресторани, коворкінги, книгарні, культурні простори. Заклади, вільні столики й події AOA приходять напряму з бази платформи. Ніколи не вигадуй контакти гостя: імʼя й телефон вводить сама людина у картці бронювання, навіть якщо назвала їх у чаті.\n\nКоли кликати: куди піти, де попрацювати з ноутбуком, де повечеряти чи випити кави, що робити на вихідних, куди на побачення чи з друзями, забронювати столик, знайти події в місті, свої бронювання, орендувати простір під захід, майстер-клас чи зйомку.\n\nПорядок: search_venues або search_events → get_venue/get_event для деталей → restaurant_reservation відкриває картку, яку людина підтверджує сама. Оренда: search_spaces → get_space дає посилання на форму заявки, дату й час людина обирає там сама.",
  "authentication": {
    "required": false,
    "schemes": [
      "oauth2"
    ],
    "protectedResourceMetadata": "https://aoa.com.ua/.well-known/oauth-protected-resource"
  },
  "tools": [
    {
      "name": "search_venues",
      "title": "Пошук закладів",
      "description": "Знаходить місця на платформі AOA: кавʼярні, бари, ресторани, коворкінги, книгарні, культурні простори. Викликай, коли людина питає, куди піти, де випити кави чи повечеряти, де попрацювати з ноутбуком, де зустрітися з друзями або провести побачення — а також коли вона називає конкретний заклад і треба отримати його id для бронювання. Повертає до 20 закладів з бази AOA: venue_id, адресу, місто, години роботи, координати і чи приймає заклад бронювання. Не потрібен, якщо id закладу вже відомий з попереднього кроку; для подій є search_events.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "query": {
            "description": "Назва, частина назви або адреса закладу, 1-120 символів, наприклад \"Smoky bar\" чи \"Хрещатик\". Без query - усі заклади (у межах city, якщо задано)",
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "city": {
            "description": "Місто, як його назвала людина, наприклад \"Київ\" чи \"Warszawa\". Без нього - місто з контексту клієнта, якщо воно є",
            "type": "string",
            "maxLength": 80
          },
          "bookable_only": {
            "description": "true - лише заклади, що приймають онлайн-бронювання столиків (коли людина хоче забронювати). За замовчуванням false",
            "type": "boolean"
          },
          "limit": {
            "description": "Скільки закладів повернути, ціле 1-20, за замовчуванням 8",
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          }
        }
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "venue_id для get_venue і restaurant_reservation"
                },
                "name": {
                  "type": "string"
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phone": {
                  "description": "Телефон закладу, не гостя",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string",
                  "description": "Сторінка закладу на AOA"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "openingHours": {
                  "description": "Години роботи текстом, як їх вказав заклад",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "longitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "reservationsEnabled": {
                  "type": "boolean",
                  "description": "Чи можна забронювати столик через restaurant_reservation"
                },
                "maxGuests": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "Максимум гостей на одну бронь"
                }
              },
              "required": [
                "id",
                "name",
                "address",
                "city",
                "phone",
                "url",
                "imageUrl",
                "openingHours",
                "latitude",
                "longitude",
                "reservationsEnabled",
                "maxGuests"
              ],
              "additionalProperties": false
            },
            "description": "Заклади: спершу ті, що приймають бронювання"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Кількість закладів у venues"
          }
        },
        "required": [
          "venues",
          "count"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Пошук закладів",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Шукаю заклади",
        "openai/toolInvocation/invoked": "Знайшов заклади",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "get_venue",
      "title": "Картка закладу",
      "description": "Повертає картку одного закладу AOA: адресу, місто, години роботи, телефон закладу, координати, посилання на сторінку, чи приймає онлайн-бронювання столиків і максимум гостей на бронь. Викликай, коли venue_id вже відомий (з search_venues) і людина питає деталі: коли відкрито, як подзвонити, де це, чи можна прийти компанією. Не викликай для пошуку за назвою (це search_venues) і перед бронюванням без потреби: restaurant_reservation сам покаже вільний час.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venue_id": {
            "type": "string",
            "minLength": 1,
            "description": "venue_id закладу з відповіді search_venues (у тексті як [venue_id: …]). Не вигадуй: невідомий id - спершу search_venues"
          }
        },
        "required": [
          "venue_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venue": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "venue_id для get_venue і restaurant_reservation"
              },
              "name": {
                "type": "string"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "description": "Телефон закладу, не гостя",
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": "string",
                "description": "Сторінка закладу на AOA"
              },
              "imageUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "openingHours": {
                "description": "Години роботи текстом, як їх вказав заклад",
                "type": [
                  "string",
                  "null"
                ]
              },
              "latitude": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "longitude": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "reservationsEnabled": {
                "type": "boolean",
                "description": "Чи можна забронювати столик через restaurant_reservation"
              },
              "maxGuests": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Максимум гостей на одну бронь"
              }
            },
            "required": [
              "id",
              "name",
              "address",
              "city",
              "phone",
              "url",
              "imageUrl",
              "openingHours",
              "latitude",
              "longitude",
              "reservationsEnabled",
              "maxGuests"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "venue"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Картка закладу",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Читаю картку закладу",
        "openai/toolInvocation/invoked": "Готово",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "check_table_availability",
      "title": "Вільний час у закладі",
      "description": "Повертає вільні слоти для бронювання столика на конкретну дату. Викликай, коли треба відповісти «чи є місце о 19:00» без відкриття картки бронювання.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venue_id": {
            "type": "string",
            "minLength": 1,
            "description": "venue_id закладу з search_venues (у тексті як [venue_id: …])"
          },
          "date": {
            "type": "string",
            "description": "Дата у форматі YYYY-MM-DD, наприклад \"2026-11-14\""
          }
        },
        "required": [
          "venue_id",
          "date"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "buildingId": {
            "type": "string",
            "description": "venue_id закладу"
          },
          "date": {
            "type": "string",
            "description": "Дата, YYYY-MM-DD"
          },
          "slots": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Час слоту HH:mm, його передають як time"
                },
                "label": {
                  "type": "string"
                },
                "available": {
                  "type": "boolean"
                }
              },
              "required": [
                "value",
                "label",
                "available"
              ],
              "additionalProperties": false
            },
            "description": "Лише вільні слоти; порожній, коли reason не ok"
          },
          "reason": {
            "type": "string",
            "enum": [
              "ok",
              "venue_not_found",
              "disabled",
              "closed",
              "no_slots"
            ],
            "description": "ok - є вільні слоти; venue_not_found, disabled (не приймає онлайн-бронювання), closed (вихідний), no_slots"
          },
          "maxGuests": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Максимум гостей на одну бронь"
          }
        },
        "required": [
          "buildingId",
          "date",
          "slots",
          "reason",
          "maxGuests"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Вільний час у закладі",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/widgetAccessible": true,
        "openai/toolInvocation/invoking": "Перевіряю вільний час",
        "openai/toolInvocation/invoked": "Перевірив",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "restaurant_reservation",
      "title": "Забронювати столик",
      "description": "Відкриває картку бронювання столика у закладі AOA: показує вільний час і форму підтвердження. Викликай, коли людина хоче забронювати столик і відомий id закладу. Тул НЕ створює бронювання — людина підтверджує його сама в картці. Повертає заклад, вільні слоти на дату і префіл картки; якщо клієнт не малює картку, у тексті є посилання на сторінку закладу. Дату, час і кількість гостей передавай, лише якщо людина їх назвала. Не викликай, щоб лише перевірити вільний час: це check_table_availability.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "restaurant_id": {
            "type": "string",
            "minLength": 1,
            "description": "venue_id закладу з search_venues (у тексті як [venue_id: …]). Обовʼязковий; інші поля лише префіл"
          },
          "restaurant_name": {
            "description": "Назва закладу для підпису, до 200 символів, наприклад \"Smoky bar\". Не впливає на бронь",
            "type": "string",
            "maxLength": 200
          },
          "restaurant_image": {
            "description": "URL фото закладу, до 500 символів. Не впливає на бронь",
            "type": "string",
            "maxLength": 500
          },
          "restaurant_address": {
            "description": "Адреса закладу для підпису. Не впливає на бронь",
            "type": "object",
            "properties": {
              "address": {
                "description": "Вулиця і будинок, наприклад \"вул. Хрещатик, 1\"",
                "type": "string"
              },
              "city": {
                "description": "Місто, наприклад \"Київ\"",
                "type": "string"
              },
              "state": {
                "description": "Область чи регіон",
                "type": "string"
              },
              "zipcode": {
                "description": "Поштовий індекс",
                "type": "string"
              },
              "country": {
                "description": "Країна, код ISO 3166-1 alpha-2, наприклад \"UA\"",
                "type": "string"
              }
            }
          },
          "date": {
            "description": "Бажана дата у форматі YYYY-MM-DD, наприклад \"2026-11-14\", лише якщо людина її назвала. Без неї - сьогодні",
            "type": "string"
          },
          "time": {
            "description": "Бажаний час у форматі HH:mm, наприклад \"19:30\", лише якщо людина його назвала",
            "type": "string"
          },
          "party_size": {
            "description": "Кількість гостей, ціле 1-50, лише якщо людина її назвала",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [
          "restaurant_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venue": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "description": "Телефон закладу",
                "type": [
                  "string",
                  "null"
                ]
              },
              "imageUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": "string",
                "description": "Сторінка закладу: там теж можна забронювати"
              },
              "maxGuests": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "address",
              "city",
              "phone",
              "imageUrl",
              "url",
              "maxGuests"
            ],
            "additionalProperties": false
          },
          "availability": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "description": "Дата картки, YYYY-MM-DD"
              },
              "reason": {
                "type": "string",
                "enum": [
                  "ok",
                  "venue_not_found",
                  "disabled",
                  "closed",
                  "no_slots"
                ],
                "description": "ok - є вільні слоти; інше - чому їх немає"
              },
              "slots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "Час слоту HH:mm, його передають як time"
                    },
                    "label": {
                      "type": "string"
                    },
                    "available": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "value",
                    "label",
                    "available"
                  ],
                  "additionalProperties": false
                },
                "description": "Лише вільні слоти"
              }
            },
            "required": [
              "date",
              "reason",
              "slots"
            ],
            "additionalProperties": false
          },
          "prefill": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "time": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "partySize": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "date",
              "time",
              "partySize"
            ],
            "additionalProperties": false
          },
          "isAuthenticated": {
            "type": "boolean",
            "description": "false - картка попросить імʼя і телефон у самої людини"
          },
          "locale": {
            "type": "string",
            "enum": [
              "uk",
              "en"
            ]
          }
        },
        "required": [
          "venue",
          "availability",
          "prefill",
          "isAuthenticated",
          "locale"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Забронювати столик",
        "readOnlyHint": true,
        "openWorldHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        },
        {
          "type": "oauth2",
          "scopes": [
            "reservations:write"
          ]
        }
      ],
      "_meta": {
        "ui": {
          "resourceUri": "ui://widget/restaurant-reservation.html"
        },
        "openai/outputTemplate": "ui://widget/restaurant-reservation.html",
        "openai/widgetAccessible": true,
        "openai/toolInvocation/invoking": "Дивлюсь вільні столики",
        "openai/toolInvocation/invoked": "Ось що вільно",
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "type": "oauth2",
            "scopes": [
              "reservations:write"
            ]
          }
        ]
      }
    },
    {
      "name": "confirm_reservation",
      "title": "Підтвердити бронювання",
      "description": "Створює бронювання столика за даними, які людина сама перевірила й підтвердила в картці бронювання. Викликає лише інтерфейс картки після кліку людини, не модель: для броні з чату використовуй restaurant_reservation. Повертає бронь зі статусом pending (заклад підтверджує її сам), датою, часом, кількістю гостей і reservation_id.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "venue_id": {
            "type": "string",
            "minLength": 1,
            "description": "venue_id закладу, для якого відкрита картка"
          },
          "date": {
            "type": "string",
            "description": "Дата броні у форматі YYYY-MM-DD, наприклад \"2026-11-14\""
          },
          "time": {
            "type": "string",
            "description": "Час з вільного слоту у форматі HH:mm, наприклад \"19:30\""
          },
          "guests_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Кількість гостей, ціле 1-50, не більше maxGuests закладу"
          },
          "guest_name": {
            "description": "Імʼя гостя, як людина ввела його у формі картки, до 120 символів. Потрібне без підключеного акаунта",
            "type": "string",
            "maxLength": 120
          },
          "guest_phone": {
            "description": "Телефон гостя з форми картки, до 32 символів, бажано E.164, наприклад \"+380501234567\". Потрібен без підключеного акаунта",
            "type": "string",
            "maxLength": 32
          },
          "guest_email": {
            "description": "Пошта гостя з форми картки, до 160 символів, необовʼязкова",
            "type": "string",
            "maxLength": 160
          },
          "comment": {
            "description": "Побажання до броні для закладу, до 500 символів, наприклад \"біля вікна\"",
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "venue_id",
          "date",
          "time",
          "guests_count"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "reservation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "reservation_id для cancel_reservation"
              },
              "date": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "time": {
                "type": "string",
                "description": "HH:mm"
              },
              "guestsCount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "confirmed",
                  "cancelled",
                  "visited"
                ],
                "description": "pending - чекає підтвердження закладу"
              },
              "venueName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "venueUrl": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "date",
              "time",
              "guestsCount",
              "status",
              "venueName",
              "venueUrl"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "reservation"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Підтвердити бронювання",
        "readOnlyHint": false,
        "openWorldHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        },
        {
          "type": "oauth2",
          "scopes": [
            "reservations:write"
          ]
        }
      ],
      "_meta": {
        "ui": {
          "visibility": [
            "app"
          ]
        },
        "openai/widgetAccessible": true,
        "securitySchemes": [
          {
            "type": "noauth"
          },
          {
            "type": "oauth2",
            "scopes": [
              "reservations:write"
            ]
          }
        ]
      }
    },
    {
      "name": "list_my_reservations",
      "title": "Мої бронювання",
      "description": "Повертає бронювання столиків користувача на AOA (до 20, за датою від найближчої): заклад з адресою, дату, час, кількість гостей, статус (pending, confirmed, cancelled, visited) і reservation_id. Викликай, коли людина питає про свої броні, хоче нагадати собі час чи збирається скасувати бронь і id невідомий. Потребує підключеного акаунта AOA; гостьові броні без акаунта тут не видно.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "include_past": {
            "description": "true - також минулі броні (історія візитів). За замовчуванням false: лише від сьогодні",
            "type": "boolean"
          }
        }
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "reservations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "reservation_id для cancel_reservation"
                },
                "date": {
                  "type": "string",
                  "description": "YYYY-MM-DD"
                },
                "time": {
                  "type": "string",
                  "description": "HH:mm"
                },
                "guestsCount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "confirmed",
                    "cancelled",
                    "visited"
                  ]
                },
                "venueName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "venueAddress": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "date",
                "time",
                "guestsCount",
                "status",
                "venueName",
                "venueAddress"
              ],
              "additionalProperties": false
            },
            "description": "До 20 броней за датою, від найближчої"
          }
        },
        "required": [
          "reservations"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Мої бронювання",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "oauth2",
          "scopes": [
            "reservations:read"
          ]
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Дивлюсь твої бронювання",
        "openai/toolInvocation/invoked": "Готово",
        "securitySchemes": [
          {
            "type": "oauth2",
            "scopes": [
              "reservations:read"
            ]
          }
        ]
      }
    },
    {
      "name": "cancel_reservation",
      "title": "Скасувати бронювання",
      "description": "Скасовує бронювання столика і повідомляє заклад. Викликай лише тоді, коли людина явно попросила скасувати конкретну бронь і reservation_id відомий (з list_my_reservations чи підтвердження). Потрібен підключений акаунт AOA або токен гостьової броні. Повертає reservationId і статус cancelled; відвідану бронь скасувати не можна. Не викликай, щоб змінити час: скасування незворотне.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "reservation_id": {
            "type": "string",
            "minLength": 1,
            "description": "reservation_id з list_my_reservations або з підтвердження броні. Не вигадуй: невідомий id - спершу list_my_reservations"
          },
          "guest_token": {
            "description": "Токен гостьової броні (бронь без акаунта), який видала картка бронювання. З підключеним акаунтом не потрібен",
            "type": "string"
          }
        },
        "required": [
          "reservation_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "reservationId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "const": "cancelled"
          },
          "alreadyCancelled": {
            "type": "boolean",
            "description": "true - бронь була скасована раніше, цей виклик нічого не змінив"
          }
        },
        "required": [
          "reservationId",
          "status",
          "alreadyCancelled"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Скасувати бронювання",
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "securitySchemes": [
        {
          "type": "oauth2",
          "scopes": [
            "reservations:write"
          ]
        },
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Скасовую бронювання",
        "openai/toolInvocation/invoked": "Скасовано",
        "securitySchemes": [
          {
            "type": "oauth2",
            "scopes": [
              "reservations:write"
            ]
          },
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "search_events",
      "title": "Пошук подій",
      "description": "Знаходить майбутні події на AOA: концерти, лекції, вечірки, нетворкінг, знайомства, майстеркласи, кінопокази. Викликай, коли людина питає, що робити на вихідних, куди піти ввечері, які є події в місті, де познайомитися з людьми або чим зайнятись у конкретну дату. Повертає до 20 подій: event_id, дату, місце, ціну і чи відкрита реєстрація. Не потрібен, якщо event_id уже відомий (тоді get_event); для закладів без події є search_venues.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "query": {
            "description": "Тема, жанр або назва події, до 120 символів, наприклад \"стендап\", \"джаз\" чи \"speed dating\". Без query - усі майбутні події",
            "type": "string",
            "maxLength": 120
          },
          "city": {
            "description": "Місто, наприклад \"Київ\" чи \"Львів\". Без нього - місто з контексту клієнта, якщо воно є",
            "type": "string",
            "maxLength": 80
          },
          "venue_id": {
            "description": "venue_id закладу з search_venues, щоб показати події лише цього місця",
            "type": "string",
            "maxLength": 64
          },
          "limit": {
            "description": "Скільки подій повернути, ціле 1-20, за замовчуванням 8",
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          }
        }
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "shortId": {
                  "type": "string",
                  "description": "event_id для get_event і register_for_event"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "startAt": {
                  "description": "Початок, ISO 8601",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "endAt": {
                  "description": "Кінець, ISO 8601",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string",
                  "description": "Сторінка події на AOA"
                },
                "coverUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "venueName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "venueAddress": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "isFree": {
                  "type": "boolean"
                },
                "minPriceUah": {
                  "description": "Найнижча ціна квитка в гривнях; null для безкоштовної",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "registrationOpen": {
                  "type": "boolean"
                },
                "handoffReason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "seat_selection",
                        "speed_dating",
                        "age_verification",
                        "diia_verification",
                        "approval_required",
                        "donation_proof",
                        "external_registration"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Чому реєстрація лише на сайті; null = можна з чату"
                }
              },
              "required": [
                "id",
                "shortId",
                "title",
                "description",
                "startAt",
                "endAt",
                "url",
                "coverUrl",
                "venueName",
                "venueAddress",
                "city",
                "isFree",
                "minPriceUah",
                "registrationOpen",
                "handoffReason"
              ],
              "additionalProperties": false
            },
            "description": "Майбутні події за датою початку, від найближчої"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Кількість подій у events"
          }
        },
        "required": [
          "events",
          "count"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Пошук подій",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Шукаю події",
        "openai/toolInvocation/invoked": "Знайшов події",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "get_event",
      "title": "Картка події",
      "description": "Повертає картку однієї події AOA: опис, початок і кінець, заклад з адресою, мінімальну ціну квитка, чи відкрита реєстрація і чи можна зареєструватися прямо в чаті (handoffReason = null) або лише на сайті. Викликай, коли event_id вже відомий і людина питає подробиці або збирається йти. Не викликай для пошуку подій за темою чи датою: це search_events.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "minLength": 1,
            "description": "event_id з search_events (у тексті як [event_id: …]): короткий код події, наприклад \"k7Qx2a\", або її повний id"
          }
        },
        "required": [
          "event_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "event": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "shortId": {
                "type": "string",
                "description": "event_id для get_event і register_for_event"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "startAt": {
                "description": "Початок, ISO 8601",
                "type": [
                  "string",
                  "null"
                ]
              },
              "endAt": {
                "description": "Кінець, ISO 8601",
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": "string",
                "description": "Сторінка події на AOA"
              },
              "coverUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "venueName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "venueAddress": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isFree": {
                "type": "boolean"
              },
              "minPriceUah": {
                "description": "Найнижча ціна квитка в гривнях; null для безкоштовної",
                "type": [
                  "number",
                  "null"
                ]
              },
              "registrationOpen": {
                "type": "boolean"
              },
              "handoffReason": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "seat_selection",
                      "speed_dating",
                      "age_verification",
                      "diia_verification",
                      "approval_required",
                      "donation_proof",
                      "external_registration"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Чому реєстрація лише на сайті; null = можна з чату"
              }
            },
            "required": [
              "id",
              "shortId",
              "title",
              "description",
              "startAt",
              "endAt",
              "url",
              "coverUrl",
              "venueName",
              "venueAddress",
              "city",
              "isFree",
              "minPriceUah",
              "registrationOpen",
              "handoffReason"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "event"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Картка події",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Читаю подію",
        "openai/toolInvocation/invoked": "Готово",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "register_for_event",
      "title": "Реєстрація на подію",
      "description": "Реєструє користувача на подію AOA. Викликай, коли людина прямо попросила записати її на конкретну подію і event_id відомий. Для безкоштовних подій завершує реєстрацію одразу (status registered), для платних резервує квиток і повертає посилання на оплату (payment_required). Потребує підключеного акаунта AOA. Події з вибором місця, віковою перевіркою чи ручним підтвердженням оформлюються лише на сайті - тул поверне посилання (handoff). Не викликай, щоб дізнатися ціну чи деталі: це get_event.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "minLength": 1,
            "description": "event_id з search_events або get_event: короткий код події, наприклад \"k7Qx2a\", або повний id"
          },
          "ticket_type_id": {
            "description": "id типу квитка, коли їх кілька і людина обрала конкретний; без нього - основний (перший) тип квитка події",
            "type": "string"
          },
          "quantity": {
            "description": "Кількість квитків, ціле 1-10, за замовчуванням 1",
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          }
        },
        "required": [
          "event_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "registered",
              "payment_required",
              "handoff"
            ],
            "description": "registered - квиток уже в профілі; payment_required - квиток зарезервовано, треба оплатити за paymentUrl; handoff - реєстрація лише на сайті за url"
          },
          "url": {
            "description": "registered: квиток у профілі; handoff: сторінка події",
            "type": "string"
          },
          "paymentUrl": {
            "description": "payment_required: посилання на оплату для людини",
            "type": "string"
          },
          "reason": {
            "description": "handoff: чому реєстрація лише на сайті",
            "type": "string",
            "enum": [
              "seat_selection",
              "speed_dating",
              "age_verification",
              "diia_verification",
              "approval_required",
              "donation_proof",
              "external_registration"
            ]
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Реєстрація на подію",
        "readOnlyHint": false,
        "openWorldHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "oauth2",
          "scopes": [
            "events:write"
          ]
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Реєструю на подію",
        "openai/toolInvocation/invoked": "Готово",
        "securitySchemes": [
          {
            "type": "oauth2",
            "scopes": [
              "events:write"
            ]
          }
        ]
      }
    },
    {
      "name": "search_spaces",
      "title": "Пошук просторів під оренду",
      "description": "Знаходить простори під оренду на AOA: лофти, зали, студії, тераси. Викликай, коли людина шукає, де провести захід, майстер-клас, лекцію, зйомку чи день народження, або хоче орендувати зал на кілька годин. Повертає space_id, адресу, місткість, ціну за годину і посилання на форму заявки. Столики в кавʼярнях - search_venues.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "query": {
            "description": "Назва, адреса чи метро, наприклад \"лофт\". Без query - усі простори",
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "city": {
            "description": "Місто, як його назвала людина",
            "type": "string",
            "maxLength": 80
          },
          "guests": {
            "description": "Скільки людей має вмістити простір",
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "limit": {
            "description": "1-20, за замовчуванням 8",
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          }
        }
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "spaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "space_id для get_space"
                },
                "name": {
                  "type": "string"
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "nearestMetro": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string"
                },
                "bookingUrl": {
                  "type": "string",
                  "description": "Форма заявки: дату й час людина обирає сама"
                },
                "imageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "spaceType": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "areaSqm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "capacity": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Людей на захід"
                },
                "pricePerHourUah": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "minRentalHours": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "acceptsBookings": {
                  "type": "boolean",
                  "description": "false - заявки на паузі"
                },
                "equipment": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "latitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "longitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "address",
                "city",
                "nearestMetro",
                "url",
                "bookingUrl",
                "imageUrl",
                "spaceType",
                "areaSqm",
                "capacity",
                "pricePerHourUah",
                "minRentalHours",
                "acceptsBookings",
                "equipment",
                "features",
                "latitude",
                "longitude"
              ],
              "additionalProperties": false
            }
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "spaces",
          "count"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Пошук просторів під оренду",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Шукаю простори",
        "openai/toolInvocation/invoked": "Знайшов простори",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    },
    {
      "name": "get_space",
      "title": "Картка простору",
      "description": "Картка простору під оренду на AOA: опис, місткість, площа, обладнання, послуги з ціною і мінімальною тривалістю та посилання на форму заявки, де людина обирає дату й час і підтверджує сама. Викликай, коли space_id відомий з search_spaces і людина питає деталі або хоче орендувати.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "space_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "space_id з search_spaces ([space_id: …]). Не вигадуй"
          }
        },
        "required": [
          "space_id"
        ]
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "space": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "space_id для get_space"
              },
              "name": {
                "type": "string"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "nearestMetro": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": "string"
              },
              "bookingUrl": {
                "type": "string",
                "description": "Форма заявки: дату й час людина обирає сама"
              },
              "imageUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "spaceType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "areaSqm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "capacity": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Людей на захід"
              },
              "pricePerHourUah": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "minRentalHours": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "acceptsBookings": {
                "type": "boolean",
                "description": "false - заявки на паузі"
              },
              "equipment": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "services": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "RENTAL",
                        "MASTERCLASS",
                        "EVENT",
                        "SHOOTING",
                        "CUSTOM"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "pricingModel": {
                      "type": "string",
                      "enum": [
                        "HOURLY",
                        "PER_PERSON",
                        "PER_EVENT",
                        "ON_REQUEST"
                      ]
                    },
                    "priceUah": {
                      "description": "null - ціна за запитом",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "priceFrom": {
                      "type": "boolean"
                    },
                    "minHours": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "minGuests": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxGuests": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "bookingUrl": {
                      "type": "string",
                      "description": "Форма заявки з цією послугою"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "title",
                    "pricingModel",
                    "priceUah",
                    "priceFrom",
                    "minHours",
                    "minGuests",
                    "maxGuests",
                    "bookingUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "latitude": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "longitude": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "address",
              "city",
              "nearestMetro",
              "url",
              "bookingUrl",
              "imageUrl",
              "spaceType",
              "areaSqm",
              "capacity",
              "pricePerHourUah",
              "minRentalHours",
              "acceptsBookings",
              "equipment",
              "features",
              "services",
              "description",
              "latitude",
              "longitude"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "space"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Картка простору",
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true,
        "destructiveHint": false
      },
      "securitySchemes": [
        {
          "type": "noauth"
        }
      ],
      "_meta": {
        "openai/toolInvocation/invoking": "Читаю картку простору",
        "openai/toolInvocation/invoked": "Готово",
        "securitySchemes": [
          {
            "type": "noauth"
          }
        ]
      }
    }
  ],
  "resources": [
    {
      "uri": "ui://widget/restaurant-reservation.html",
      "name": "Картка бронювання столика",
      "title": "Картка бронювання столика",
      "description": "Інтерактивна картка: вибір дати, часу, кількості гостей і підтвердження броні.",
      "mimeType": "text/html;profile=mcp-app",
      "_meta": {
        "openai/outputTemplate": "ui://widget/restaurant-reservation.html",
        "openai/widgetAccessible": true,
        "ui": {
          "prefersBorder": true,
          "csp": {
            "connectDomains": [],
            "resourceDomains": [
              "https://aoa.com.ua"
            ]
          }
        },
        "openai/widgetDescription": "Картка бронювання столика: слоти, кількість гостей, контакти і кнопка підтвердження."
      }
    }
  ]
}