Skip to main content
Glama

hotels_search

Read-only

Returns a page of date-bound Hotels.com hotel search results for either a free-text destination or a numeric Hotels.com region_id: normalized property cards with per-night and per-stay prices, review score and count, location, thumbnail, amenities, and promotional badges. Provide exactly one of query or region_id; region_id skips destination typeahead resolution. Prices are the live rates Hotels.com shows for the requested check-in and check-out dates. Use hotels_property to get Hotels.com property details.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hotels_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOne-based result page, default 1.
queryNoFree-text destination to resolve when region_id is not supplied. Provide query or region_id.
roomsNoRooms requested, 1-8; omitted or zero uses the default 1.
adultsNoAdult guests, 1-9; omitted or zero uses the default 2.
localeNoLanguage/country locale, default en_US.
check_inNoRequired check-in date in YYYY-MM-DD format.
currencyNoPrice currency code, default USD.
check_outNoRequired check-out date in YYYY-MM-DD format, after check_in.
page_sizeNoProperties per page, default 20, maximum 50.
region_idNoResolved Hotels.com region identifier; use hotels_autocomplete to discover it. Takes precedence over query.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / adults / description
      Previous value: -"Adult guests, 1-9; default 2."New value: +"Adult guests, 1-9; omitted or zero uses the default 2."
    • changedInput schema / properties / rooms / description
      Previous value: -"Rooms requested, 1-8; default 1."New value: +"Rooms requested, 1-8; omitted or zero uses the default 1."
  2. Changed10 schema fields changed
    • addedInput schema / properties / adults / description
      Added value: +"Adult guests, 1-9; default 2."
    • addedInput schema / properties / check_in / description
      Added value: +"Required check-in date in YYYY-MM-DD format."
    • addedInput schema / properties / check_out / description
      Added value: +"Required check-out date in YYYY-MM-DD format, after check_in."
    • addedInput schema / properties / currency / description
      Added value: +"Price currency code, default USD."
    • addedInput schema / properties / locale / description
      Added value: +"Language/country locale, default en_US."
    • addedInput schema / properties / page / description
      Added value: +"One-based result page, default 1."
    • addedInput schema / properties / page_size / description
      Added value: +"Properties per page, default 20, maximum 50."
    • addedInput schema / properties / query / description
      Added value: +"Free-text destination to resolve when region_id is not supplied. Provide query or region_id."
    • addedInput schema / properties / region_id / description
      Added value: +"Resolved Hotels.com region identifier; use hotels_autocomplete to discover it. Takes precedence over query."
    • addedInput schema / properties / rooms / description
      Added value: +"Rooms requested, 1-8; default 1."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds genuinely new context by disclosing that returned prices are live rates for the requested dates and that region_id bypasses destination typeahead resolution. It stops short of describing pagination behavior or rate-limit/freshness characteristics beyond "live", leaving a small gap.

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?

Three sentences, front-loaded with the purpose and result shape before the input constraint and the sibling routing hint. The amenity/price enumeration in the first sentence is dense but it is the single longest clause and does convey real information about the response, so nothing is clearly wasteful.

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?

With 10 all-optional parameters fully documented in the schema and an output schema present, the description covers what the structured fields cannot: result composition, live-rate semantics, and search-vs-detail routing. Complete enough to invoke correctly; the only omission is any note on how pagination terminates or how results are ordered.

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 above that by stating the exclusivity rule between query and region_id and explaining the practical effect of region_id (skips typeahead resolution), which refines rather than repeats the schema's "takes precedence over query" note. It adds nothing about dates, currency, or guest counts, but those are fully documented in 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 (returns a page of date-bound Hotels.com hotel search results) plus the two mutually exclusive input modes (query vs. region_id) and the normalized shape of each property card. An agent can distinguish it from hotels_property, hotels_autocomplete, and the other OTA search 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?

Gives an explicit routing rule to the sibling ("Use hotels_property to get Hotels.com property details") and an input-mode constraint ("Provide exactly one of query or region_id"). What it lacks is any stated exclusion versus the other hotel search providers listed as siblings, so the agent must infer that distinction from the provider name alone.

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.