Cancel a Phorme gym booking
cancel_gym_bookingUse this when a signed-in user wants to give up a class they booked, are on the waitlist for, or asked a gym for on Phorme. Confirm which class with the user first, and set confirmation to true only after they said yes. It cancels that booking for the connected Phorme account and frees the spot for the next person on the waitlist. It takes the booking id, or the class id of the booked class. Sales are final, so a paid class is not refunded. It needs a connected Phorme account with the training:write permission.
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": {
"confirmation": "<confirmation>"
},
"name": "cancel_gym_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_id | No | The class_id of the booked class, when the booking_id is not known. | |
| booking_id | No | The booking_id from book_gym_class. Give this or class_id. | |
| confirmation | Yes | Set to true only after the user said yes to cancelling this class. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | What to tell the user next. | |
| cancelled | Yes | ||
| booking_id | No |