Search hotels
eg_searchSearch hotels in a city by dates, guests, price, stars, and facilities; returns available options with nightly and stay total prices to compare and select a stay.
Instructions
Search hotels in a city for given dates and filters; returns cards with the lowest price.
price_from is the lowest room price per night in Toman (often a single bed; stay_total is the whole stay);
pass guests for a room that sleeps them. status: available, min_stay (stay rules may not fit) or sold_out.
Next: eg_rooms, eg_hotel or eg_reviews with a card's hotel value.
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>"
},
"name": "eg_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | City category, Persian, e.g. 'حرم', 'ارزان', 'لوکس'; must match one. | |
| beds | No | Room bed count. | |
| city | Yes | Slug from eg_cities (Mashhad) or Persian name. | |
| kind | No | stay = villas, suites, houses. | hotel |
| name | No | Name part, Persian. | |
| sort | No | One of popular, price_asc, price_desc, rating, discount, reviews. | popular |
| type | No | Property type: hotel, apartment_hotel, traveler_house, inn, traditional_residence, residential_unit, ecotourism_resorts. | |
| board | No | Meal plan. | |
| limit | No | ||
| guests | No | Adds `price_for_guests` (cheapest room for this many, per night) to the first 12 cards. | |
| nights | No | Number of nights, 1-30. | |
| check_in | No | YYYY-MM-DD, Gregorian or Jalali (1405-08-19). Default tomorrow. | |
| max_price | No | Toman per night. | |
| max_stars | No | ||
| min_price | No | Toman per night. | |
| min_stars | No | ||
| facilities | No | Persian, all required, e.g. ['استخر', 'پارکینگ']. | |
| attraction_id | No | Id from eg_attractions. | |
| include_sold_out | No | List sold-out hotels too. |