Skip to main content
Glama

search_flights

Read-only

Search live flight prices and itineraries between two airports on a date (one-way or round-trip). Returns options sorted cheapest-first with airline, duration and stops.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination airport IATA code, e.g. 'BKK'
fromYesOrigin airport IATA code, e.g. 'SFO'
adultsNoNumber of adults (default 1)
depart_dateYesDeparture date YYYY-MM-DD
return_dateNoReturn date YYYY-MM-DD (optional; omit for one-way)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint, destructiveHint=false), so the bar is lower. The description adds real value by disclosing the return contract: results are live prices sorted cheapest-first with airline, duration and stops. It omits freshness/caching caveats and result limits, but exceeds what the annotations provide.

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 dense sentences with zero filler, front-loading what is searched before what is returned. Nothing could be cut without losing information.

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, the description usefully summarizes the shape of results (sorted, with airline/duration/stops). Combined with 100% schema coverage, an agent has enough to invoke it correctly, though pagination or result-count behavior is unaddressed.

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 every parameter (from, to, depart_date, return_date, adults) is already documented with format and defaults. The description restates the airport/date pairing and confirms return_date drives round-trip, adding little beyond the schema. Baseline 3 applies.

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 (search) plus resource (flight prices and itineraries), scope (between two airports on a date), and trip type. It is unmistakable against the other search_* siblings like search_hotels and search_airbnb, which cover different domains.

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?

The one-way vs round-trip distinction implies how to use the date parameters, but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer that this is the flight-domain search tool from context rather than from guidance.

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