Book a class
book_classBooks a class at one of the signed-in member's gyms with their own membership (or puts them on the waitlist when full, if the gym allows). Uses the gym's booking rules. No payment is taken here.
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_id": "<class_id>",
"date": "<date>"
},
"name": "book_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gym | No | Gym id (from my_schedule or my_gyms). Optional: found from the class when you belong to several gyms. | |
| date | Yes | Class date (YYYY-MM-DD). | |
| locale | No | Answer language: fr (default), en, pt, es or de. Pass en when the person writes in English. | |
| class_id | Yes | Class id (from my_schedule). |