Skip to main content
Glama

Search flights

search_flights
Read-onlyIdempotent

Searches flights between two airports, round trip or one way. Returns the top 6 by value (price plus a penalty for long trips and extra stops; limit up to 20) with total_available and a summary; each flight has the total price for all adults, outbound and return (duration_minutes, stops, layovers, departs, arrives, carriers, tight_connection under 60 minutes) and a book_link to the Adonde flight search. Reads only; nothing is booked. travel_time_total is out plus back: never present it as one flight's duration; quote each direction. Use after stays and tours for a built trip (get_trip's next has the dates); ask for the origin airport if unknown.

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>",
      "depart": "<depart>",
      "adults": "<adults>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many options to return, up to 20 (default 6).
adultsYesNumber of adult passengers, 1 to 8.
departYesOutbound date, YYYY-MM-DD.
originYesDeparture airport, 3-letter IATA code, e.g. CHS.
returnNoReturn date, YYYY-MM-DD; omit for one way.
destinationYesArrival airport, 3-letter IATA code, e.g. LIS.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond: it discloses the ranking heuristic (price plus penalty for long trips and extra stops), the book_link destination, the tight_connection threshold (<60 min), and the travel_time_total semantics with an explicit warning not to present it as one flight's duration. That is substantive behavioral context an agent cannot get from 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?

Front-loaded with purpose and result shape, then return-field detail, then usage guidance. It is a dense single paragraph and slightly packed with parenthetical field lists, but nearly every clause carries information; only the "Reads only; nothing is booked" line mildly restates readOnlyHint.

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

Completeness5/5

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

No output schema exists, so the description carries the full burden of explaining return values, and it does: total_available, summary, per-flight outbound/return structure, duration, stops, layovers, carriers, and book_link. Combined with the travel_time_total caveat, an agent has enough to call and to report results correctly.

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 coverage is 100%, so the baseline is 3; the description adds meaning the schema does not, notably that prices are "the total price for all adults" and that omitting return yields one way. It does not elaborate on airport-code validation, but the schema already enforces that pattern.

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 and resource ("Searches flights between two airports, round trip or one way") and immediately characterizes the result set (top 6 by value, limit up to 20). No sibling tool covers flights, so differentiation is implicit, but the scope is unambiguous.

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

Usage Guidelines5/5

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

Explicitly routes usage: "Use after stays and tours for a built trip (get_trip's next has the dates)" names the sequencing and the sibling that supplies the dates, and "ask for the origin airport if unknown" handles the missing-input case. This is when-to-use plus a fallback, not just context.

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