Open Transfer Times

v0.4.0
io.github.joelynli0110/open-transfer-times Checked 1 hour ago Published 17 days ago

Check if a flight connection is comfortable, tight or risky, with cited airport data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_connection Check a flight connection

Assess one one-stop flight connection: does the layover leave enough time to transfer? Use it for a single itinerary; to compare two or more options, use compare_connections once instead of calling this tool for each. Deducts the transfer steps that apply at the connection airport (walking, Schengen passport control, terminal change, security re-screening, baggage re-check) from the layover and returns a decision (recommend / caution / insufficient_data / avoid), a rating (comfortable / reasonable / tight / risky), confidence with reasons, ticket exposure and cited airport facts. Give arrival…

ParameterTypeDescription
from *stringOrigin airport of the first flight (IATA), e.g. BER
to *stringDestination airport of the second flight (IATA), e.g. PVG
via *stringConnection airport (IATA), e.g. IST
arrival_terminalstringArrival terminal at the connection airport, if known
arrival_timestringScheduled arrival of the first flight at the connection airport, local time, YYYY-MM-DDTHH:mm. Give both times, or layover_minutes instead.
baggage_recheckbooleantrue if checked bags must be collected and checked in again, false if not (hand luggage only, or bags checked through). On separate tickets, leave it out only if unknown: the result then says whether…
departure_terminalstringDeparture terminal at the connection airport, if known
departure_timestringScheduled departure of the second flight from the connection airport, local time, YYYY-MM-DDTHH:mm. Give both times, or layover_minutes instead.
inbound_airlinestringIATA code of the airline operating the first flight (e.g. LH), if known. Used to decide whether an airline's minimum connection time applies.
layover_minutesintegerScheduled time between arrival and departure, in minutes. Use this when the user gives only a layover duration; do not invent dates or clock times.
outbound_airlinestringIATA code of the airline operating the second flight, if known.
terminal_changebooleantrue if the user knows they change terminals, false if they know they do not. Leave out if unknown: the result then shows the margin with a possible terminal change.
ticketstringprotected = both flights on one ticket/booking; separate = self-transfer on separate tickets; unknown if not stated

compare_connections Compare and rank flight connections

Compare and rank 2–20 one-stop itineraries (for example flight search results, or options the user lists) from safest to riskiest connection. Use it whenever the user weighs options; for a single itinerary use check_connection. Ranks by decision (recommend, caution, insufficient data, avoid), then transfer quality, then ticket protection (one ticket before unknown before self-transfer), then confidence, then remaining margin, and says why each option that is not recommended is not. Each option takes times or layover_minutes, like check_connection; the optional id maps results back to your ow…

ParameterTypeDescription
options *arrayTwo to twenty itineraries to compare

get_airport_profile Get an airport's transfer profile

Return one airport's transfer allowances, whether each is a heuristic estimate or sourced, and the cited facts (with official source links) about transferring there. Use it to answer questions about an airport itself or to show sources; to judge a specific connection use check_connection, and to see which airports have a profile use list_airports. Airports without a profile return the standard baseline.

ParameterTypeDescription
airport *stringIATA airport code, e.g. LHR

list_airports List airports with transfer profiles

List the airports that have their own transfer profile, with how well each is sourced. Use it to tell the user where results are better supported; for one airport's allowances and sources use get_airport_profile. Every other airport is still accepted by the assessment tools, with the standard baseline and low confidence.