Skip to main content
Glama

Flight Schedule

flights_schedule
Read-onlyIdempotent

Gets the current published timetable of nonstop flights between two cities: airlines, flight numbers, departure and arrival airports and times, duration, and operating periods (dates, weekdays and aircraft). Connecting flights are not listed: use flights_search for those and for fares on a date. Accepts city or airport IATA codes from places_find_location; an airport code gives its city's timetable. Results are paged: when metadata.hasMore is true, call again with page + 1. Optionally filter by airline code.

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>",
      "to": "<to>"
    },
    "name": "flights_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesArrival city or airport code (IATA, e.g., 'BKK' or 'LHR'). An airport code gives its city's timetable.
fromYesDeparture city or airport code (IATA, e.g., 'SIN' or 'LHR'). An airport code gives its city's timetable.
pageNoPage of flights, 1-based (default 1). Rarely needed: most routes fit on one page.
localeNoLocale for results (e.g., 'en', 'ar', 'zh'). If not provided, uses the locale from the user's settings. Supports BCP 47 format (e.g., 'ar-SA' resolves to 'ar').
airlineNoOptional: Filter by airline code (2-letter IATA code, e.g., 'EK', 'SQ')
pageSizeNoFlights per page (default and max 200). Use it to narrow a long answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), so the description's job is to add behavior — and it does: the result set is nonstop-only, results are paginated with a metadata.hasMore driver and page+1 retry, and airport codes collapse to their city's timetable. That is concrete operational context an agent cannot derive from the annotations.

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?

Four compact sentences, front-loaded with purpose and scope, then alternatives, then input convention, then pagination. No filler or repetition of the title; each sentence carries distinct information.

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 six-parameter read-only tool with no output schema, the description supplies what is missing elsewhere: the shape of the return (flight fields plus operating periods), the pagination contract, and the nonstop-vs-connecting boundary. Nothing an agent needs in order to call it correctly is absent.

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 100%, so all six parameters (from, to, page, locale, airline, pageSize) are already documented in the schema. The description restates the airline filter and the airport-code convention without adding syntax, defaults, or edge-case behavior beyond what the schema says. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

States a specific verb and resource — 'Gets the current published timetable of nonstop flights between two cities' — then enumerates the returned fields (airlines, flight numbers, airports, times, duration, operating periods). It explicitly carves out connecting flights to a named sibling, so an agent can distinguish it from flights_search without opening either 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?

Explicit routing: connecting flights and date-specific fares belong to flights_search, not here. It also states the input convention (city or airport IATA codes from places_find_location, airport code resolves to its city) and the paging procedure when metadata.hasMore is true. The only thing left optional is the airline filter, which is correctly marked 'Optionally'.

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