Find last-minute hotels with RoomLast
search_accommodationsFinds last-minute hotels in a city, neighborhood, airport, or landmark for tonight or specified upcoming dates. Dates are represented by dateIntent tonight or by checkinDate and checkoutDate. Supports occupancy, price, stars, guest score, property type, amenities, cancellation, and sort filters. Returns hotel IDs, facts, masked RoomLast price bands, public-rate comparisons, and RoomLast links. Room choices and exact private prices are not included in these results.
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": {
"destination": "<destination>",
"children": "<children>"
},
"name": "search_accommodations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | Result order: top-picks, distance, total price ascending, total price descending, or guest reviews. | top-picks |
| rooms | No | Number of rooms. Each room receives the default of 2 adults when adults is omitted. | |
| adults | No | Total adult guests. When omitted, RoomLast defaults to 2 adults per room. | |
| children | Yes | Total child guests; equals childrenAges.length. | |
| currency | No | USD | |
| timeZone | No | Optional IANA time-zone fallback for resolving relative stay dates; destination or property location takes precedence. | |
| amenities | No | Amenities required in every result. | |
| dateIntent | No | Relative stay intent. Tonight resolves check-in as the current local date and check-out as the following date. | |
| checkinDate | No | Explicit check-in date in YYYY-MM-DD; paired with checkoutDate. | |
| destination | Yes | City, neighborhood, airport, landmark, or other broad destination. | |
| starRatings | No | Exact accepted hotel star classifications. | |
| checkoutDate | No | Explicit check-out date in YYYY-MM-DD; paired with checkinDate. | |
| childrenAges | No | Age of every child at check-in. The array length must equal children. | |
| maximumPrice | No | Maximum nightly price in the selected currency. | |
| minimumPrice | No | Minimum nightly price in the selected currency. | |
| propertyTypes | No | Accepted accommodation types, such as hotel, motel, resort, hostel, or apartment. | |
| minimumStarRating | No | Minimum hotel star classification from 1 to 5; distinct from guest review score. | |
| minimumReviewScore | No | Minimum guest review score out of 10; distinct from hotel star classification. | |
| freeCancellationOnly | No | Whether results require free cancellation or refundable rates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| total | Yes | ||
| search | Yes | ||
| totalPages | Yes | ||
| accommodations | Yes | ||
| priceDisclosure | Yes |