Find a Phorme gym or class
find_gym_classUse this when the user wants a gym, studio or class to train at in person, for example "a strength class in Austin this week" or "a gym near me". It returns up to five Phorme gyms, studios and other places to train in the city named or, when no city is named, within 60 km (or radius_km) of the approximate location the assistant shares, nearest or best matching first, each with its page on phor.me and its classes in the coming days with the class id, local start time, length, places left and a link to book on phor.me. When nothing matches it returns alternatives: the nearest places further out, and a home plan from a Phorme coaching brain. It reads only and shows no prices; booking a class for a signed-in user is a separate step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | The city the user named, for example "Austin". | |
| days | No | How many days ahead to look. Default 7. | |
| radius_km | No | How far to look, in km. Default 60. Use a larger one only when the user said they would travel. | |
| class_type | No | The kind of class, only if the user said, for example "barbell" or "yoga". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limits | Yes | What this does not cover. Tell the user. | |
| places | Yes | Gyms, studios and other places to train, nearest or best matching first: place_id, name, kind, line, city, country, distance_km, page_url and classes (class_id, the id book_gym_class takes, then title, line, starts, minutes, spots_left, book_url). | |
| alternatives | No | When nothing matched or no class is scheduled: kind (wider_radius, other_cities, home_plan), line (what to offer), tool, and for wider_radius the nearest places further out. Offer them; never leave the user with nothing. |