Skip to content
Kaizena FlowDocs
Search

Search the docs

Bookings

The owner MCP's tools for the store's bookings.

ToolWhat it doesGatePermission
booking_resourcesBooking resourcesnonebookings:read
set_working_hoursSet working hourspublicbookings:write
list_bookingsList bookingsnonebookings:read
cancel_bookingCancel bookingsendbookings:write

Booking resources

booking_resources

The people, rooms and things that can be booked (D65), as the bookings pages list them: each one's name, kind, whether it takes bookings now, its weekly hours, how many at once, the services it does and the bookings still to come. Read-only: hours are changed on the resource's page.

  • Gate: none: it runs when called

  • Permission: bookings:read

  • Scope: bookings:read

  • Feature: appointments, bookings must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
kindone of staff, unit, item, allno, default "all"staff (people), unit (rooms, places to stay), item (things to rent), or all.

Set working hours

set_working_hours

Changes the weekly hours a member of staff takes appointments (D65), as their page on Bookings does, and whether they take bookings at all. Give only the days that change: each { open: "HH:MM", close: "HH:MM" } on a 24-hour clock, or null for no appointments that day. Bookings already made stay. Rooms and things to rent have no hours: they are booked by the day. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: bookings:write

  • Scope: bookings:write

  • Feature: appointments must be on in the store

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
staffstring, 1 to 120 charactersyesThe member of staff's name, as booking_resources gives it.
weekmap of one of mon, tue, wed, thu, fri, sat, sun to objectsno, default {}Only the days that change, mon to sun.
week.{key}.openstring, matching ^\d{2}:\d{2}$yes
week.{key}.closestring, matching ^\d{2}:\d{2}$yes
takes_bookingsbooleannoFalse stops new bookings with them; true starts them again.

List bookings

list_bookings

Bookings from a day on, for a number of days: appointments, stays and rentals, with who or what is booked, the customer and the order.

  • Gate: none: it runs when called

  • Permission: bookings:read

  • Scope: bookings:read

  • Feature: appointments, bookings must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
fromstring, matching ^\d{4}-\d{2}-\d{2}$noThe first day, as 2026-10-01; today unless given.
daysinteger, 1 to 31no, default 7

Cancel booking

cancel_booking

Cancels a confirmed booking, freeing its time, and tells the customer by email if asked. Paying back is done from the order. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: send: Sends something in the store's name

  • Permission: bookings:write

  • Scope: bookings:write

  • Feature: appointments, bookings must be on in the store

  • Hints: destructive, idempotent, open world

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
bookingstring (uuid)yes
notifybooleanno, default true

Made from the API contract, version 1.57This page as Markdown

Was this page helpful?