Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SERPAPI_KEYSYesYour SerpAPI API key(s). Multiple keys can be comma-separated for rotation.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_flightsA

Search for flights using Google Flights data via SerpAPI. Returns best_flights and other_flights with full details (price, duration, stops, airline, aircraft, legroom, amenities, carbon emissions) plus price_insights (lowest price, typical range, price history).

Each result includes a booking_token (to get booking links) and for one-way results a departure_token (to get matching return flights for round-trips).

Supports one-way, round-trip, and multi-city. Filters include: nonstop only, max price, cabin class, specific airlines, departure/arrival time windows, layover duration, connecting airport exclusions, and emissions.

get_return_flightsA

After searching one-way outbound flights, use this to get matching return flight options for a selected outbound flight. Pass the departure_token from the outbound search result.

get_booking_optionsA

Get booking links and price breakdown for a specific flight. Pass the booking_token from a search_flights or get_return_flights result. Returns booking options from different airlines/OTAs with direct links.

find_airportsA

Find airport IATA codes by city, region, country, or airport name. Use this before searching flights to resolve place names to airport codes — especially useful for finding all airports near a city (e.g. 'Nottingham' returns EMA, BHX, MAN, LHR...) or all major airports in a country/region (e.g. 'Argentina' returns EZE, AEP, COR...). Returns IATA code, name, city, country, and any additional cities/regions served.

explore_destinationsA

Discover flight destinations and prices from a departure airport using Google Travel Explore. Ideal for open-ended holiday planning: "Where can I fly from London in June?" or "What's cheap from EMA this summer?".

Returns a list of destinations with flight price, hotel price, best travel dates, flight duration, and stops. Use month + travel_duration for flexible date search, or outbound_date + return_date for specific dates. Filter by interest (beaches, skiing, history, etc.) or region using arrival_area_id.

Also excellent for discovering domestic/internal flights: explore from AEP (Buenos Aires domestic airport) to see all Argentine destinations, or from SCL to see Chilean domestic routes.

search_flights_flexibleA

Search for flights across a range of dates to find the cheapest day to fly. Returns one result per date sorted by price — ideal for answering "When's the cheapest time to fly to Tokyo in April?".

Uses one API credit per date searched (capped at 30 days). Failures on individual dates are returned as errors rather than failing the whole request.

compare_airport_pricesA

Find the cheapest departure airport for a trip by searching from all major airports near a location in parallel. Answers "Should I fly from East Midlands, Birmingham, or Manchester to Buenos Aires?".

Uses one API credit per airport searched (default 5, max 10). Results are sorted by cheapest price.

plan_multi_stop_tripA

Plan a multi-leg trip by searching each leg in parallel. Ideal for internal/domestic routing within a multi-country holiday: "I'll be in Buenos Aires on Oct 17, want to visit Patagonia on Oct 23, then end in Santiago on Oct 28 — what are the cheapest flights?"

Each stop is resolved to nearby airports automatically (e.g. "Patagonia" → BRC, USH, FTE, PUQ, BBA). Uses 1 API credit per leg (N-1 credits for N stops). Returns the cheapest flight per leg plus up to 3 alternatives so you can compare specific airport options (e.g. cheapest into Patagonia might be BRC, but you can see FTE/El Calafate options too).

plan_open_jaw_tripA

Plan an open-jaw trip visiting two destinations — fly into one country and out of another without backtracking. Ideal for "Nottingham to Argentina and Chile in October: what's the cheapest combination?".

Searches all nearby departure airports at once and compares two itinerary directions:

  • Option A: fly into destination_a, return from destination_b

  • Option B: fly into destination_b, return from destination_a

Returns both options ranked by total combined price (outbound + return), with flight details and booking tokens for each leg. Uses 4 API credits total.

check_price_insightsA

Check whether flight prices for a route are currently cheap, typical, or expensive. Returns price_insights data: lowest recorded price, typical price range, price level, and a human-readable context string (e.g. "Prices are 18% below typical — good time to book.").

Auto-detects round-trip vs one-way based on whether return_date is provided. Uses 1 API credit.

find_cheapest_arrival_airportA

Find the cheapest airport to fly into at a destination by comparing all airports near a location in parallel. The arrival-side counterpart to compare_airport_prices.

Answers "Which Tokyo airport is cheapest to fly into from London?" or "Should I fly into EZE or AEP in Buenos Aires?". Uses one API credit per airport (default 5, max 10). Results sorted by cheapest price.

find_stopover_flightsA

Search for a split itinerary via a stopover city — fly into a hub, spend N days, then continue to your final destination. E.g. LHR → Dubai (3 days) → NRT.

Searches: origin → stopover on outbound_date, stopover → destination on outbound_date + stopover_days. Optionally also searches destination → origin on return_date. Stopover location is resolved to airports automatically.

Uses 2 API credits (3 if return_date provided).

search_price_calendarA

Search a grid of outbound + return date combinations to find the cheapest week to fly. Answers "What's the cheapest combination of July departure and August return for LHR-JFK?".

Generates all (outbound, return) pairs from two date ranges (return must be after outbound), capped at 30 combinations searched in parallel. Returns results sorted by cheapest price with trip_days calculated.

Uses 1 API credit per date combination (max 30).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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

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