Skip to main content
Glama

Agent Flights

Search cheapest flights

search_flights
Read-onlyIdempotent

Search cheap flights between two airports or cities and return the cheapest all-in fare plus a cheapest-sensible alternative (penalises 20h+ layovers and risky overnight transfers). Compares Kiwi.com live fares with Duffel and Aviasales data, expands nearby airports and combines self-transfer one-ways when cheaper. Strong on Africa routes (Abidjan, Dakar, Lagos, Accra, Nairobi, Casablanca). One-way, return, multi-passenger, cabin and bag filters. Example: {"origin":"ABJ","destination":"CDG","departureDate":"2026-12-18","returnDate":"2027-01-05","flexDays":3,"currency":"XOF"}. Returns {cheapest, cheapestSensible, offers[], sources, notes}.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax offers returned. Default 20.
adultsNoAdults (12+). Default 1.
originYesDeparture airport or city: a 3-letter IATA airport/metro code (ABJ, DSS, LOS, CDG, LON, NYC) or a plain name ("Abidjan", "Paris").
infantsNoInfants on lap (<2). Default 0.
childrenNoChildren (2–11). Default 0.
currencyNoISO 4217 display currency. Default EUR. XOF is shown as FCFA.
flexDaysNoAlso search ± this many days around the dates. 3 finds the cheapest fare that exists.
maxStopsNoMaximum stops per direction. 0 = direct only.
cabinClassNoCabin. Default economy.
returnDateNoReturn date YYYY-MM-DD. Omit for one-way.
destinationYesArrival airport or city: a 3-letter IATA airport/metro code (ABJ, DSS, LOS, CDG, LON, NYC) or a plain name ("Abidjan", "Paris").
departureDateYesOutbound date, YYYY-MM-DD.
nearbyAirportsNoInclude metro and alternate airports (LON, PAR, NYC, DKR/DSS, LOS/ABV, ACC/KMS). Default true.
allowSelfTransferNoAllow self-transfer itineraries. Default true.
stitchSelfTransferNoCombine one-way tickets through hubs (CMN, LFW, LIS, IST…) when cheaper. Default true.
checkedBagsPerAdultNoChecked bags per adult to price in. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.