Book a Phorme gym class
book_gym_classUse this when a signed-in user wants a place in one class at a Phorme gym or studio. Confirm the class, the day and time, and the gym with the user first, and set confirmation to true only after they said yes. It books the class for the connected Phorme account: booked when there is a spot, on the waitlist when it is full, a spot held for 15 minutes when the class is paid, or a request the gym is told about when the gym has not opened booking on Phorme yet. A paid class is finished from the gym's page on phor.me. This tool takes no payment, gives no payment link, names no amount and never sells a subscription or membership. Booking the same class again returns the same booking. It needs a connected Phorme account with the training:write permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_id | Yes | The class_id of the class, from find_gym_class. | |
| place_id | No | The place_id of its gym or studio, from the same find_gym_class result. | |
| confirmation | Yes | Set to true only after the user said yes to this class, day, time and gym. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | What to tell the user next. | |
| class | No | title, starts (local time at the gym) and minutes. | |
| place | No | name, city and page_url of the gym or studio. | |
| status | Yes | booked: the user is in. waitlisted: the class is full; Phorme moves them up if a spot opens. pending_payment: the class is paid and the spot is held 15 minutes; they finish booking it from place.page_url. requested: the gym is told they asked; held up to 7 days, not a booking yet. book_on_phorme: nothing was booked; give them book_url. | |
| book_url | Yes | The class page on phor.me. | |
| booking_id | Yes | The booking, for cancel_gym_booking. |