Skip to main content
Glama

search_flights

Find available flights between airports by entering origin, destination, departure date, and optional return date for round trips.

Instructions

Search for available flights between two locations.

Args: origin: Origin airport code (e.g., "JFK", "LAX") destination: Destination airport code (e.g., "LHR", "CDG") departure_date: Departure date in YYYY-MM-DD format return_date: Optional return date in YYYY-MM-DD format for round trips passengers: Number of passengers (default: 1) cabin_class: Cabin class preference

Returns: Dictionary with flight search results

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYes
destinationYes
departure_dateYes
return_dateNo
passengersNo
cabin_classNoeconomy

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that the tool 'Search for available flights' but lacks details on permissions, rate limits, data freshness, or error handling. For a search tool with no annotation coverage, this is a significant gap in transparency, though it doesn't contradict any annotations.

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?

The description is appropriately sized and front-loaded with the core purpose, followed by structured Args and Returns sections. Every sentence adds value, such as examples for parameters and return format. It could be slightly more concise by integrating the return info into the main flow, but overall it's efficient and well-organized.

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?

Given the complexity (6 parameters, no annotations, but with an output schema), the description is moderately complete. It explains parameters well and notes the return format, but lacks behavioral context like search limitations or integration details. The output schema exists, so it doesn't need to detail return values, but overall completeness is adequate with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaningful semantics by explaining each parameter (e.g., 'Origin airport code (e.g., "JFK", "LAX")' and 'Optional return date in YYYY-MM-DD format for round trips'), which clarifies usage beyond the bare schema. However, it doesn't fully cover all nuances, such as format constraints for dates or cabin class implications, keeping it from a perfect score.

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 description clearly states the tool's purpose as 'Search for available flights between two locations,' which is a specific verb+resource combination. It distinguishes itself from sibling tools like search_hotels and search_destinations by focusing on flights. However, it doesn't explicitly differentiate from calculate_trip_cost, which might overlap in functionality, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to choose search_flights over calculate_trip_cost or get_travel_tips, nor does it specify prerequisites or exclusions. The usage context is implied but not explicit, leaving gaps for an AI agent to infer correctly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adrianpdm/wisnu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server