Skip to main content
Glama

Search flights by route

search_flights
Read-onlyIdempotent

Today's departures on record from an airport (airport-local day; date picks another local day), optionally only those to one destination (an airport code, or a city matched as whole words) or flown by one airline: finds flights without knowing their number. coverage is on_record: the counts cover the flights on record for this airport today, not its full schedule. Counts over the matching flights: departed_today (a departure is recorded and the flight is not cancelled), past_due_not_reported (not cancelled, no recorded departure, scheduled at or before now_utc), still_to_depart (not cancelled, no recorded departure, scheduled after now_utc) and cancelled_today. flights lists the still-to-depart ones, never a cancelled one (scope day lists every matching flight of the day instead, departed and cancelled ones included; total counts the flights the scope lists, returned how many this answer holds): number, operating flight for codeshares, destination, scheduled, estimated and actual departure in UTC, status, delay in minutes from the scheduled time, verdict (delayed means more than late_threshold_minutes plus the airport's taxi_allowance_minutes; a recorded departure is not_graded with a null allowance or more than 60 minutes before its schedule), a link to its flight page and, when one is open, to its market. Without an airline filter, codeshare listings of one flight count once. The result links the gaduin.com page of the route when the destination is one airport with flights on record today, else the departure airport's page.

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": {
      "from": "<from>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoDestination airport IATA or ICAO code, or city name (e.g. JFK, KJFK or New York).
dateNoDeparture airport-local date YYYY-MM-DD, within the last 400 days or ahead. Defaults to the airport's today.
fromYesDeparture airport. Airport IATA code (e.g. LHR) or ICAO code (e.g. EGLL).
limitNoMax flights to return (1-50). Defaults to 20.
scopeNoupcoming (default) lists the still-to-depart flights; day lists every matching flight scheduled to depart that local day (with no schedule, departed on it), departed and cancelled ones included.
airlineNoAirline IATA or ICAO code (e.g. BA or BAW).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / scope / description
      Previous value: -"upcoming (default) lists the still-to-depart flights; day lists every matching flight of the day, departed and cancelled ones included."New value: +"upcoming (default) lists the still-to-depart flights; day lists every matching flight scheduled to depart that local day (with no schedule, departed on it), departed and cancelled ones included."
  2. Changed2 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Departure airport-local date YYYY-MM-DD, within the last 400 days or ahead. Defaults to the airport's today.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "upcoming (default) lists the still-to-depart flights; day lists every matching flight of the day, departed and cancelled ones included.",
      +  "enum": [
      +    "upcoming",
      +    "day"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description goes well beyond them: it discloses the on_record coverage caveat ("not its full schedule"), defines each count bucket (departed_today, past_due_not_reported, still_to_depart, cancelled_today), explains the verdict grading rule including late_threshold_minutes and taxi_allowance_minutes, and notes codeshare deduplication. This is unusually rich behavioral context for a read tool.

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 purpose is front-loaded correctly, but the body is a single dense paragraph of semicolon-joined clauses and nested parentheses that is hard to parse on first read. Most content earns its place (count definitions, verdict rule), but it would benefit substantially from being broken into sentences or bullet-style segments.

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?

There is no output schema, so the description must carry the return contract, and it does: it enumerates the count fields, the per-flight fields (number, operating flight, destination, scheduled/estimated/actual UTC times, status, delay, verdict), the link behavior, and the route-page link fallback. An agent has enough to call and interpret results without further documentation.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: date is an airport-local day, "to" accepts a city matched as whole words, and the airline filter changes codeshare counting ("Without an airline filter, codeshare listings of one flight count once"). Limit is left entirely to the schema, which is acceptable given full coverage.

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

Purpose4/5

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

States a specific verb and resource with scope: "Today's departures on record from an airport ... optionally only those to one destination ... or flown by one airline: finds flights without knowing their number." That last clause implicitly distinguishes it from flight-number lookups, but no sibling such as get_airport_departures or get_flight_status is named, so the differentiation is inferential rather than explicit.

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

Usage Guidelines3/5

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

Use is implied rather than stated: "finds flights without knowing their number" hints at when this beats a flight-number tool, and the scope parameter paragraph contrasts "upcoming" versus "day" listings. However, there is no explicit when-to-use/when-not guidance relative to the many overlapping airport and flight siblings, so selection still requires 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