Skip to main content
Glama

get_data_flights_airlines

Read-onlyIdempotent

Retrieve airline records filtered by name, alliance, or active status to build searchable directories or identify currently operating carriers.

Instructions

Overview

Retrieve a list of airlines with optional filtering by name, alliance, and active status.

When to Use

  • Airline directory - Build a searchable list of airlines for display or filtering

  • Alliance filtering - Filter airlines by alliance membership (Star Alliance, oneworld, SkyTeam)

  • Active airlines - Retrieve only currently operating airlines

What You Get

  • Full airline records including name, IATA/ICAO codes, country, alliance, and logo URL

  • Alliance membership for each airline

  • Active status to identify currently operating carriers

  • Filtered results based on query, alliance, and active status parameters

Quick Start

Call with no parameters to get all airlines. Use q to search by name, alliance to filter by alliance, and activeOnly=true to exclude inactive carriers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoSearch query (e.g., 'AA' or 'American')
limitNoMaximum number of results
allianceNoFilter by airline alliance
activeOnlyNoOnly return currently active airlines

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: what fields come back (name, IATA/ICAO, country, alliance, logo), that no parameters means 'all airlines', and how each filter narrows results. Pagination/limit default behavior is the one undisclosed trait.

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 headers are front-loaded and scannable, but a README-style structure with four sections is heavy for a four-parameter read-only list call. 'What You Get' largely restates the Overview's filter list, so several bullets do not earn their place.

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

Completeness4/5

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

With no output schema in play, the description correctly compensates by enumerating returned fields and default behavior, and it explains every filter. The only real gap is result-size/limit semantics for a list endpoint that could return the full airline directory.

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% with an enum and worked example ('AA' or 'American'), so the schema carries most parameter meaning. The description's added value is modest — it maps enum values to human-readable alliance names, which is helpful but not essential given the schema already enumerates them.

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?

The overview states a specific verb and resource ('Retrieve a list of airlines') with its filter dimensions, so an agent immediately knows what the tool returns. It does not, however, differentiate itself from the very close sibling get_data_flights_airlines_iatas / _iatacode, so the boundary must be inferred from names alone.

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?

A dedicated 'When to Use' section gives three concrete scenarios (directory listing, alliance filtering, active-only retrieval) and a Quick Start that tells the agent the no-parameter default. It never names or excludes the sibling airline IATA tools, so alternative-selection guidance is incomplete.

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

Deploy Server

Other Tools