book_class
Books a gym class occurrence by its organization and occurrence IDs and returns the booking response when available.
Instructions
Book a gym class occurrence.
Args:
organization_id: Organization identifier from ``get_classes``.
occurrence_id: Class occurrence identifier from ``get_classes``.
Returns:
Booking response payload when present, otherwise ``None``.
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": {
"organization_id": "<organization_id>",
"occurrence_id": "<occurrence_id>"
},
"name": "book_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| occurrence_id | Yes | ||
| organization_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |