Buy and book a class
book_dropinBuys a trial, a single class or a class pack at a Gymmy gym and books the class in one go, for the signed-in person (any Gymmy account, no membership needed). First call without confirm: returns the summary (price, class) to confirm with the person. Then call with confirm: true, first_name and last_name: returns a Stripe Checkout link on the gym's own account (the spot is held 30 min), or books right away when free. Follow up with checkout_status. Nothing is charged by this tool.
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": {
"gym": "<gym>"
},
"name": "book_dropin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gym | Yes | Gymmy gym id (from search_classes). | |
| date | No | Class date (YYYY-MM-DD). | |
| locale | No | Answer language: fr (default), en, pt, es or de. Pass en when the person writes in English. | |
| confirm | No | true only after the person said yes to the summary returned by the first call. | |
| site_id | No | Site id when the gym has several. | |
| class_id | No | Class id (from search_classes). Optional with a class pack. | |
| offer_id | No | Offer id (from search_classes offers). Default: the cheapest single entry. | |
| last_name | No | The person's last name (needed with confirm). | |
| first_name | No | The person's first name (asked once, needed with confirm). |