Create booking
create_bookingBook a participant into a class session. Participants can only book themselves. When the session is full the booking goes onto the waitlist (status 'waitlisted') if the session has waitlist places left, otherwise it fails with 'Kurs ist voll'.
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": {
"class_session_id": "<class_session_id>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | Default 'booked' (becomes 'waitlisted' automatically when the session is full). | |
| booking_source | No | Default 'staff' (or 'portal' for self-booking). | |
| participant_id | No | Required for admin/teacher; ignored for participants (always books themselves). | |
| class_session_id | Yes |