Skip to main content
Glama
Autonomad1
by Autonomad1

search_flights

Read-onlyIdempotent

Search real-time flight prices and schedules from 800+ airlines between two cities. Filter by date, cabin class, stops, and passengers to find and compare airfares.

Instructions

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')
destinationYesIATA destination airport code
departure_dateYesDeparture date (YYYY-MM-DD)
return_dateNoReturn date for round-trip (YYYY-MM-DD). Omit for one-way.
passengersNoNumber of passengers (1-9, default: 1)
cabin_classNoCabin class (default: economy)
max_price_usdNoMaximum total price in USD
nonstop_onlyNoOnly show nonstop flights (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

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.