Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCP ServerToolsReservationsPOST

Reservations

Manage capacity reservations and find available slots for reservable items. Note that normal checkout flows typically create pending reservations automatically when a user buys a slot. This tool allows for querying inventory or creating admin bookings.

Use action="get_available_slots" to query inventory for a date range (requires catalog_item_id, from_date, to_date). Use action="create" for manual admin bookings (requires catalog_item_id, lead_id, start_time, end_time, and quantity). Use action="update" to change a reservation status (e.g. to cancelled).

Input Schema

ParameterTypeDescription
actionstringAction to perform: list, get, get_available_slots, create, update
idstringReservation UUID (required for get, update)
site_idstringSeller site UUID (defaults to current site)
catalog_item_idstringCatalog item UUID (required for create, get_available_slots)
lead_idstringLead UUID attached to the reservation (required for create)
from_datestringStart date for slot query (ISO string, e.g. 2026-07-27)
to_datestringEnd date for slot query (ISO string)
start_timestringStart time of the reservation (ISO datetime string)
end_timestringEnd time of the reservation (ISO datetime string)
quantitynumberNumber of seats/capacity to reserve (default 1)
statusstringStatus (e.g. pending, confirmed, cancelled)
limitnumberLimit results for list
offsetnumberOffset results for list

Validation

  • get_available_slots checks the reservation_schedules for the target catalog item and calculates available capacity by subtracting overlapping pending and confirmed reservations.
  • create will use the availability engine to assert the slot is valid before inserting.
  • Cancelling a reservation (via update status=cancelled) will free up capacity in the slots.

Example

{ "action": "get_available_slots", "catalog_item_id": "CAT_ITEM_ID", "from_date": "2026-07-27", "to_date": "2026-07-31", "quantity": 2 }
Last updated on