Skip to main content
Glama

hotels_offers

Read-only

Returns the room/unit offers for one Hotels.com property and date range: each unit with its label, size, occupancy, photos and galleries, and its rate plans with price details, amenities, badge and payment policy, plus the unit's feature rows and highlight messages; every other upstream member comes back under extras. property_id is the numeric global property id from a Search response. Use hotels_rates to get Hotels.com rates for one property.

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_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
property_idNoRequired global property identifier from hotels_search properties[].id, distinct from the legacy /ho<id>/ URL identifier.

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 / property_id / description
      Previous value: -"Required property identifier returned by the provider's property search."New value: +"Required global property identifier from hotels_search properties[].id, distinct from the legacy /ho<id>/ URL identifier."
  2. Changed6 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 / property_id / description
      Added value: +"Required property identifier returned by the provider's property search."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: it discloses that unmodeled upstream members are surfaced under an 'extras' field, which is not derivable from the annotations. It says nothing about rate limits, caching, or empty-result behavior, so it is not a 5.

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

Conciseness3/5

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

The purpose is front-loaded, but the middle is one very long clause chaining units, rate plans, amenities, badges, feature rows and highlights, much of which restates what the output schema already enumerates. It is readable but padded, and the trailing hotels_rates pointer would serve better as a second sentence.

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 an output schema present and full schema description coverage, the description only needs to establish scope, input provenance and routing, and it does all three. The residual gap is that it never clarifies the practical difference between this tool and hotels_rates, which matters for a family with many near-identical 'offers' siblings.

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 all six parameters are already documented in the schema, including the property_id provenance and the legacy /ho<id>/ distinction. The description repeats the property_id and date-range semantics but adds no format, default, or constraint information the schema lacks; baseline 3 applies.

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 opens with a specific verb and resource: 'Returns the room/unit offers for one Hotels.com property and date range', then enumerates the payload (units, rate plans, feature rows, highlights). An agent can distinguish this from hotels_rates and from the search/detail 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 Guidelines3/5

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

It names a sibling ('Use hotels_rates to get Hotels.com rates for one property') and states the required input provenance ('property_id is the numeric global property id from a Search response'), which is useful routing context. However it never explains the actual selection condition between offers and rates, and gives no when-not-to-use or prerequisite guidance beyond that one pointer.

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.