Search hotels on Flamaz
search_hotelsSearch real hotels that can be booked on Flamaz, with live prices for exact dates. Returns up to 6 hotels with the price per night and the total for the stay, star rating, guest rating, address, free cancellation and breakfast information, a photo and a link to view and book the hotel on flamaz.com with the same dates and guests. By default they are a mix of good-value and top-rated hotels (the closest ones when the user wants something central or near a place); when the user wants the cheapest options or something cheaper, call it with cheapest_first. Use it when the user asks for hotels or accommodation in a city for given dates, or for the price of a specific hotel. check_in and check_out are required: prices exist only for exact dates. Pass only what the user said (guests, children and their ages, rooms, budget, the cheapest options, stars, free cancellation, breakfast, central location, a place to be near, a hotel name). Also pass language, the language the user is writing in, so the links open flamaz.com in that language.
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": {
"city": "<city>",
"check_in": "<check_in>",
"check_out": "<check_out>"
},
"name": "search_hotels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | The destination: the city where the user wants to stay (not where the user is now), in its usual Latin-alphabet form, e.g. "Barcelona", "Rome", "Tokyo". | |
| near | No | A landmark, venue or street of the city the user wants to stay near, by its usual name in the Latin alphabet or in the local language, e.g. "Sagrada Familia". | |
| rooms | No | Number of rooms, only if the user said it. Default 1. | |
| adults | No | Number of adults, only if the user said it. Default 2. | |
| central | No | true only if the user wants something central. | |
| country | No | The destination city's country as an ISO 3166-1 alpha-2 code, e.g. "ES", "MX", "CL", "GB". Pass it whenever you know it: many city names exist in several countries (Santiago, Córdoba, Valencia, Mérida, Granada, León). | |
| check_in | Yes | Check-in date, YYYY-MM-DD. Today or later. | |
| children | No | Number of children under 18, only if the user mentioned children. | |
| language | No | The language the user is writing in, as a language code such as "es", "en", "zh", "fr" or "pt-BR" ("zh-TW" for Traditional Chinese). The links open flamaz.com in that language. | |
| check_out | Yes | Check-out date, YYYY-MM-DD, after check_in (at most 30 nights). | |
| min_stars | No | Minimum star rating, only if the user asked for it. | |
| hotel_name | No | The name of a specific hotel, only if the user asks about one. | |
| children_ages | No | Age of each child (0 for a baby), only if the user said it. Ages change the price. | |
| cheapest_first | No | true only if the user wants the cheapest options or asks for something cheaper. Flamaz then compares the prices of many more hotels in the area and returns the cheapest first. They can be hostels, guesthouses or campsites far from the center; each result includes its distance. | |
| free_cancellation | No | true only if the user wants free cancellation. | |
| breakfast_included | No | true only if the user wants breakfast included. | |
| max_price_per_night | No | Maximum budget per night in euros, only if the user gave a budget. If they gave it in another currency, convert it to euros first. |