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. The answer includes the gym's address and maps link. Each gym includes, when Gymmy has it: full address, city, country, coordinates (geo), mapsUrl (Google Maps), directionsUrl, appleMapsUrl, logoUrl (the salle logo or a sourced photo, null when there is none), listingUrl (public page, null when the gym is not public), phone, public email, website and opening hours, and null for anything Gymmy does not have. gym, classId and memberId are internal ids, used as arguments of other Gymmy tools.
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 get_my_account. Optional: found from the class when the person belongs 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 (classId). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gym | No | A gym. `gym` is its internal id, used as an argument of other Gymmy tools. | |
| kind | Yes |