К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-tool-booking-create.mdиндекс документации — /llms.txt

booking_create

Обновлено

Place a booking for one end user. `resource_id` may be null — that is «any free master», and the operator assigns one later. `start_at` may be null when the operator will pick the time. For a RANGE («домик с 5 по 15», «сауна с 14:00 до 18:00») pass `end_at` and let the platform count the units — it counts `daily` nights by the tenant calendar, which hand arithmetic gets wrong twice a year. `quantity` is the slot/day multiplier (default 1) and is ignored when `end_at` is given. The length must be one the service offers (`booking_search_availability` returns its `length`: `fixed` = one block, `list` = a count from `allowed_units`, `range` = from `min_units` to `max_units`; `window_start_minute`/`window_end_minute` are the pickup/return hours); otherwise QUANTITY_LIMIT, or OUTSIDE_WINDOW outside those hours. `selected_options` maps an add-on attribute key to its chosen option keys; the quote prices them; `option_quantities` gives the pieces of a selected add-on taken more than once (option key → pieces). `guests` must fit the named place (`resource_id`), otherwise BOOKING_GUESTS_OVER_CAPACITY. The booking is created as `pending`: confirming it requires a separate prepared scenario and final human confirmation. The client is shown the booking card in their chat with the bot, and the operator in the Open Lines topic of that client; do not announce it separately. Refused with a reason when the gate says no (slot taken, too soon, beyond the booking window, per-user limit reached).

Права и условия

required_scopes: ALL.

ПолеЗначение
description"Place a booking for one end user. `resource_id` may be null — that is «any free master», and the operator assigns one later. `start_at` may be null when the operator will pick the time. For a RANGE («домик с 5 по 15», «сауна с 14:00 до 18:00») pass `end_at` and let the platform count the units — it counts `daily` nights by the tenant calendar, which hand arithmetic gets wrong twice a year. `quantity` is the slot/day multiplier (default 1) and is ignored when `end_at` is given. The length must be one the service offers (`booking_search_availability` returns its `length`: `fixed` = one block, `list` = a count from `allowed_units`, `range` = from `min_units` to `max_units`; `window_start_minute`/`window_end_minute` are the pickup/return hours); otherwise QUANTITY_LIMIT, or OUTSIDE_WINDOW outside those hours. `selected_options` maps an add-on attribute key to its chosen option keys; the quote prices them; `option_quantities` gives the pieces of a selected add-on taken more than once (option key → pieces). `guests` must fit the named place (`resource_id`), otherwise BOOKING_GUESTS_OVER_CAPACITY. The booking is created as `pending`: confirming it requires a separate prepared scenario and final human confirmation. The client is shown the booking card in their chat with the bot, and the operator in the Open Lines topic of that client; do not announce it separately. Refused with a reason when the gate says no (slot taken, too soon, beyond the booking window, per-user limit reached)."
domain"booking"
name"booking_create"
platform_version"1.0.34"
required_scopes["booking:write"]
risk"write"
scope"booking:write"
title"Booking Create"

Входные параметры

booking_create: inputSchema

Результат

booking_create: outputSchema