Skip to main content
Glama

Search holiday packages

search_packages
Read-onlyIdempotent

Use this when the user wants a holiday package (flight + hotel together) to one destination country. Covers packages only, not flights or hotels alone. Searches holiday packages (flight + hotel) to one destination country. Returns packages with hotel name, stars, guest rating, board, departure date and airports, total and per-person price, and a link to book on the brand's website. Filters: dates, nights, travellers, departure airport, price, stars, board and region (regionCode from get_regions of the same country, countryCode from get_countries); sorting by popularity, price, rating or stars; cursor pagination. Only countryCode is required (defaults: departures in the 2 months from dateFrom, tomorrow at the earliest, 7 nights, 2 adults). Read-only.

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": {
      "countryCode": "<countryCode>"
    },
    "name": "search_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return (default 6, max 30)
adultsNoNumber of adults (default: 2)
cursorNoCursor for pagination (from previous response's nextCursor)
dateToNoLatest return date, YYYY-MM-DD (optional, defaults to 2 months after dateFrom, or after tomorrow when dateFrom is omitted or before tomorrow). A window shorter than the stay is read as the latest departure, with the return up to the minimum stay later.
nightsNoNumber of nights (default: 7)
sortByNoSort results by: 'popularity' (default, most booked first), 'price', 'rating', or 'stars'.
dateFromNoEarliest departure, YYYY-MM-DD (optional, defaults to tomorrow; packages depart from tomorrow, so today's date counts as tomorrow). With dateTo, the window the whole trip must fit in; a window shorter than the stay is read as departures through dateTo.
maxPriceNoMaximum price for the whole group (all travellers together, not per person) in the local currency (optional)
maxStarsNoMaximum hotel star rating 1-5 (optional)
mealTypeNoMeal plan filter (also called board / meal plan): 'breakfast' (BB), 'half-board' (HB), 'full-board' (FB), 'all-inclusive' (AI), or 'room-only' (RO)
minPriceNoMinimum price for the whole group (all travellers together, not per person) in the local currency (optional)
minStarsNoMinimum hotel star rating 1-5 (optional)
nightsMaxNoMaximum number of nights of a flexible range (optional, together with nightsMin). When set, 'nights' is ignored.
nightsMinNoMinimum number of nights of a flexible range (optional, together with nightsMax). When set, 'nights' is ignored.
sortOrderNoSort order: 'asc' (ascending) or 'desc' (descending). Default depends on sort type.
regionCodeNoOptional region or city code from get_regions for the same countryCode (e.g. 're-ACA'); a code of another country is rejected. Only codes returned by get_regions are valid: a code built from a city name (e.g. 're-NAP') is not one, and is ignored (the whole country is searched). Narrows the search.
countryCodeYesTwo-letter destination country code (e.g. 'ES' for Spain, 'GR' for Greece, 'TR' for Turkey, 'EG' for Egypt), as listed by get_countries. Must be a code returned by get_countries; other codes are rejected, so a guessed code fails.
childrenAgesNoAges of children (optional, empty array if no children)
departureAirportNoDeparture airport IATA code, one of: ABZ, BHX, BRS, CWL, EMA, EDI, GLA, LBA, LPL, LGW, LHR, LTN, STN, MAN, NCL, BFS. Omitted = all of them. Another airport is not served; the search then covers all of these and says so.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / countryCode / description
      Previous value: -"Two-letter destination country code (e.g. 'ES' for Spain, 'GR' for Greece, 'TR' for Turkey, 'EG' for Egypt), as listed by get_countries."New value: +"Two-letter destination country code (e.g. 'ES' for Spain, 'GR' for Greece, 'TR' for Turkey, 'EG' for Egypt), as listed by get_countries. Must be a code returned by get_countries; other codes are rejected, so a guessed code fails."
    • changedInput schema / properties / departureAirport / description
      Previous value: -"Departure airport IATA code (e.g. 'WAW' or 'KTW' on eSky, 'MAN' or 'LGW' on Thomas Cook UK). Omitted = all available departure airports."New value: +"Departure airport IATA code, one of: ABZ, BHX, BRS, CWL, EMA, EDI, GLA, LBA, LPL, LGW, LHR, LTN, STN, MAN, NCL, BFS. Omitted = all of them. Another airport is not served; the search then covers all of these and says so."
    • changedInput schema / properties / mealType / description
      Previous value: -"Meal plan filter: 'breakfast' (BB), 'half-board' (HB), 'full-board' (FB), 'all-inclusive' (AI), or 'room-only' (RO)"New value: +"Meal plan filter (also called board / meal plan): 'breakfast' (BB), 'half-board' (HB), 'full-board' (FB), 'all-inclusive' (AI), or 'room-only' (RO)"
    • changedInput schema / properties / regionCode / description
      Previous value: -"Optional region or city code from get_regions for the same countryCode (e.g. 're-ACA'); a code of another country is rejected. Narrows the search."New value: +"Optional region or city code from get_regions for the same countryCode (e.g. 're-ACA'); a code of another country is rejected. Only codes returned by get_regions are valid: a code built from a city name (e.g. 're-NAP') is not one, and is ignored (the whole country is searched). Narrows the search."
  2. Changed2 schema fields changed
    • changedInput schema / properties / maxPrice / description
      Previous value: -"Maximum price in the local currency (optional)"New value: +"Maximum price for the whole group (all travellers together, not per person) in the local currency (optional)"
    • changedInput schema / properties / minPrice / description
      Previous value: -"Minimum price in the local currency (optional)"New value: +"Minimum price for the whole group (all travellers together, not per person) in the local currency (optional)"
  3. Changed2 schema fields changed
    • changedInput schema / properties / dateFrom / description
      Previous value: -"Earliest departure, YYYY-MM-DD (optional, defaults to tomorrow; packages depart from tomorrow, so today's date counts as tomorrow). With dateTo, the window the whole trip must fit in."New value: +"Earliest departure, YYYY-MM-DD (optional, defaults to tomorrow; packages depart from tomorrow, so today's date counts as tomorrow). With dateTo, the window the whole trip must fit in; a window shorter than the stay is read as departures through dateTo."
    • changedInput schema / properties / dateTo / description
      Previous value: -"Latest return date, YYYY-MM-DD (optional, defaults to 2 months after dateFrom, or after tomorrow when dateFrom is omitted or before tomorrow). With dateTo, it must be at least the minimum nights after dateFrom; a shorter window is rejected."New value: +"Latest return date, YYYY-MM-DD (optional, defaults to 2 months after dateFrom, or after tomorrow when dateFrom is omitted or before tomorrow). A window shorter than the stay is read as the latest departure, with the return up to the minimum stay later."
  4. Changed1 schema field changed
    • changedInput schema / properties / dateTo / description
      Previous value: -"Latest return date, YYYY-MM-DD (optional, defaults to 2 months from now). At least the minimum nights after dateFrom; a shorter window is rejected."New value: +"Latest return date, YYYY-MM-DD (optional, defaults to 2 months after dateFrom, or after tomorrow when dateFrom is omitted or before tomorrow). With dateTo, it must be at least the minimum nights after dateFrom; a shorter window is rejected."
  5. Changed1 schema field changed
    • changedInput schema / properties / dateFrom / description
      Previous value: -"Earliest departure, YYYY-MM-DD (optional, defaults to tomorrow). With dateTo, the window the whole trip must fit in."New value: +"Earliest departure, YYYY-MM-DD (optional, defaults to tomorrow; packages depart from tomorrow, so today's date counts as tomorrow). With dateTo, the window the whole trip must fit in."
  6. Changed3 schema fields changed
    • addedInput schema / properties / mealType / enum
      Added value: +[
      +  "breakfast",
      +  "half-board",
      +  "full-board",
      +  "all-inclusive",
      +  "room-only"
      +]
    • addedInput schema / properties / sortBy / enum
      Added value: +[
      +  "popularity",
      +  "price",
      +  "rating",
      +  "stars"
      +]
    • addedInput schema / properties / sortOrder / enum
      Added value: +[
      +  "asc",
      +  "desc"
      +]
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the trailing 'Read-only' is redundant. What the description genuinely adds is the return payload — hotel name, stars, guest rating, board, departure date and airports, total and per-person price, and a booking link — which matters because there is no output schema, plus cursor pagination and the defaulting behavior.

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?

It is front-loaded with the usage decision and reads as one dense, well-ordered paragraph. There is some redundancy — the purpose is restated twice ('Use this when the user wants a holiday package' then 'Searches holiday packages (flight + hotel) to one destination country') and the defaults are repeated from the schema — but no sentence is wholly wasted.

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?

For a 19-parameter search tool with no output schema, the definition covers the essentials: what it returns, how pagination works, which parameters are required versus defaulted, and where the code values must come from. An agent could construct a correct first call from this description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by compactly summarizing the filter surface, sort options, and the only-required-parameter rule with its defaults. It also clarifies the cross-parameter relationship between regionCode and countryCode (region must belong to the same country), which is easy to miss when scanning 19 properties.

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 gives a specific verb and resource ('Searches holiday packages (flight + hotel) to one destination country') and immediately bounds the scope: 'Covers packages only, not flights or hotels alone.' That scope statement plus the explicit code-dependency pointers to get_regions and get_countries let an agent distinguish this from sibling lookup tools 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the triggering user intent ('Use this when the user wants a holiday package... to one destination country'), names the exclusion ('not flights or hotels alone'), and tells the agent which prerequisite tools supply valid countryCode/regionCode values. Nothing about when to reach for this tool 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