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 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, 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, 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. 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."
  3. 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"
      +}
  4. 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."
  5. 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)."
  6. 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."
  7. 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."
  8. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavior: 10 results per page, ranking order with tie-breaking on review count, a caveat that thin-review hotels are pulled toward the destination average, and the important rule that hotel_name causes other filters to be ignored. 'Read-only, no sign-in' merely restates the annotations, and pagination cap of 5 pages is only in the schema.

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 trigger is correctly front-loaded, but the second sentence is a single sprawling construction with nested parentheticals containing Comfort Score weighting percentages (60/30/15/15/10) that are expensive to parse and only marginally useful for tool selection. That detail does help interpret ranked output given there is no output schema, so it earns partial rather than zero credit.

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?

For a 17-parameter search tool with no output schema, the description still covers result contents (strengths, complaints, indicative price, okstays.com link), page size and ordering, and the name-lookup override. Missing only pagination ceiling and explicit guidance on which sibling to call for follow-up detail, both of which the schema or siblings partly supply.

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 all 17 parameters are already documented, and the description mostly re-lists them (travel style, 8+ signals, price, minimum score, neighbourhood, distance, property_type). It does add one cross-parameter insight — that the long-stays persona defaults to property_type 'any' — but that is also repeated in 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+resource ('search hotels in a destination') plus the two distinct entry modes (destination browse vs. lookup by hotel_name), which lets an agent separate it from get_hotel, compare_hotels and find_similar_hotels without opening a schema. The scope exclusion ('Places to stay only, not flights or car hire') further sharpens what it does.

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?

The opening clause gives a concrete trigger with a worked example ('quiet hotels in Bangkok under $150') and covers the by-name variant. It does not state when to prefer siblings like get_city_overview or plan_trip, and the only exclusion is the flights/car-hire line, so routing is clear but not fully comparative.

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.