Skip to main content
Glama

hotels_rates

Read-only

Fetch one Hotels.com property's rates and availability for check-in/check-out dates. Supply the global properties[].id from hotels_search, not its legacy /ho/ URL ID; use hotels_search to find properties and hotels_property for static 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_rates"
  }
}

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. Changed6 schema fields changed
    • addedInput schema / properties / adults / description
      Added value: +"Adult guests, 1-9; omitted or zero uses the 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 global property identifier from hotels_search properties[].id, distinct from the legacy /ho<id>/ URL identifier."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety profile is covered. The description adds only the legacy /ho<id>/ ID hazard, which the input schema already states almost verbatim, and says nothing about rate freshness, caching, or whether availability is live -- relevant for a non-idempotent pricing lookup.

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

Conciseness5/5

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

Two sentences, front-loaded with the action, followed by a targeted ID caveat and sibling routing. No filler, no repetition beyond the necessary emphasis on the global ID.

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?

An output schema exists, so return values need not be described, and all six parameters are documented. The one gap is that check_in/check_out are flagged "Required" in their schema descriptions yet absent from the required array, and the description doesn't clarify this mandatory framing for a rates lookup.

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 dates, locale, currency, adults, and property_id are all documented in structured fields. The description's ID guidance duplicates the schema rather than adding new meaning (no date-range limits, no currency/locale interaction notes), so 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?

States a specific verb+resource+scope: "Fetch one Hotels.com property's rates and availability for check-in/check-out dates." It also names the sibling that finds properties (hotels_search) and the one for static details (hotels_property), so an agent can place it without opening schemas.

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?

Explicitly routes the agent: use hotels_search to find properties first, hotels_property for static details, and this tool for dated rates. The prerequisite ordering (get properties[].id from search, then call rates) is implied clearly enough for correct invocation.

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.