Skip to main content
Glama

Search flights

search_flights
Read-only

Cheapest one-way flights between two cities, or from one city to anywhere. Dates are a departure window; a specific destination is checked against the airlines live when its prices are missing.

Input Schema

NameRequiredDescriptionDefault
toNoArrival city name; omit to search anywhere.
fromYesDeparture city name, exactly as returned by search_cities.
limitNoMaximum number of flights to return, default 20, max 50.
date_toNoLatest departure date, YYYY-MM-DD; defaults to date_from.
date_fromYesEarliest departure date, YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
noteYes
flightsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior1/5

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

The annotations declare openWorldHint=false, i.e. a closed-world tool, yet the description states a destination is "checked against the airlines live when its prices are missing", which describes exactly the kind of external live lookup that openWorldHint=true covers. That is a direct conflict between the stated behavior and the supplied annotation, so the description cannot be credited for behavioral transparency even though it usefully explains the date-window and live-fallback semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with what is returned (cheapest one-way flights) before the fallback behavior. No filler, though the live-check clause is dense and would read better as a separate sentence.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the description covers fare criterion, trip shape, date window, and destination-omission. What is missing is the relationship to plan_trips/save_trip and any hint about freshness or caching of results, leaving the agent to guess about result provenance.

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 five parameters are already documented and the baseline is 3. The description adds only the framing that date_from/date_to define a departure window rather than exact dates; `to`, `from`, and `limit` semantics are entirely carried by the schema.

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?

"Cheapest one-way flights between two cities, or from one city to anywhere" states a concrete resource, the fare criterion (cheapest), the trip type (one-way), and the two supported search shapes. It is clear on its own, but it never names or contrasts with siblings such as plan_trips, so an agent must infer the boundary between searching fares and planning a trip.

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?

Usage is implied rather than stated: omitting `to` means "search anywhere", and the date fields are framed as a departure window, which tells the agent how to shape a query. There is no explicit when-to-use/when-not guidance and no named alternative (e.g. use plan_trips when you need a multi-leg itinerary), which is the main gap given the sibling set.

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