Skip to main content
Glama

Search Hotels Live

search_hotels_live

Starts a live hotel search for a city and date range. Prices come from Agoda, Booking.com, Traveloka, Trip.com, Hotels.com and Airbnb, plus direct rates from TravelOpen partner hotels. Returns a session ID; poll_search_results returns the results as they arrive. Optional filters narrow the results by hotel name, area or total price for the stay. Prices depend on the party: it defaults to 2 adults in 1 room, and the result states the party searched and flags when it was defaulted. When the city or dates are missing, the result is a question for the user instead of a search; the stay dates searched are echoed back for confirmation.

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

Input Schema

NameRequiredDescriptionDefault
areaNoOptional ward, neighbourhood, beach or landmark within the city, e.g. 'Shoreditch' with city 'London'. A place the search recognises lists the hotels within a few km of it; otherwise it filters the city's hotels by their address.
cityNoCity or broad destination, e.g. 'Da Nang'. When omitted, the result asks the user for it.
roomsNoNumber of rooms (default 1).
adultsNoNumber of adults (default 2). Prices depend on it.
checkInNoCheck-in date (YYYY-MM-DD), today or later. When omitted, the result asks the user for it.
checkOutNoCheck-out date (YYYY-MM-DD), after checkIn. When omitted, the result asks the user for it.
childrenNoNumber of children sharing the room (default 0). Child ages determine family quotes; sources without verified occupancy support are omitted.
languageNoPreferred UI language (en/vi/de/ja/ko/zh/fr/es/ru/th/id).
priceMaxNoMaximum total price for the whole stay (not per night), in priceCurrency.
priceMinNoMinimum total price for the whole stay (not per night), in priceCurrency.
amenitiesNoOptional amenities every hotel shown must have, as at least one of its sites lists them: pool, beach, breakfast, parking, gym, spa, airport_shuttle, kitchen, family (family rooms).
childAgesNoAge of each child, 0–17. Family quotes are limited to sources that accept this occupancy; unsupported sources are omitted.
hotelNameNoOptional hotel-name filter when the user names a specific property
queryTextNoOptional short excerpt of the current request, used only to detect the UI language; it is not stored or forwarded.
priceCurrencyNoISO 4217 code of priceMin/priceMax (USD, EUR, VND, …); defaults to the currency of the UI language.

Output Schema

NameRequiredDescriptionDefault
cityYes
tierYes
limitYes
cachedNo
hotelsYes
nightsYes
offsetYes
statusYes
checkInYes
fxRatesYes
hasMoreYes
checkOutYes
languageNo
progressYes
sessionIdNo
agodaStatusYes
totalHotelsYes
bookingStatusYes
longStayNoticeNo
travelokaStatusYes
opentravelStatusYes
tier2AgodaStatusYes
opentravelResultsYes
tier2BookingStatusYes
tier2TravelokaStatusYes
opentravelIndicativeResultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / childAges
      Added value: +{
      +  "description": "Age of each child, 0–17. Family quotes are limited to sources that accept this occupancy; unsupported sources are omitted.",
      +  "items": {
      +    "maximum": 17,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • changedInput schema / properties / children / description
      Previous value: -"Number of children sharing the room (default 0). OTA prices cannot include children; the result says so when children are given."New value: +"Number of children sharing the room (default 0). Child ages determine family quotes; sources without verified occupancy support are omitted."
  2. Changed1 schema field changed
    • changedInput schema / properties / area / description
      Previous value: -"Optional district, ward, or neighborhood filter within the city"New value: +"Optional ward, neighbourhood, beach or landmark within the city, e.g. 'Shoreditch' with city 'London'. A place the search recognises lists the hotels within a few km of it; otherwise it filters the city's hotels by their address."
  3. Changed1 schema field changed
    • addedInput schema / properties / amenities
      Added value: +{
      +  "description": "Optional amenities every hotel shown must have, as at least one of its sites lists them: pool, beach, breakfast, parking, gym, spa, airport_shuttle, kitchen, family (family rooms).",
      +  "items": {
      +    "enum": [
      +      "pool",
      +      "beach",
      +      "breakfast",
      +      "parking",
      +      "gym",
      +      "spa",
      +      "airport_shuttle",
      +      "kitchen",
      +      "family"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 9,
      +  "type": "array"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / hotels / items / properties / prices / properties / airbnb
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
  5. Changed5 schema fields changed
    • addedOutput schema / properties / hotels / items / properties / prices / properties / expedia
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / hotelscom
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / official
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / priceline
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / tripcom
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing the async session model, the party defaulting to 2 adults in 1 room with a flag when defaulted, and the notable behavior that missing city or dates yields a question to the user rather than a search. Gaps remain around session lifetime, whether repeated calls spawn duplicate sessions, and any rate/cost limits on polling.

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?

Front-loaded with purpose and the session/poll contract, then filters, then party defaults, then the missing-input fallback. Sentences are dense but each carries distinct information across 15 parameters; the source list is the one element that could be trimmed without losing much.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter, zero-required, async search tool with an output schema, the description covers the call lifecycle (session ID plus polling), optional filtering, party defaulting, and the missing-argument fallback. Return-value details are correctly left to the output schema, and nothing an agent needs to invoke it correctly is absent.

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 already 100%, so baseline is 3; the description earns an extra point by explaining that price filters are for the total stay (not per night) and that prices depend on the party size, tying adults/rooms/children to result interpretation. It does not explain childAges vs children interplay or the queryText language-detection trick, which are left to 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 ("Starts a live hotel search for a city and date range") and immediately separates itself from the async sibling by pointing at poll_search_results. It also names the actual rate sources (Agoda, Booking.com, Traveloka, Trip.com, Hotels.com, Airbnb, TravelOpen partner direct rates), so an agent knows this is a meta-search, not a single-supplier lookup.

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?

Clear when-to-use: start a search here, then poll_search_results for arrivals, and apply optional filters to narrow results by name, area or total price. What is missing is routing against the other request-side siblings (e.g. when to prefer get_hotel_info or get_hotel_detail once a property is identified), though an agent can infer that from names.

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