OKstays
v4.4.1Hotels ranked by real comfort, not commission: efficient AC, comfy beds, soundproof rooms and more
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_hotels Search hotels
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…
| Parameter | Type | Description |
|---|---|---|
location * | string | 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 t… |
adults | integer | Guests per room (1-8), if given. |
checkin | string | User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay. |
checkout | string | Check-out date, YYYY-MM-DD (e.g. 2027-03-15). |
district | string | 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. |
hotel_name | string | 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. |
limit | integer | Hotels per page (default 10). |
max_price | number | Maximum indicative price per night in USD. |
min_score | number | Minimum Comfort Score (0-10). |
near_lat | number | Latitude 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_lng | number | Longitude of the point of interest. |
page | integer | Page of results (default 1; up to 5) for 'show me more'. |
persona | string | Travel style to rank for: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays. |
property_type | string | 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… |
radius_km | number | Search radius around near_lat/near_lng in km (default 3). |
sort_by | string | best = Comfort Score (default); value = Comfort Score per $100; nearest needs near_lat/near_lng. |
tags | array | Filter ids the hotel must score 8+ on, e.g. ['soundproofing', 'reliable_wifi']; their names work too ('quiet'). See get_filters. |
get_hotel Hotel details
Use this when the user asks about one hotel: why it scores as it does, or whether it's quiet, clean or good for sleep or work. Returns the Comfort Score breakdown, what the scores rest on, the five must-haves, its strengths and complaints with the reason behind each score, price, the city tax where we know it and its okstays.com link. Pass focus with what the user asked about; detail='full' adds every scored signal (about four times longer). Read-only, no sign-in.
| Parameter | Type | Description |
|---|---|---|
hotel_id * | string | Hotel id (numeric string) from search_hotels. |
adults | integer | Guests per room (1-8), if given. |
checkin | string | User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay. |
checkout | string | Check-out date, YYYY-MM-DD (e.g. 2027-03-15). |
detail | string | summary (default) or full: every scored signal with its explanation, about four times longer. |
focus | array | Signals the user asked about, as filter ids or names (e.g. ['quiet', 'bed', 'wifi']); always included with their reasons. |
list_cities Covered destinations
Use this when the user asks which destinations OKstays covers, or before planning a trip through a country. Returns every destination with a ranking on okstays.com, with its country, slug and number of places on its lists (hotels, apartments, hostels and guest houses); pass country to list one country only. Read-only, no sign-in.
| Parameter | Type | Description |
|---|---|---|
country | string | Country name to filter by, e.g. 'Spain'. |
get_filters Filters and travel styles
Use this to look up the comfort signals and travel styles that search_hotels accepts, when the user's wish doesn't map clearly to one. Returns every filter (id, name, description, category, whether it's a must-have) and every travel style. Plain names also work in search_hotels tags ('quiet', 'wifi'). Read-only, no sign-in.
compare_hotels Compare hotels
Use this when the user is choosing between 2-4 specific hotels. Returns each hotel's Comfort Score breakdown, price, strengths and complaints, the signals where they differ most, and a verdict: best comfort, cheapest, best value. Hotel ids come from search_hotels (hotel_name finds a hotel the user names). Read-only, no sign-in.
| Parameter | Type | Description |
|---|---|---|
hotel_ids * | array | 2-4 hotel ids from search_hotels. |
adults | integer | Guests per room (1-8), if given. |
checkin | string | User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay. |
checkout | string | Check-out date, YYYY-MM-DD (e.g. 2027-03-15). |
find_similar_hotels Find similar hotels
Use this when the user likes a hotel but wants alternatives, e.g. 'like this one but cheaper' (cheaper_only). Returns hotels in the same destination with the closest comfort profile, none with repeated complaints about cleanliness, beds, showers, bugs or safety, with the price difference. Read-only, no sign-in.
| Parameter | Type | Description |
|---|---|---|
hotel_id * | string | Hotel id to find alternatives for. |
adults | integer | Guests per room (1-8), if given. |
cheaper_only | boolean | Only hotels priced below this one. |
checkin | string | User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay. |
checkout | string | Check-out date, YYYY-MM-DD (e.g. 2027-03-15). |
limit | integer | How many to return (default 5). |
max_price | number | Maximum price per night in USD. |
get_city_overview Destination overview
Use this when the user is still choosing a destination or an area to stay in. Returns how many hotels we score, the average Comfort Score, median price, where its hotels beat and trail the average hotel, the best neighbourhoods with their top hotel, which travel styles it suits, the city tax at a 4-star hotel, when to go (pleasant, cool-night and quiet months, typical weather by month) and, where we have a guide, where to stay: the area for a first visit, quiet nights, nightlife, families and value, with each area's price, comfort, street noise and bars. A request for hotels (e.g. 'quiet hotel…
| Parameter | Type | Description |
|---|---|---|
location * | string | City name or slug (an area such as Canggu gives its destination's overview). |
adults | integer | Guests per room (1-8), if given. |
checkin | string | User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay. |
checkout | string | Check-out date, YYYY-MM-DD (e.g. 2027-03-15). |
plan_trip Plan a multi-stop trip
Use this when the user plans a trip with several stops. Returns hotels for each stay in travel order (e.g. Lisbon 4 nights, Porto 3, Madrid 5): the best match for each stop by the OKstays Comfort Score (or the travel style's score), alternatives, the stay dates and an indicative total. Each hotel link opens its OKstays page with the stop's dates, so its Book Now button books those nights. Agree the stops and nights with the user first; list_cities shows which destinations of a country we cover. Read-only, no sign-in.
| Parameter | Type | Description |
|---|---|---|
stops * | array | The trip's stops in order. |
adults | integer | Guests per room (default 2). |
alternatives | integer | Other options per stop (default 2). |
max_price | number | Maximum indicative price per night in USD. |
min_score | number | Minimum Comfort Score (0-10). |
persona | string | Travel style for every stop: digital-nomad, deep-sleep, avoid-crowds, romantic, family, business, solo-safe, luxury, budget-comfort, long-stays. |
property_type | string | 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… |
start_date | string | Check-in date of the first stop, YYYY-MM-DD; each stop starts when the one before ends. Without it, no dates are set. |
tags | array | Filters every hotel must score 8+ on, as in search_hotels. |