Find alternatives
find_alternativesFind tours similar to one TripWays tour that have open start times on a date, or a date range of up to 31 days, for a group. Pass the tour the traveler wanted (bokun_id), the date, and party_size or travelers. Returns up to limit similar tours (1 to 5, default 3), each with its card and up to three open start times with seats left, plus the original tour's own status for those dates. It reads several live calendars, so it can take a few seconds.
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": {
"bokun_id": "<bokun_id>",
"date": "<date>"
},
"name": "find_alternatives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| limit | No | ||
| bokun_id | Yes | ||
| date_end | No | Inclusive end; default = date. Max 31 days. | |
| travelers | No | Simple ages; mapped to occupied seats. Used only when party_size is omitted. | |
| party_size | No | Occupied seats to keep. Wins over travelers when both are set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| error | No | Present when ok is false. code: tour_not_found, destination_not_found, destination_ambiguous, or unpriced. message is written for the traveler. | |
| source | No | The tour that was asked about and its own status for these dates. | |
| checked | No | How many similar tours' calendars were read. | |
| alternatives | No |