Skip to main content
Glama

plan_open_jaw_trip

Plan an open-jaw trip to two countries, flying into one and returning from the other. Searches nearby departure airports and compares both directions to show flight options and total prices.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
glNoCountry code
hlNoLanguage code
stopsNo0=Any, 1=Nonstop only, 2=1 stop or fewer, 3=2 stops or fewer
adultsNoNumber of adults
currencyNoCurrency code (e.g. GBP, EUR, USD)
max_priceNoMaximum price per person per leg
return_dateYesReturn departure date (YYYY-MM-DD)
travel_classNo1=Economy, 2=Premium economy, 3=Business, 4=First
destination_aYesFirst destination country or city (e.g. 'Argentina'). The trip will fly into OR out of this destination.
destination_bYesSecond destination country or city (e.g. 'Chile'). The trip will fly into OR out of this destination.
outbound_dateYesOutbound departure date (YYYY-MM-DD)
departure_locationYesDeparture city or region (e.g. 'Nottingham', 'London'). All nearby airports will be searched.
max_departure_airportsNoHow many nearby UK airports to include (default 5)
max_destination_airportsNoHow many airports per destination to include (default 2)
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that it searches all nearby departure airports at once, compares two directions, returns ranked options with flight details and booking tokens, and uses 4 API credits total. These are important behavioral disclosures beyond a simple 'plan a trip' statement.

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 concise and front-loaded, starting with the core purpose, then an example, then the detailed options and output. Every sentence earns its place, and it avoids redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (14 parameters, no output schema), the description provides a good high-level overview of the output (ranked options, flight details, booking tokens) and the cost (4 API credits). It could go deeper into the return structure, but for a planning tool with no output schema, this is a solid summary.

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 coverage is 100% with detailed parameter descriptions already in the schema. The tool description reiterates the roles of destination_a and destination_b but adds little beyond the schema. The baseline of 3 applies because the description does not significantly enhance parameter understanding beyond what the schema provides.

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 the tool's purpose: 'Plan an open-jaw trip visiting two destinations — fly into one country and out of another without backtracking.' This is a specific verb+resource, and the example ('Nottingham to Argentina and Chile in October') helps distinguish it from sibling tools like search_flights or plan_multi_stop_trip.

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 provides clear context with the ideal use case example and explains the two itinerary directions. It does not explicitly mention when not to use this tool or alternatives, but the example and focus on open-jaw trips give a solid sense of when it is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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