Skip to main content
Glama

Duffel Flight Search

duffel_flight_search
Read-onlyIdempotent

Search flights (with pricing) from to on — returns the 5 cheapest real, bookable offers from the Duffel Flights API, each with total price, airline, and per-segment flight numbers/times. Pass return_date for a round trip. This is REAL flight inventory: use a Duffel test token (duffel_test_...) for sandbox results. Example: duffel_flight_search({ origin: "JFK", destination: "LHR", departure_date: "2026-08-15", passengers: 2, cabin_class: "economy", apiKey: "duffel_test..." })

Input Schema

NameRequiredDescriptionDefault
originYesOrigin airport IATA code, e.g. "JFK"
_apiKeyYesYour Duffel access token (from duffel.com). A test token "duffel_test_..." works against the sandbox.
passengersNoNumber of adult passengers (default 1, max 9)
cabin_classNoOptional cabin: economy, premium_economy, business, or first
destinationYesDestination airport IATA code, e.g. "LHR"
return_dateNoOptional return date (YYYY-MM-DD). If given, searches a round trip (destination back to origin on this date).
departure_dateYesOutbound date in YYYY-MM-DD format, e.g. "2026-08-15"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "duffel_test_...",
      +    "cabin_class": "economy",
      +    "departure_date": "2026-08-15",
      +    "destination": "LHR",
      +    "origin": "JFK",
      +    "passengers": 1
      +  },
      +  {
      +    "_apiKey": "duffel_test_...",
      +    "cabin_class": "business",
      +    "departure_date": "2026-09-10",
      +    "destination": "CDG",
      +    "origin": "LAX",
      +    "passengers": 2,
      +    "return_date": "2026-09-20"
      +  }
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate a safe, idempotent read operation (readOnlyHint, idempotentHint, destructiveHint). The description adds value by specifying that the tool returns exactly the 5 cheapest offers from the Duffel Flights API, that it uses real inventory accessible via a token, and that a test token works for sandbox. No contradictions 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?

The description is compact yet comprehensive: a single sentence conveys the main action, then key details about the result, and a concrete example. Every sentence is necessary and well-structured. The front-loading of the purpose is effective.

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?

Despite no output schema, the description thoroughly explains what the tool returns (total price, airline, per-segment flight numbers/times) and that it returns 5 cheapest offers. All 7 parameters are documented in the schema, and the description clarifies the real-world data source. The example demonstrates usage with typical parameters.

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%, and the schema already explains all parameters clearly. The description adds minimal semantic value beyond the schema, except for the example showing a full invocation. Baseline is 3 for high coverage; the example slightly raises value but not enough for a 4.

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 flights with pricing, specifying the return of the 5 cheapest real offers along with total price, airline, per-segment flight details. The verb 'Search' combined with the resource 'flights' and scope definition ('real, bookable') makes the tool's purpose unmistakable. No sibling tool competes for this functionality.

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?

The description explicitly says when to use (to find real flight inventory) and includes an example with a test token for sandbox usage. It does not explicitly state when not to use, but the sibling list contains no similar tools, so the context is sufficient. The mention of real vs sandbox data provides clear context for testing.

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.