Skip to main content
Glama

Find door-to-door trips

find_trips
Read-onlyIdempotent

Finds the best round trips from where someone lives, not just from one airport: it adds the train or bus to every airport they can reach and ranks all options door to door, by price, by total travel time, or balanced. Use it when someone wants flights from their home town, could fly from several airports, or asks for the cheapest or fastest way to get somewhere, e.g. "I live in New Haven: should I fly to Lisbon from JFK, Newark, Boston or Hartford?" Not for a search from one airport already chosen. For a one-way trip set one_way (the trip length is then ignored). Multi-city: search each leg as one_way only when the user gave dates for it; otherwise ask for the dates. Set mode only when the user says how they get to the airport (car, train, bus, any): by default a home in the US compares driving, a taxi to a near airport and public transport, and a home elsewhere uses the train or bus. A named departure airport is an ordinary search: pass it as from_airports, with the home town the user gave. Ask when and for how long first: with no dates from the user this tool runs no search and returns the question to ask (and a form); it searches once the user names a time, or says any time suits them (dates "flexible"). A month or holiday without a year means the next one coming; don't ask which year or to confirm a town. Travellers default to 1 and the trip length to 2-14 nights; the answer's summary names both. Any town or village works. The first search from a town we haven't seen takes about 20 seconds while we look up its train and bus connections; tell the user you're checking the connections from their town to each airport. Later searches from that town take a second or two. Give the home town and where to: airport, city or country codes, a list of them, or a region such as "Iberia" or "Southeast Asia". For "anywhere", a continent ("Asia") or "somewhere warm" it finds the cheapest places itself: pass "anywhere", "abroad" (another country) or the continent, or for warm, sunny or a beach the countries that fit the season with anywhere true; it searches the best 6 cities door to door. dates says where the dates came from: "from_user" with depart_from and depart_to, or "flexible" when the user said any time suits them; never pick dates yourself. Example call: {"home": "New Haven", "destinations": ["LIS"], "dates": "from_user", "depart_from": "2027-03-01", "depart_to": "2027-03-31", "nights_min": 5, "nights_max": 9, "travellers": 2}. For a season or a month ("next spring", "in June") pass that window yourself as depart_from and depart_to (spring = 1 Mar to 31 May of the coming year); the answer's searched window says what was searched. The widget already shows every option, so reply in at most 4 sentences with no table: Doorfarer's verdict word for word as your first sentence (don't write an assessment of your own), the headline (flight + ground = total per person), then end with close as written. Never list airports without fares and add no facts about transit, airports or the destination. Don't repeat the table or list airports without fares (with no widget, list the top 3 rows compactly: route, dates, total per person), and give a booking link exactly as returned, as a clickable link (don't shorten or rewrite it). Airports more than 8.5 hours from the door are left out and named in the answer (max_ground_hours changes that: set it only if the user says how far they would travel). Say when a ground leg is an estimate. If the answer's status isn't "ok", tell the user plainly what its note says and don't invent prices; if nothing is found, say so and don't quote prices from other sources. Keep the user's own dates, trip length and places: if nothing is found, say so and offer to widen them, instead of widening on your own. Prices are in the traveller's home currency unless currency is given, per person; use the totals the answer gives for a party and don't convert or add up prices yourself; judge a price with the answer's verdict or price_calendar, never with outside benchmarks. Prices come from recent searches on Aviasales; the Book link shows today's price. Booking links are affiliate links: Doorfarer may earn a commission if you book, at no extra cost to you. Say so when you show them, and only then. When the user picks a trip, trip_details gives it step by step with a calendar file; when they ask which month is cheapest or whether a price is good, price_calendar answers: it is the cheapest fare found for each month, or the usual price where none was found (not bookable), while find_trips shows fares seen for the real dates (bookable). If an answer is wrong or confusing, report it with send_feedback.

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": {
      "home": "<home>",
      "destinations": "<destinations>",
      "dates": "<dates>"
    },
    "name": "find_trips"
  }
}

Input Schema

NameRequiredDescriptionDefault
homeYesThe traveller's home town or village, e.g. "New Haven" or "Hamden, US". Not an airport. Add the country when the name is common.
modeNoHow the user gets to the airport: public (train or bus), train, bus, car (their own, parked at the airport), or any (car, taxi and public compete). Leave out unless the user says: then any for a home in the US, public elsewhere.
datesYes"from_user" when the user named a time (a month, season, holiday, "next week"): pass it as depart_from and depart_to. "flexible" only when the user said any time suits them ("whenever", "cheapest time"): then the next 3 months are searched. "assumed" when they said nothing about when: nothing is searched, the answer is the question to ask them.
limitNoRows to return, 1-25. Default: the picks plus the best trip from each airport.
one_wayNoTrue if the user wants one way only: then the trip length is ignored.
anywhereNoTrue to find the cheapest places anywhere in the countries or regions named, instead of searching each one's biggest airports. A continent (Asia, Europe), "anywhere" or "abroad" (outside the home country) in destinations always searches this way. For "somewhere warm" or "a beach", pass the countries that fit the season and set this.
currencyNoISO code (USD, GBP, EUR) to show prices in. Default: the traveller's home currency.
priorityNoWhat matters most: budget (the cheapest door to door), time (the fastest) or balanced. Default balanced; the picks show the cheapest, the fastest and the balanced trip either way.balanced
depart_toNoThe window to leave in: last day. A window of about six months at most, within the next year.
nights_maxNoTrip length in nights: longest. Default 14.
nights_minNoTrip length in nights: shortest. Default 2.
travellersNoAdults travelling together. Default 1.
depart_fromNoThe window to leave in: first day. Leave out with depart_to for the next 3 months. A window of about six months at most, within the next year.
destinationsYesWhere to: airport codes (LIS), city codes (NYC), country codes (PT), a region, a continent (Asia), "anywhere" or "abroad" (outside the home country).
from_airportsNoOnly these departure airports. For narrowing a previous answer.
max_ground_hoursNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dates / description
      Previous value: -"\"from_user\" whenever the user named any time at all (a month, season, holiday, \"next week\"); \"assumed\" only when they named none and you picked dates or left them out."New value: +"\"from_user\" when the user named a time (a month, season, holiday, \"next week\"): pass it as depart_from and depart_to. \"flexible\" only when the user said any time suits them (\"whenever\", \"cheapest time\"): then the next 3 months are searched. \"assumed\" when they said nothing about when: nothing is searched, the answer is the question to ask them."
    • changedInput schema / properties / dates / enum
      Previous value: -[
      -  "from_user",
      -  "assumed"
      -]New value: +[
      +  "from_user",
      +  "flexible",
      +  "assumed"
      +]
  2. Changed18 schema fields changed
    • changedInput schema / properties / depart_from / description
      Previous value: -"The window to leave in: first day. Leave out with depart_to for the next 3 months. A window of at most 183 days, within the next 12 months."New value: +"The window to leave in: first day. Leave out with depart_to for the next 3 months. A window of about six months at most, within the next year."
    • changedInput schema / properties / depart_to / description
      Previous value: -"The window to leave in: last day. A window of at most 183 days, within the next 12 months."New value: +"The window to leave in: last day. A window of about six months at most, within the next year."
    • changedInput schema / properties / destinations / description
      Previous value: -"Where to: airport codes (LIS), city codes (NYC), country codes (PT), a region, a continent (Asia), \"anywhere\" or \"abroad\" (outside the home country). At most 6."New value: +"Where to: airport codes (LIS), city codes (NYC), country codes (PT), a region, a continent (Asia), \"anywhere\" or \"abroad\" (outside the home country)."
    • addedInput schema / properties / destinations / items / maxLength
      Added value: +80
    • changedInput schema / properties / from_airports / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "maxLength": 80,
      +      "type": "string"
      +    },
      +    "maxItems": 8,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / from_airports / description
      Previous value: -"Only these departure airports. For narrowing a previous answer. At most 8."New value: +"Only these departure airports. For narrowing a previous answer."
    • removedInput schema / properties / from_airports / maxItems
      Removed value: -8
    • changedInput schema / properties / home / description
      Previous value: -"The traveller's home town or village, e.g. \"New Haven\" or \"Hamden, US\". Not an airport. Add the country when the name is common. At most 80 characters."New value: +"The traveller's home town or village, e.g. \"New Haven\" or \"Hamden, US\". Not an airport. Add the country when the name is common."
    • addedInput schema / properties / home / maxLength
      Added value: +80
    • changedInput schema / properties / limit / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 25,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / nights_max / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 180,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / nights_max / description
      Previous value: -"Trip length in nights: longest. Default 14. 1 to 180."New value: +"Trip length in nights: longest. Default 14."
    • changedInput schema / properties / nights_min / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 180,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / nights_min / description
      Previous value: -"Trip length in nights: shortest. Default 2. 1 to 180."New value: +"Trip length in nights: shortest. Default 2."
    • changedInput schema / properties / priority / enum
      Previous value: -[
      -  "budget",
      -  "time",
      -  "balanced"
      -]New value: +[
      +  "budget",
      +  "time",
      +  "balanced",
      +  "cheapest",
      +  "fastest"
      +]
    • changedInput schema / properties / travellers / description
      Previous value: -"Adults travelling together. Default 1. 1 to 9."New value: +"Adults travelling together. Default 1."
    • addedInput schema / properties / travellers / maximum
      Added value: +9
    • addedInput schema / properties / travellers / minimum
      Added value: +1
  3. Changed2 schema fields changed
    • changedInput schema / properties / priority / description
      Previous value: -"What matters most."New value: +"What matters most: budget (the cheapest door to door), time (the fastest) or balanced. Default balanced; the picks show the cheapest, the fastest and the balanced trip either way."
    • changedInput schema / properties / travellers / description
      Previous value: -"Adults travelling together. 1 to 9."New value: +"Adults travelling together. Default 1. 1 to 9."
  4. Changed2 schema fields changed
    • changedInput schema / properties / nights_max / description
      Previous value: -"Trip length in nights: longest. Default 14. 1 to 30."New value: +"Trip length in nights: longest. Default 14. 1 to 180."
    • changedInput schema / properties / nights_min / description
      Previous value: -"Trip length in nights: shortest. Default 2. 1 to 30."New value: +"Trip length in nights: shortest. Default 2. 1 to 180."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile is covered; the description goes well beyond it with first-search latency (~20s for an unseen town) versus cached later searches, the 8.5-hour ground cutoff and how max_ground_hours overrides it, non-"ok" status handling, and affiliate-link disclosure obligations. It also warns not to widen dates or invent prices, which is operationally important behavior an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is well front-loaded and most sentences carry real information, but the description is a single dense block mixing tool semantics with response-formatting rules, affiliate disclosure, and feedback escalation. It repeats itself ("airports without fares" and the no-results instruction appear twice), and the output-writing instructions would be better placed outside the tool definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter open-world search with no output schema, the description covers what an agent needs: required inputs, defaulting behavior, latency expectations, failure modes, and how to interpret the returned verdict/headline/status and price semantics (home currency, per person, Aviasales source, today's price on the Book link). Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns an extra point by adding cross-parameter logic the schema states only piecemeal (dates="flexible" vs "assumed" consequences, mode defaults varying by home country, home vs from_airports distinction, anywhere+season for "somewhere warm") plus a concrete example call. Some of this restates schema text, but the interaction rules add genuine meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Finds the best round trips from where someone lives, not just from one airport" states a specific verb and resource plus the differentiating mechanism (adding ground transport and ranking door to door). It explicitly carves out what it is not ("Not for a search from one airport already chosen"), so an agent can separate it from sibling tools without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers (user names a home town, could fly from several airports, asks for cheapest/fastest), an explicit exclusion, and routes to alternatives: trip_details when a trip is picked, price_calendar for month-cheapest or price-quality questions, send_feedback for bad answers. It also prescribes the no-dates behavior (ask first, don't search) and the multi-city handling, leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources