Skip to main content
Glama

Search hotels

search_hotels
Read-onlyIdempotent

Search live availability and prices of directly-contracted hotels, apartments and villas. destination: city, area, region, hotel name or ISO country code (not needed on a hotel's own connector). Dates YYYY-MM-DD. adults and children_ages are per room. currency: EUR, USD… (if the property sells in it). board: Room only, Bed & breakfast, Half board, Full board or All inclusive. Returns hotels with options; each option has a rate_key (valid 30 minutes) for check_rate and book_hotel, and each hotel a booking_url (its official page with these dates) that the traveller can open to see prices and book.

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

Input Schema

NameRequiredDescriptionDefault
boardNoRoom only, Bed & breakfast, Half board, Full board or All inclusive.
roomsNoNumber of rooms with the same occupancy.
adultsNoAdults per room.
checkinYesCheck-in date, YYYY-MM-DD.
checkoutYesCheck-out date, YYYY-MM-DD (after check-in).
currencyNoISO currency code (EUR, USD…), used if the property sells in it.
destinationNoCity, area, region, hotel name or ISO country code. Leave empty on a hotel's own connector.
children_agesNoAge of each child per room, e.g. [4, 9].
max_total_priceNoMaximum total price for the whole stay, in the requested currency.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "_searchDictOutput",
      +  "type": "object"
      +}
  2. Changed9 schema fields changed
    • addedInput schema / properties / adults / description
      Added value: +"Adults per room."
    • addedInput schema / properties / board / description
      Added value: +"Room only, Bed & breakfast, Half board, Full board or All inclusive."
    • addedInput schema / properties / checkin / description
      Added value: +"Check-in date, YYYY-MM-DD."
    • addedInput schema / properties / checkout / description
      Added value: +"Check-out date, YYYY-MM-DD (after check-in)."
    • addedInput schema / properties / children_ages / description
      Added value: +"Age of each child per room, e.g. [4, 9]."
    • addedInput schema / properties / currency / description
      Added value: +"ISO currency code (EUR, USD…), used if the property sells in it."
    • addedInput schema / properties / destination / description
      Added value: +"City, area, region, hotel name or ISO country code. Leave empty on a hotel's own connector."
    • addedInput schema / properties / max_total_price / description
      Added value: +"Maximum total price for the whole stay, in the requested currency."
    • addedInput schema / properties / rooms / description
      Added value: +"Number of rooms with the same occupancy."
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: results are hotels containing multiple options, each option carries a 30-minute-lived rate_key, and each hotel carries an official booking_url — the expiry window in particular is critical context an agent cannot get from structured fields.

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 purpose is front-loaded in the first sentence, followed by compact per-parameter clarifications and a closing sentence on return shape. It is dense but nearly every clause carries information; the only slight waste is restating date formats and board values already present in the schema.

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?

For a 9-parameter search with an output schema, the description covers the essential mental model: hotels → options → rate_key → downstream tools. Missing are result caps, pagination, and any note on how max_total_price interacts with returned prices, but the core is complete.

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%, so the baseline is 3. The description does add some meaning — destination may be a hotel name or ISO country code and is unnecessary on a property's own connector, and adults/children_ages are explicitly per room — but it omits max_total_price and rooms entirely, so it only partially enriches the schema.

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?

States a specific verb and resource ('Search live availability and prices') plus the inventory scope ('directly-contracted hotels, apartments and villas'), which separates it from get_hotel (single property detail) and check_rate (rate validation). An agent can tell what this returns without opening the 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?

The description routes the agent forward explicitly: the returned rate_key is 'for check_rate and book_hotel' and is valid 30 minutes, and booking_url is for the traveller to open. It does not state when to prefer get_hotel over a search, nor any exclusions, so it falls short of a full when/when-not statement.

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.