Skip to main content
Glama

Stopover eSIM

Search flights

search_flights
Read-onlyIdempotent

Use this when the user asks for the cheapest flights or long-layover stopover itineraries on a route and date. Returns real, recently seen one-way fares in EUR — cheapest fare per day first on date ranges: single tickets (with stop count) and two-ticket stopovers via hubs. Each leg names the website the fare was seen on and links to Kiwi.com for booking plus a Skyscanner live-price check for its route and date. Do not use for hotels or general travel advice.

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": {
      "from": "<from>",
      "to": "<to>",
      "date": "<date>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination: IATA/metro code, country or region, e.g. LHR, IT, south-east-asia
dateYesFirst departure day YYYY-MM-DD, e.g. 2026-11-15
fromYesOrigin: IATA/metro code, country or region, e.g. GYD, LON, NL, europe
limitNoMax itineraries, 1-30 (default 20)
adultsNoAdult passengers (default 1)
dateToNoLast departure day (inclusive), max 90 days after date
infantsNoInfant passengers, max adults (default 0)
childrenNoChild passengers (default 0)
flexDaysNoAlso scan the next N days (0-14, default 3)
maxLayoverHNoMax layover hours (default 120)
minLayoverHNoMin layover hours (default 24)

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare a read-only, idempotent, non-destructive, open-world operation, and the description adds substantial context beyond them: fares are real and recently seen, priced in EUR, cheapest-per-day ordering on date ranges, single tickets carry a stop count, and two-ticket stopovers are assembled via hubs. It also discloses the downstream side effects of the result set — each leg names the source website, links to Kiwi.com for booking, and offers a Skyscanner live-price check — which is exactly the behavioral detail annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger condition is front-loaded and the four sentences each carry distinct information: when to use, what is returned, how results are sourced, and what to avoid. A few phrases are slightly dense or redundant ('real, recently seen', the Kiwi.com/Skyscanner clause) but nothing is filler.

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

Completeness5/5

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

With 11 parameters, a full-coverage schema, an output schema, and complete annotations, the description supplies everything an agent still needs: the trigger, the fare freshness and currency, the result ordering, and the stopover structure. Return-format explanation is technically redundant against the output schema, but it is not harmful and closes the remaining ambiguity about what 'stopover' means in the results.

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 description coverage is 100%, so every parameter is already documented, and the description adds only indirect hints — the stopover focus implies the layover parameters and 'cheapest fare per day first on date ranges' implies the dateTo/flexDays scanning behavior. It gives no explicit guidance on currency, cabin, or how limit interacts with the per-day cheapest ordering, so the baseline 3 is appropriate.

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 names a specific verb and resource ('search flights') and narrows the scope to cheapest fares and long-layover stopover itineraries on a route and date. It also explicitly excludes non-flight queries ('Do not use for hotels or general travel advice'), so an agent can distinguish it from the destination and booking siblings without opening any schema.

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?

It opens with a clear trigger condition ('Use this when the user asks for the cheapest flights or long-layover stopover itineraries on a route and date') and closes with an explicit exclusion for hotels and general travel advice. It stops short of naming a specific alternative tool (e.g. search_destinations) for the excluded cases, so routing in ambiguous cases is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources