Classes near a point on a day, in a time window — one call
find_classesThe whole traveller question in one call: classes across nearby gyms on a date (today, tomorrow or YYYY-MM-DD — each gym's LOCAL date) whose start falls in [from, to) gym-local, dated rows first (and, with discipline, classes named for it before others — discipline_match), each with its gym, availability state and booking link (lands_on website = no booking page held, the gym's website). Rows with recurring:true repeat on that weekday and carry no observed date. Also lists nearby gyms with no usable schedule (to phone). Same answer as GET /api/v1/classes.
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": {
"lat": "<lat>",
"lng": "<lng>"
},
"name": "find_classes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Text the class name or type must contain, e.g. hyrox. | |
| to | No | HH:MM, 24h, gym-local; exclusive | 24:00 |
| lat | Yes | ||
| lng | Yes | ||
| date | No | today | |
| from | No | HH:MM, 24h, gym-local | 00:00 |
| limit | No | ||
| radius_km | No | ||
| discipline | No | Gyms running both match either. |