Etapa: find the rider's event
etapa_find_eventFinds the event a rider is training for, from what they say in their own words: a name ("the Mallorca 312") or an idea ("a gravel event in Spain in May", "a 100 km sportive near Leeds this summer"). Turn what they said into the fields you can; leave the rest out. Searches Etapa's events, and the web for a name Etapa doesn't list. Talk the matches over with the rider, one question at a time, before using one. Call again with what they add. Needs the rider signed in.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "etapa_find_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Latest date, YYYY-MM-DD (end of a month or season they named) | |
| from | No | Earliest date they'd ride it, YYYY-MM-DD (start of a month they named) | |
| name | No | The event's name or part of it, as the rider said it ("Mallorca 312", "Dragon Ride") | |
| maxKm | No | The longest distance they'd ride, in km | |
| minKm | No | The shortest distance they'd ride, in km | |
| place | No | A town or area, if they named one | |
| country | No | Country as a two-letter code (ES, GB, FR, US…) | |
| discipline | No | The kind of event, if they said: sportive, gravel, mtb, charity, triathlon, duathlon |