Skip to main content
Glama

Flights MCP

search_flights

Find flight options by specifying segments, passengers, class, currency, and locale. Retrieve search_id and results internally for further filtering using get_flight_options. Supports multi-city, round-trip, and one-way searches.

Instructions

Search for flights using the Aviasales Flight Search API. This tool performs search based on the provided flight segments, number of passengers, trip class, currency, and locale. It provides search_id and description of search results and saves found options internally.After receiving the result client can use get_flight_options tool to retrieve the found options with more granular filters.IMPORTANT: All times are local to departure/arrival locations and use HH:MM 24-hour format.IMPORTANT: Call this tool as many times as needed to find the best flight options.

Input Schema

NameRequiredDescriptionDefault
requestYes

Input Schema (JSON Schema)

{ "$defs": { "SearchRequestModel": { "description": "Search request model for Travelpayouts Flight Search API.", "properties": { "adults": { "default": 1, "description": "Number of adult passengers (12 years old and older)", "maximum": 9, "minimum": 1, "title": "Adults", "type": "integer" }, "children": { "default": 0, "description": "Number of children (2-11 years old)", "maximum": 6, "minimum": 0, "title": "Children", "type": "integer" }, "currency": { "default": "USD", "description": "Currency code (default is USD)", "title": "Currency", "type": "string" }, "infants": { "default": 0, "description": "Number of infants (under 2 years old)", "maximum": 6, "minimum": 0, "title": "Infants", "type": "integer" }, "locale": { "default": "en", "description": "Locale for the response (default is en). These are the supported locales: en-us, en-gb, ru, de, es, fr, pl", "title": "Locale", "type": "string" }, "segments": { "description": "List of CONNECTED flight segments for the same journey. Each segment represents one leg of a multi-city trip or round trip.\n IMPORTANT: Do NOT use multiple segments for alternative dates of the same route. For flexible dates, perform separate searches.\n \n Examples:\n - One way: [{'origin': 'SFO', 'destination': 'LAX', 'date': '2023-10-01'}]\n - Round trip: [{'origin': 'SFO', 'destination': 'LAX', 'date': '2023-10-01'}, {'origin': 'LAX', 'destination': 'SFO', 'date': '2023-10-15'}]\n - Multi-city: [{'origin': 'SFO', 'destination': 'LAX', 'date': '2023-10-01'}, {'origin': 'LAX', 'destination': 'JFK', 'date': '2023-10-05'}]\n \n For alternative dates (e.g., 'July 13 OR July 14'), use separate calls of this tool.", "items": { "$ref": "#/$defs/SearchRequestSegmentModel" }, "title": "Segments", "type": "array" }, "trip_class": { "default": "Y", "description": "Trip class - single letter: Y for economy, C for business. Default is Y (economy class)", "title": "Trip Class", "type": "string" } }, "required": [ "segments" ], "title": "SearchRequestModel", "type": "object" }, "SearchRequestSegmentModel": { "properties": { "date": { "description": "Departure date in YYYY-MM-DD format", "title": "Date", "type": "string" }, "destination": { "description": "Destination IATA (this can be airport IATA or in case city has multiple airports better to use city IATA). The IATA code is shown in uppercase letters LON or MOW", "title": "Destination", "type": "string" }, "origin": { "description": "Origin IATA (this can be airport IATA or in case city has multiple airports better to use city IATA). The IATA code is shown in uppercase letters LON or MOW", "title": "Origin", "type": "string" } }, "required": [ "origin", "destination", "date" ], "title": "SearchRequestSegmentModel", "type": "object" } }, "properties": { "request": { "$ref": "#/$defs/SearchRequestModel", "title": "Request" } }, "required": [ "request" ], "type": "object" }

You must be authenticated.

Other Tools from Flights MCP

Related Tools

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/maratsarbasov/flights-mcp'

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