Skip to main content
Glama

Search hotels

search_hotels
Read-only

Live hotel prices for a place and dates, anywhere in the world. Each hotel: id, name, stars, guest rating (0 to 10), area or distance from the centre, the cheapest room with its total, due_at_property_total, board, refundable, the cancellation terms in words and as a deadline, offer_id (for prebook) and offer_valid_until. result says ok, no_availability, no_match_for_filters or supplier_error; with retryable true, retry once after retry_after_seconds. Prices are the total for the whole stay for one room, in the currency asked (EUR by default), as Nuitee, the booking partner and merchant of record, charges them, with the taxes Nuitee collects included. Taxes and fees paid at the property (often a city or tourist tax) are listed in taxes_at_property, summed in due_at_property_total, and are not in the total.

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": {
      "place": "<place>",
      "checkin": "<checkin>",
      "checkout": "<checkout>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoprice (cheapest total first, default), rating (best first) or distance (closest to the centre first).
limitNoHotels per page, 1 to 60. Default 20.
placeYesA city, an area, an address or a hotel name, with or without the country and accents, a Quub destination slug, or a Google place id. A hotel name answers place.kind "hotel" and matched_hotel_id (that hotel first; null when the partner lists no hotel of that name, and the results are the hotels around its address).
adultsNoAdults in the one room, 1 to 8. Default 2.
offsetNoSkip this many hotels, for the next page (has_more says if there is one). Default 0.
checkinYesCheck-in date, YYYY-MM-DD, today (UTC) to 500 days ahead.
checkoutYesCheck-out date, YYYY-MM-DD, 1 to 30 nights after check-in.
childrenNoAges of children in the room, if any, at most 4. Quub cannot hold rooms with children yet; offers priced with children are refused by prebook.
currencyNoISO 4217 currency for the prices, default EUR.
breakfastNoOnly rooms with breakfast included.
max_priceNoMost the whole stay may cost, in the asked currency.
min_ratingNoLowest guest rating, 0 to 10.
nationalityNoGuest nationality, ISO 3166 alpha-2 (prices can depend on it). Default from the client's language, else NL.
free_cancellationNoOnly rooms that can be cancelled free of charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / children / description
      Previous value: -"Ages of children in the room, if any, at most 4."New value: +"Ages of children in the room, if any, at most 4. Quub cannot hold rooms with children yet; offers priced with children are refused by prebook."
    • changedInput schema / properties / place / description
      Previous value: -"A city, region, island, airport or landmark, with or without the country and accents, a Quub destination slug, or a Google place id."New value: +"A city, an area, an address or a hotel name, with or without the country and accents, a Quub destination slug, or a Google place id. A hotel name answers place.kind \"hotel\" and matched_hotel_id (that hotel first; null when the partner lists no hotel of that name, and the results are the hotels around its address)."
    • changedInput schema / properties / place / examples
      Previous value: -[
      -  "Lisbon",
      -  "Wroclaw, Poland",
      -  "Kotor, Montenegro",
      -  "lisbon"
      -]New value: +[
      +  "Lisbon",
      +  "Wroclaw, Poland",
      +  "Kotor, Montenegro",
      +  "lisbon",
      +  "Moxy Munich Airport"
      +]
  2. Changed27 schema fields changed
    • addedInput schema / properties / adults / examples
      Added value: +[
      +  2
      +]
    • addedInput schema / properties / breakfast
      Added value: +{
      +  "description": "Only rooms with breakfast included.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / checkin / description
      Previous value: -"Check-in date, YYYY-MM-DD, today or later."New value: +"Check-in date, YYYY-MM-DD, today (UTC) to 500 days ahead."
    • addedInput schema / properties / checkin / examples
      Added value: +[
      +  "2027-03-12"
      +]
    • addedInput schema / properties / checkin / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / checkout / examples
      Added value: +[
      +  "2027-03-14"
      +]
    • addedInput schema / properties / checkout / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • changedInput schema / properties / children / description
      Previous value: -"Ages of children in the room, if any."New value: +"Ages of children in the room, if any, at most 4."
    • addedInput schema / properties / children / examples
      Added value: +[
      +  [
      +    4,
      +    9
      +  ]
      +]
    • addedInput schema / properties / currency / examples
      Added value: +[
      +  "EUR",
      +  "USD"
      +]
    • removedInput schema / properties / currency / maxLength
      Removed value: -3
    • removedInput schema / properties / currency / minLength
      Removed value: -3
    • addedInput schema / properties / currency / pattern
      Added value: +"^[A-Za-z]{3}$"
    • addedInput schema / properties / free_cancellation
      Added value: +{
      +  "description": "Only rooms that can be cancelled free of charge.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"How many hotels, 1 to 60. Default 20."New value: +"Hotels per page, 1 to 60. Default 20."
    • addedInput schema / properties / max_price
      Added value: +{
      +  "description": "Most the whole stay may cost, in the asked currency.",
      +  "examples": [
      +    400
      +  ],
      +  "exclusiveMinimum": 0,
      +  "maximum": 10000000,
      +  "type": "number"
      +}
    • addedInput schema / properties / min_rating
      Added value: +{
      +  "description": "Lowest guest rating, 0 to 10.",
      +  "examples": [
      +    8
      +  ],
      +  "maximum": 10,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / nationality / examples
      Added value: +[
      +  "GB"
      +]
    • removedInput schema / properties / nationality / maxLength
      Removed value: -2
    • removedInput schema / properties / nationality / minLength
      Removed value: -2
    • addedInput schema / properties / nationality / pattern
      Added value: +"^[A-Za-z]{2}$"
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many hotels, for the next page (has_more says if there is one). Default 0.",
      +  "maximum": 240,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / place / description
      Previous value: -"Where: \"Lisbon\", \"Kotor, Montenegro\", \"lisbon\" (slug) or a Google place id."New value: +"A city, region, island, airport or landmark, with or without the country and accents, a Quub destination slug, or a Google place id."
    • addedInput schema / properties / place / examples
      Added value: +[
      +  "Lisbon",
      +  "Wroclaw, Poland",
      +  "Kotor, Montenegro",
      +  "lisbon"
      +]
    • addedInput schema / properties / place / maxLength
      Added value: +160
    • changedInput schema / properties / sort / description
      Previous value: -"price (cheapest total first, default) or rating."New value: +"price (cheapest total first, default), rating (best first) or distance (closest to the centre first)."
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "price",
      -  "rating"
      -]New value: +[
      +  "price",
      +  "rating",
      +  "distance"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply readOnlyHint and openWorldHint, and the description goes well beyond them: it enumerates the result states (ok, no_availability, no_match_for_filters, supplier_error), the retry policy with retry_after_seconds, the per-hotel payload fields including cancellation deadline and offer_valid_until, and the merchant-of-record and tax-inclusion model. These are exactly the behavioral traits an agent needs before quoting prices to a user.

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 opening sentence carries the purpose and the closing sentences carry the money semantics, so the important material is front-loaded. It is dense — the long field enumeration and the clause "as Nuitee, the booking partner and merchant of record, charges them" take effort to parse — but with no output schema the enumeration earns its space.

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 14-parameter, open-world search with no output schema, the description covers the missing pieces: return fields, result enum, retry behavior, and price/tax composition. An agent could construct a call, interpret a result, and hand an offer to prebook using this text 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 parameter-level baseline is 3; the description still adds meaning by defining what the money values mean — the total for the whole stay for one room, in the asked currency, with property-level taxes excluded and summed in due_at_property_total. That directly clarifies how currency and max_price should be interpreted, which the schema alone does not.

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?

"Live hotel prices for a place and dates, anywhere in the world" is a specific verb plus resource plus scope, and the reference to "offer_id (for prebook)" implicitly delineates this search stage from the sibling booking tools. An agent can tell this is the discovery/search step, not the single-hotel lookup or the booking step.

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 gives real operational guidance on when and how to call it: offers carry offer_id and offer_valid_until for prebook, and error results say to "retry once after retry_after_seconds" when retryable is true. What it lacks is an explicit statement of when NOT to use it (e.g. for an existing reservation or a known hotel's details via get_hotel).

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