get_tour_segments
Retrieve raw segment coordinates, surfaces, and way types for a Komoot tour to split tours by surface type and recombine gravel route sections.
Instructions
Get raw segment data (coordinates + surfaces + way types) for a tour.
Unlike get_tour_details which aggregates surface data, this returns the raw segment arrays needed for route combination: splitting tours by surface type and recombining the best gravel segments.
Args: tour_id: The Komoot tour ID.
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": {
"tour_id": "<tour_id>"
},
"name": "get_tour_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tour_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |