Skip to main content
Glama

air-routes.com

find_connections

Find flight connections between two airports (airport codes). Returns the fewest-stops tier that has any option: direct if available, else one-stop, else two-stop (up to max_stops), never a mix. Options sort by flying time; layover tiers cap at 7. Charter flights (tour-operator capacity, not bookable seat-only with the airline) are excluded unless include_charter=true, and never appear inside multi-leg itineraries. Data: scheduled passenger routes operating now, with seasonality labels — not fares, not booking, not date-specific schedules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_stopsNo
to_airportYes
from_airportYes
max_flying_minNo
include_charterNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it excels: it explains the tier selection ('fewest-stops tier... never a mix'), sorting ('sort by flying time'), layover cap ('c ap at 7'), and charter handling ('excluded unless include_charter=true, and never appear inside multi-leg itineraries'). This is rich, non-obvious behavior that an agent needs to know.

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

Conciseness5/5

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

The description is dense but purposeful: four sentences, front-loaded with the core function, then behavioral rules, then data scope. Every sentence adds distinct value with no filler or redundant restatements.

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

Completeness3/5

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

The description conveys strong behavioral context but lacks an output schema and never states the shape of returned options (e.g., what fields each connection contains). It also omits the max_flying_min parameter. For a tool with zero annotations and no output schema, this leaves meaningful gaps in the agent's ability to fully use results.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must explain parameters. It covers from_airport/to_airport as airport codes, max_stops in the tier logic, and include_charter explicitly. However, it never mentions max_flying_min, leaving that parameter's meaning entirely to the agent's inference.

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?

The description opens with a specific verb and resource: 'Find flight connections between two airports (airport codes).' It clearly distinguishes this tool from siblings like airport_destinations (which lists destinations), resolve_airport (which resolves codes), and route_detail (which gives route details) by focusing on pair-wise connection search with explicit tier logic.

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

Usage Guidelines4/5

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

The description provides clear context about when to use the tool: it returns scheduled passenger routes, explicitly stating 'not fares, not booking, not date-specific schedules,' which helps an agent avoid using it for pricing or booking. However, it does not explicitly name alternatives or state when to prefer this over airport_destinations or route_detail.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: resolving place names, listing one route's details, listing all destinations from a hub, and finding multi-leg connections. The descriptions explicitly position airport_destinations as the broader alternative to route_detail, removing ambiguity.

Naming Consistency3/5

All names are lowercase snake_case and readable, but they mix noun phrases (airport_destinations, route_detail) with imperative verbs (find_connections, resolve_airport). A more consistent verb_noun pattern like list_airport_destinations or get_route_detail would improve predictability.

Tool Count5/5

Four tools is well-scoped for a flight-route data server: resolving input, inspecting a single route, expanding a hub, and planning connections. Each tool serves a distinct query type without unnecessary bloat.

Completeness4/5

The core workflows of route lookup, hub exploration, and connection finding are covered. Minor gaps exist, such as no direct listing of inbound routes to an airport or airline-specific search, but these are workarounds via existing tools.

Resources