Skip to main content
Glama

Get Hotel Detail (TravelOpen)

get_hotel_detail
Read-only

Prices and availability for one TravelOpen direct-listed hotel over a date range, with its photos, amenities and room types, each room with its rate plan and total price. Takes the propertyId from search results (source 'OPENTRAVEL_DIRECT'), or a hotel name plus city for a known direct listing. get_hotel_info returns the same hotel's static facts without dates.

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": "get_hotel_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity of the hotel — required when resolving by hotelName.
adultsNoNumber of adults (default 2)
checkInYesCheck-in date YYYY-MM-DD. Must be today or later.
checkOutYesCheck-out date YYYY-MM-DD. Must be after checkIn.
childrenNoNumber of children (default 0)
languageNoPreferred UI language (en/vi/de/ja/ko/zh/fr/es/ru/th/id).
hotelNameNoFallback name for a confirmed TravelOpen direct listing when propertyId is unavailable
queryTextNoOptional short excerpt of the current request, used only to detect the UI language; it is not stored or forwarded.
propertyIdNoTravelOpen propertyId UUID from search results (opentravelResults[].propertyId).

Output Schema

NameRequiredDescriptionDefault
adultsYes
nightsYes
checkInYes
checkOutYes
languageYes
propertyYes
discoveryNo
roomTypesYes
bookingUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / hotelName / description
      Previous value: -"Fallback name for a confirmed OpenTravel direct listing when propertyId is unavailable"New value: +"Fallback name for a confirmed TravelOpen direct listing when propertyId is unavailable"
    • changedInput schema / properties / propertyId / description
      Previous value: -"OpenTravel propertyId UUID from search results (opentravelResults[].propertyId)."New value: +"TravelOpen propertyId UUID from search results (opentravelResults[].propertyId)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the description need not cover safety. It still adds real context: this is scoped to direct-listed properties only, and propertyId should be sourced from OPENTRAVEL_DIRECT results. It stops short of saying what happens when the hotel is not a direct listing or cannot be resolved, which is the remaining behavioral gap.

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?

Three sentences, front-loaded with purpose and return contents, then sourcing guidance, then the sibling discriminator. No filler and no repetition of schema fields.

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, the description needn't explain return values, and it covers sourcing and the key sibling comparison. Completeness is only slightly reduced by not indicating failure behavior when the hotel is not a direct listing or the dates are rejected.

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% with 9 well-documented parameters, so the schema already carries the semantics and the baseline is 3. The description adds the linkage between propertyId and search-result provenance and the hotelName+city pairing, but the schema itself already states city is required when resolving by hotelName.

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 ('Prices and availability for one TravelOpen direct-listed hotel over a date range') and enumerates the payload (photos, amenities, room types, rate plans). It draws a clean line against get_hotel_info ('static facts without dates'), so an agent can distinguish it without opening either schema.

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 says how to obtain the key input ('propertyId from search results, source OPENTRAVEL_DIRECT') and gives the fallback path ('hotel name plus city for a known direct listing'). It also names the alternative tool and the condition that selects it (static facts, no dates).

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