Find group trips
find_group_tripsFinds trips for a group whose people leave from different towns to meet in one place on the same dates: each person's own door-to-door trip (the train, bus or car to their best airport, and the flight), one line per town, with the group's total, the longest journey and the dates that work for everyone. E.g. "Four of us want a week in Lisbon in May: two from New Haven, one each from Ithaca and Burlington." Put each town once in homes with how many people leave from it. For "where should we meet?" pass a region, countries or "anywhere" as destinations with anywhere true. For one home town, use find_trips. A month without a year means the next one coming. With no dates from the group this tool runs no search and returns the question to ask; once they name a time, or say any time suits them (flexible true), it searches. A month is enough to search: don't ask for exact dates. If a search finds nothing, say so and offer a wider window or single-town searches; never quote prices from other sources.
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": {
"homes": "<homes>",
"destinations": "<destinations>"
},
"name": "find_group_trips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How people get to the airport: public, train, bus, car or any. Leave out unless the user says: then any in the US, public elsewhere. | |
| homes | Yes | Each town people leave from, with how many: [{"town": "New Haven, CT", "travellers": 2}, {"town": "Ithaca, NY"}]. Towns, not airports; the same town twice is one line. | |
| one_way | No | True if everyone flies one way only. | |
| anywhere | No | True to find the best places to meet in the countries or regions named. | |
| currency | No | ISO code (USD, GBP, EUR). Default: the first town's currency. | |
| flexible | No | True only when the group said any time suits them: the next 3 months are searched. Otherwise pass the dates they named. | |
| priority | No | Best for the group: budget (the lowest total), time (the fewest hours) or balanced. Default balanced. | |
| same_day | No | True if everyone must leave and return on the very same days; by default within a day. | |
| depart_to | No | The window to leave in: last day. | |
| nights_max | No | Trip length in nights: longest. Default 14. | |
| nights_min | No | Trip length in nights: shortest. Default 2. | |
| depart_from | No | The window to leave in: first day. Leave out with depart_to for the next 3 months. | |
| destinations | Yes | Where to meet: airport codes (LIS), cities, country codes (PT), a region, a continent (Europe) or "anywhere". | |
| max_ground_hours | No | The most hours from the front door to the departure airport, one way. Default 8.5: farther airports are left out and named in the answer. Set it only when the user says how far they would travel to the airport, or to include the far ones the answer names. |