{"serverInfo":{"name":"BeatyBook Agent MCP","version":"1.3.0"},"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":false}},"transport":{"type":"streamable-http","endpoint":"https://beatybook.ru/mcp","method":"POST"},"authentication":{"type":"oauth2","resource":"https://beatybook.ru","protectedResourceMetadata":"https://beatybook.ru/.well-known/oauth-protected-resource","authorizationServerMetadata":"https://beatybook.ru/.well-known/oauth-authorization-server","tokenEndpoint":"https://beatybook.ru/api/agent/v1/oauth/token","authorizationEndpoint":"https://beatybook.ru/api/agent/v1/oauth/authorize","registrationEndpoint":"https://beatybook.ru/api/agent/v1/oauth/register","grantTypesSupported":["client_credentials","authorization_code","refresh_token"],"scopesSupported":["availability:read","bookings:read","bookings:write","owner:calendar:read","owner:changes:apply","owner:changes:propose","owner:proposals:write","owner:services:read","services:read"]},"tools":[{"name":"get_connection","description":"Проверить проект, часовой пояс и действующие права подключения. Для личного подключения возвращает authentication.owner_access_context: передайте его в request_owner_access до создания предложения. Ничего не меняет.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":[]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":[]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"request_owner_access","description":"Проверить права для чтения (mode=read), предложения с подтверждением на сайте (mode=propose) или применения в чате (mode=apply, по умолчанию). При нехватке прав запускает согласие OAuth владельца с минимальными правами для выбранного режима. Передайте operation, mode и непрозрачный authentication.owner_access_context из get_connection; после OAuth повторите те же аргументы. Только ready разрешает продолжать; при отказе, смене подключения или неполном согласии остановитесь. Данные не меняет, предложение не создаёт.","inputSchema":{"type":"object","properties":{"operation":{"type":"string","enum":["service_price","service_details","manual_windows"]},"mode":{"type":"string","enum":["read","propose","apply"],"default":"apply","description":"read — только чтение; propose — предложение для решения человека на сайте без права применения; apply — работа с подтверждением в чате. Выбирайте режим по просьбе пользователя."},"access_context":{"type":"string","minLength":1,"maxLength":8192,"description":"Без изменений из get_connection.authentication.owner_access_context. Это контекст проверки того же проекта и владельца, не токен доступа."}},"required":["operation","access_context"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":[]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":[]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"search_services","description":"Список услуг студии с ценами (рубли) и длительностью.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["services:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["services:read"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"get_availability","description":"Свободные окна записи. service_type_id обязателен для объектов аренды.","inputSchema":{"type":"object","properties":{"service_type_id":{"type":"integer","description":"Фильтр по услуге."},"date":{"type":"string","description":"YYYY-MM-DD (для аренды)."}},"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["availability:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["availability:read"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"get_booking","description":"Статус записи по id.","inputSchema":{"type":"object","properties":{"booking_id":{"type":"integer"}},"required":["booking_id"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["bookings:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["bookings:read"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"create_booking","description":"Создать запись. Отправляет клиенту SMS-код; запись подтверждается отдельным вызовом confirm_booking с этим кодом (подтверждение реального человека, 152-ФЗ).","inputSchema":{"type":"object","properties":{"service_type_id":{"type":"integer"},"customer_phone":{"type":"string","description":"+7XXXXXXXXXX"},"customer_name":{"type":"string"},"slot_id":{"type":"integer","description":"ID слота из get_availability."},"start":{"type":"string","description":"UTC ISO (аренда)."},"end":{"type":"string","description":"UTC ISO (аренда)."},"notes":{"type":"string"}},"required":["service_type_id","customer_phone"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":true,"idempotentHint":false}},{"name":"confirm_booking","description":"Подтвердить запись кодом из SMS (verification_id из create_booking).","inputSchema":{"type":"object","properties":{"verification_id":{"type":"string"},"code":{"type":"string"}},"required":["verification_id","code"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":true,"idempotentHint":false}},{"name":"cancel_booking","description":"Отменить запись по id. Если по правилам мастера предоплата не вернется, запись не отменяется: ошибка с текстом для клиента. Повторите с accept_no_refund=true только после его согласия.","inputSchema":{"type":"object","properties":{"booking_id":{"type":"integer"},"accept_no_refund":{"type":"boolean"}},"required":["booking_id"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["bookings:write"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":true,"idempotentHint":false}},{"name":"get_owner_services","description":"Каталог кабинета владельца и возможность предложить изменение фиксированной цены. Только личный OAuth с отдельным согласием.","inputSchema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"after_id":{"type":"integer","minimum":1,"maximum":2147483647}},"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:services:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:services:read"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"propose_service_price","description":"Предложить новую фиксированную цену одной услуги. Само цену не меняет. Покажите итог в чате; с отдельным правом owner:changes:apply после согласия пользователя доступен apply_owner_proposal, иначе review_url.","inputSchema":{"type":"object","properties":{"service_type_id":{"type":"integer","minimum":1,"maximum":2147483647},"new_price_rub":{"type":"string","maxLength":11,"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]{1,2})?$","description":"Точная сумма в рублях, например 1700.00. Не число float и не копейки."},"idempotency_key":{"type":"string","minLength":1,"maxLength":128}},"required":["service_type_id","new_price_rub","idempotency_key"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:proposals:write","owner:services:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:proposals:write","owner:services:read"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"get_owner_proposal","description":"Прочитать состояние собственного предложения этого подключения. Не подтверждает и не применяет изменение.","inputSchema":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid"}},"required":["proposal_id"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:proposals:write"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:proposals:write"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"get_owner_calendar","description":"Календарь владельца без контактов клиентов: окна, занятость, блокировки и masters (ID и имена мастеров для записи). Диапазон до 31 дня, даты UTC; masters_truncated означает неполный список.","inputSchema":{"type":"object","properties":{"start":{"type":"string","format":"date-time","maxLength":40},"end":{"type":"string","format":"date-time","maxLength":40},"limit":{"type":"integer","minimum":1,"maximum":100,"default":100},"cursor":{"type":"string","maxLength":1024}},"required":["start","end"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:calendar:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:calendar:read"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"propose_service_change","description":"Предложить новое название, длительность или видимость услуги. Само услугу не меняет. Покажите точный итог; после согласия в чате применяйте через apply_owner_proposal при наличии отдельного права, иначе review_url.","inputSchema":{"type":"object","properties":{"service_type_id":{"type":"integer","minimum":1,"maximum":2147483647},"changes":{"type":"object","minProperties":1,"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"duration_minutes":{"type":"integer","minimum":5,"maximum":720},"is_hidden":{"type":"boolean"}},"additionalProperties":false},"idempotency_key":{"type":"string","minLength":1,"maxLength":128}},"required":["service_type_id","changes","idempotency_key"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:propose","owner:services:read"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:propose","owner:services:read"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"propose_slot_change","description":"Предложить изменение одного ручного свободного окна после уточнения деталей в чате. Для создания обязательно согласуйте мастера и услуги; не подставляйте «любые» самостоятельно. Это ещё не сохранение окна.","inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["slot_create","slot_update","slot_delete"]},"slot_id":{"type":"integer","minimum":1,"maximum":2147483647},"starts_at":{"type":"string","format":"date-time","maxLength":40},"master_user_id":{"anyOf":[{"type":"integer","minimum":1,"maximum":9223372036854775807},{"type":"null"}],"description":"При создании передайте явно после уточнения в чате. null — пользователь выбрал общее окно. ID берите из masters календаря."},"service_type_ids":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"integer","minimum":1,"maximum":2147483647},"description":"При создании передайте явно. [] означает, что пользователь выбрал любые услуги; не делайте такой выбор за него."},"idempotency_key":{"type":"string","minLength":1,"maxLength":128}},"required":["kind","idempotency_key"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:calendar:read","owner:changes:propose"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:calendar:read","owner:changes:propose"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"get_owner_change_proposal","description":"Прочитать предложение изменений услуги или окна, созданное этим OAuth-подключением. Не подтверждает изменение.","inputSchema":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid","maxLength":36}},"required":["proposal_id"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:propose"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:propose"]}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false,"idempotentHint":true}},{"name":"apply_owner_proposal","description":"Применить неизменяемое предложение этого подключения (цена, услуга или ручное окно). Сначала покажите точный итог и получите явное согласие пользователя в чате. Нужен отдельный owner:changes:apply; сайт для подтверждения не требуется. Только applied означает успех.","inputSchema":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid","maxLength":36,"description":"ID ровно того предложения, итог которого пользователь согласовал в чате."}},"required":["proposal_id"],"additionalProperties":false},"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:apply"]}],"_meta":{"securitySchemes":[{"type":"oauth2","scopes":["owner:changes:apply"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":false,"idempotentHint":true}}],"documentation":"https://beatybook.ru/developers/","instructions":"https://beatybook.ru/auth.md"}