Skip to main content
Glama

search_flights

Search regular one-way or round-trip flights with live multi-platform airline and OTA booking prices. Costs 1 Flight Unit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "origin": "<origin>",
      "destination": "<destination>",
      "date": "<date>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDeparture date in YYYY-MM-DD
localeNoen-US
marketNo
originYes3-letter IATA origin code, e.g. JFK
sort_byNoprice
currencyNo
passengersNo
cabin_classNoeconomy
destinationYes3-letter IATA destination code, e.g. LHR
return_dateNoOptional return date YYYY-MM-DD for round-trip
with_booking_summaryNo
booking_summary_limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and only partially meets it. It usefully discloses two behavioral facts beyond the schema: the call costs 1 Flight Unit (a quota/rate concern) and prices are aggregated live across multiple airline and OTA sources. It says nothing about result limits, whether prices include taxes/fees, caching, or what a caller gets back apart from implied booking summaries.

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 short sentences, front-loaded with the action and scope, followed by the cost warning. There is no filler and nothing is buried.

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

Completeness2/5

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

For a 12-parameter search tool with no annotations and no output schema, the description is thin. An agent still cannot tell what a result entry looks like, how many itineraries come back, or how the remaining nine undocumented parameters change the response.

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

Parameters2/5

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

Schema description coverage is only 33% across 12 parameters, so the description needed to compensate and largely does not. It hints at return_date via "round-trip" and at with_booking_summary/booking_summary_limit via "booking prices," but locale, market, currency, sort_by, passengers, and cabin_class get no explanation of effect on results or pricing.

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?

"Search regular one-way or round-trip flights" gives a concrete verb and resource, and "live multi-platform airline and OTA booking prices" states what the results contain. The word "regular" implicitly separates it from search_hidden_city_flights, but the sibling is never named, so the differentiation is suggestive rather than explicit.

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/round-trip framing implies when the return_date parameter matters, and "Costs 1 Flight Unit" warns of a quota cost before calling. However, there is no statement about when to prefer search_fare_calendar or search_hidden_city_flights, and no exclusions or prerequisites are given.

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