Skip to main content
Glama

whatevertrips

Plan multi-city trips

plan_trips
Read-only

Generate cheap round trips through several cities, from cached flights. Accepts one departure city (from) or up to 5 (from_cities); with several, a trip can return to a different one of them. Returns trips sorted by total price. To share or book a trip, pass its flight_ids to save_trip.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoDeparture city name, exactly as returned by search_cities. Give from or from_cities.
legsYesNumber of outbound flights before the flight home (1-7). The round trip adds one flight home, so the trip has legs+1 flights total.
limitNoMaximum number of trips to return, default 5, max 10.
date_toYesLatest return date, YYYY-MM-DD.
date_fromYesEarliest departure date, YYYY-MM-DD.
max_nightsNoMaximum nights in each city, default 3.
min_nightsNoMinimum nights in each city, default 2.
from_citiesNoSeveral departure cities (up to 5), exactly as returned by search_cities. A trip leaves from one of them and may return to any of them.
exclude_citiesNoNever visit these cities.
include_citiesNoOnly visit these cities.
exclude_countriesNoNever visit cities in these ISO country codes.
include_countriesNoOnly visit cities in these ISO country codes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
tripsYes

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.

Resources