Skip to main content
Glama

Search hotels

search_hotels
Read-onlyIdempotent

Use this when the user wants hotels in a destination (e.g. 'quiet hotels in Bangkok under $150'), or asks about a hotel by name (hotel_name). Returns up to 10 hotels per page, ranked by the OKstays Comfort Score (0-10 from what guests report: Comfort & Essentials 60%, the five must-haves (cleanliness, beds, shower, bugs and safety) 30% and sleep and room 30%; Perks & Facilities 15%; Service & Hospitality 15%; Location & Access 10%; repeated complaints about cleanliness, beds, showers or bugs keep a hotel out; feeling unsafe in the area shows as a complaint; a high score from few reviews leans toward the destination's typical score until more guests review the place) or by a travel style's score (half the Comfort Score, half how well it fits the style), highest first (ties go to the better Comfort & Essentials score, then the hotel more guests reviewed), each with strengths, complaints, indicative price and its okstays.com link. Filters: travel style, signals the hotel must score 8+ on, price, minimum score, neighbourhood, distance from a point, and the kind of stay: property_type hotels (default), apartments, guest-houses, hostels or any (the long-stays persona defaults to any). Pass the user's dates and guests when known. Places to stay only, not flights or car hire. Read-only, no sign-in.

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": {
      "location": "<location>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of results (default 1; up to 5) for 'show me more'.
tagsNoFilter ids the hotel must score 8+ on, e.g. ['soundproofing', 'reliable_wifi']; their names work too ('quiet'). See get_filters.
limitNoHotels per page (default 10).
adultsNoGuests per room (1-8), if given.
checkinNoUser's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay.
personaNoTravel style to rank for: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays.
sort_byNobest = Comfort Score (default); value = Comfort Score per $100; nearest needs near_lat/near_lng.
checkoutNoCheck-out date, YYYY-MM-DD (e.g. 2027-03-15).
districtNoNeighbourhood to restrict to, e.g. 'Gothic Quarter'. get_city_overview lists the districts and its where_to_stay areas; another area name is matched against hotel addresses.
locationYesCity name or slug, e.g. 'Barcelona' or 'new-york'. Use list_cities for coverage. An area of a grouped destination works too ('Canggu' or 'Ubud' in Bali, 'Positano' on the Amalfi Coast, 'Maafushi' in the Maldives): its places are shown.
near_latNoLatitude of a landmark or address the user names (not the user's own location); with near_lng restricts results to hotels within radius_km and reports distance_km.
near_lngNoLongitude of the point of interest.
max_priceNoMaximum indicative price per night in USD.
min_scoreNoMinimum Comfort Score (0-10).
radius_kmNoSearch radius around near_lat/near_lng in km (default 3).
hotel_nameNoFind a hotel by name in this city (part of the name works, e.g. 'Pestana'), including hotels outside our rankings; the other filters are then ignored.
property_typeNoproperty_type: hotels (default), apartments, guest-houses, hostels or any. hotels includes resorts, riads and ryokans; apartments includes aparthotels, holiday homes, villas and chalets; guest-houses includes B&Bs and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / property_type / description
      Previous value: -"property_type: hotels (default), apartments, hostels or any. hotels includes guest houses, B&Bs, aparthotels and resorts; apartments includes holiday homes, villas and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any."New value: +"property_type: hotels (default), apartments, guest-houses, hostels or any. hotels includes resorts, riads and ryokans; apartments includes aparthotels, holiday homes, villas and chalets; guest-houses includes B&Bs and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any."
    • changedInput schema / properties / property_type / enum
      Previous value: -[
      -  "hotels",
      -  "apartments",
      -  "hostels",
      -  "any"
      -]New value: +[
      +  "hotels",
      +  "apartments",
      +  "guest-houses",
      +  "hostels",
      +  "any"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / district / description
      Previous value: -"Neighbourhood to restrict to, e.g. 'Gothic Quarter'. get_city_overview lists the districts; another area name is matched against hotel addresses."New value: +"Neighbourhood to restrict to, e.g. 'Gothic Quarter'. get_city_overview lists the districts and its where_to_stay areas; another area name is matched against hotel addresses."
  3. Changed1 schema field changed
    • changedInput schema / properties / location / description
      Previous value: -"City name or slug, e.g. 'Barcelona' or 'new-york'. Use list_cities for coverage."New value: +"City name or slug, e.g. 'Barcelona' or 'new-york'. Use list_cities for coverage. An area of a grouped destination works too ('Canggu' or 'Ubud' in Bali, 'Positano' on the Amalfi Coast, 'Maafushi' in the Maldives): its places are shown."
  4. Changed1 schema field changed
    • addedInput schema / properties / property_type
      Added value: +{
      +  "description": "property_type: hotels (default), apartments, hostels or any. hotels includes guest houses, B&Bs, aparthotels and resorts; apartments includes holiday homes, villas and homestays; any adds every kind, boats and campsites too. The long-stays persona defaults to any.",
      +  "enum": [
      +    "hotels",
      +    "apartments",
      +    "hostels",
      +    "any"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / persona / description
      Previous value: -"Travel style to rank for: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort."New value: +"Travel style to rank for: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays."
  6. Changed3 schema fields changed
    • changedInput schema / properties / adults / description
      Previous value: -"Guests per room, if given."New value: +"Guests per room (1-8), if given."
    • changedInput schema / properties / checkin / description
      Previous value: -"User's check-in date, YYYY-MM-DD, if given: links then open on this stay."New value: +"User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay."
    • changedInput schema / properties / checkout / description
      Previous value: -"Check-out date, YYYY-MM-DD."New value: +"Check-out date, YYYY-MM-DD (e.g. 2027-03-15)."
  7. Changed8 schema fields changed
    • addedInput schema / properties / adults
      Added value: +{
      +  "description": "Guests per room, if given.",
      +  "maximum": 8,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / checkin
      Added value: +{
      +  "description": "User's check-in date, YYYY-MM-DD, if given: links then open on this stay.",
      +  "type": "string"
      +}
    • addedInput schema / properties / checkout
      Added value: +{
      +  "description": "Check-out date, YYYY-MM-DD.",
      +  "type": "string"
      +}
    • changedInput schema / properties / district / description
      Previous value: -"Neighbourhood to restrict to, e.g. 'Gothic Quarter'. get_city_overview lists the districts."New value: +"Neighbourhood to restrict to, e.g. 'Gothic Quarter'. get_city_overview lists the districts; another area name is matched against hotel addresses."
    • addedInput schema / properties / hotel_name
      Added value: +{
      +  "description": "Find a hotel by name in this city (part of the name works, e.g. 'Pestana'), including hotels outside our rankings; the other filters are then ignored.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Hotels per page (default 10).",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page of results (default 1; up to 5) for 'show me more'.",
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / tags / description
      Previous value: -"Filter ids the hotel must score 8+ on, e.g. ['soundproofing', 'reliable_wifi']. See get_filters."New value: +"Filter ids the hotel must score 8+ on, e.g. ['soundproofing', 'reliable_wifi']; their names work too ('quiet'). See get_filters."
  8. Changed1 schema field changed
    • changedInput schema / properties / persona / description
      Previous value: -"Travel style to rank for: digital-nomad, deep-sleep, romantic, family, business, solo-safe, luxury, budget-comfort."New value: +"Travel style to rank for: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort."
  9. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds substantial behavior the structured fields cannot express: page size and the 5-page ceiling, ranking formula with tie-break order, suppression rules for repeated cleanliness or bug complaints, shrinkage of scores from few reviews toward the destination norm, and the fact that hotel_name ignores other filters. That is real operational context for interpreting results.

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

Conciseness2/5

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

The opening sentence is well front-loaded, but the middle collapses into one long run-on with deeply nested parentheses detailing a six-component scoring formula and tie-break cascade. That level of algorithmic detail is reference documentation, not selection guidance, and it buries the genuinely useful constraints (page limits, filter list, hotel_name override).

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 17-parameter search tool with no output schema, the description covers what comes back (strengths, complaints, indicative price, okstays.com link), how results are ordered, pagination limits, and the name-lookup special case. Nothing an agent needs to invoke it correctly or narrate results to a user is missing.

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 the schema already explains every one of the 17 parameters, including enums, defaults and the near_lat/near_lng/radius_km relationship. The description mostly restates the filter inventory and adds only a light nudge ('Pass the user's dates and guests when known') and the long-stays persona default, so it sits at the baseline rather than adding meaning beyond 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 ('hotels in a destination', 'asks about a hotel by name'), gives a concrete example query, and scopes the domain with 'Places to stay only, not flights or car hire.' An agent can tell instantly this is the discovery/search tool rather than get_hotel, compare_hotels or find_similar_hotels.

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?

Opens with an explicit trigger ('Use this when the user wants hotels in a destination ... or asks about a hotel by name') plus a worked example, and routes supporting lookups to get_filters, get_city_overview and list_cities. It never says when to prefer get_hotel or compare_hotels over hotel_name within this tool, so sibling disambiguation is incomplete.

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.