Skip to main content
Glama

search_flights

Read-onlyIdempotent

Search airline flights / airfares between two cities by date, cabin class (economy / premium economy / business / first), and number of passengers. Returns available flights from 800+ airlines (Duffel) with real-time pricing, schedules, and stops. Uses IATA airport codes (e.g., MIA, JFK, LAX, LHR). Use this when the user wants to book a flight, fly somewhere, find airfare, or compare airlines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYesIATA origin airport code (e.g., 'MIA', 'JFK', 'LAX')
passengersNoNumber of passengers (1-9, default: 1)
cabin_classNoCabin class (default: economy)
destinationYesIATA destination airport code
return_dateNoReturn date for round-trip (YYYY-MM-DD). Omit for one-way.
nonstop_onlyNoOnly show nonstop flights (default: false)
max_price_usdNoMaximum total price in USD
departure_dateYesDeparture date (YYYY-MM-DD)

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate readOnly and idempotent. Description adds context: real-time pricing from 800+ airlines (Duffel), schedules, stops. No contradiction with 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?

Two sentences with maximum information density. First sentence lists core parameters, second adds source and data richness. No fluff.

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?

Describes return content (flights, pricing, schedules, stops). No output schema exists, but the description gives a reasonable picture of what the agent will receive. Could mention pagination or limits.

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 coverage is 100%, so the schema fully documents parameters. The description only summarizes key parameters without adding new semantic meaning beyond the schema.

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 clearly states it searches airline flights/airfares between two cities with specific parameters. It distinguishes from sibling tools (e.g., search_hotels, search_transport) by focusing on flights.

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?

Explicitly says 'Use this when the user wants to book a flight, fly somewhere, find airfare, or compare airlines.' Lacks negative guidance, but given sibling diversity, it's clear enough.

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

A4.4/5.0
Disambiguation5/5

Each search tool targets a distinct travel domain (flights, hotels, activities, dining, events, transport), and create_booking_intent handles the booking flow separately. No overlapping purposes; get_capabilities is clearly meta.

Naming Consistency5/5

All search tools follow a consistent 'search_<domain>' pattern, while the other two tools use verb_noun ('create_booking_intent', 'get_capabilities'). The naming is uniformly predictable and clear.

Tool Count5/5

8 tools is well-scoped for a travel planning server, covering the major travel components (flights, hotels, activities, dining, events, transport) plus booking and capabilities. No redundancy or bloat.

Completeness5/5

The tool surface covers the full travel planning lifecycle: search across all key categories, then create a booking intent for flight/hotel/trip. Activities/events are intentionally handled after landing on the web, so no critical gaps exist.

Resources