check_availability
Check whether one class session can take a group of a given size, right now. An "opening" is a scheduled class session on a specific date and time. Use get_classes_and_availability first to find opening IDs. Returns "available" (true or false) and "availableSpots". When false, "reason" says why — "not_enough_spots" (fewer seats left than asked; availableSpots gives how many), "sold_out", "closed" (the bakery is not taking bookings for this session), "cancelled", "private" (reserved for a private group), "past" — and "message" puts it in a sentence. An openingId that names no session is an error: get current IDs from get_classes_and_availability.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"openingId": "<openingId>",
"ticketCount": "<ticketCount>"
},
"name": "check_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openingId | Yes | The opening ID (from get_classes_and_availability results) | |
| ticketCount | Yes | Number of spots needed (group size), 1 or more |