Otaghak

v0.4.2
io.github.sepehr071/otaghak-mcp Checked 3 days ago Published 16 days ago

Unofficial read-only Otaghak: search Iranian villas, availability, exact stay prices, reviews.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ot_find_place Find place or room code

Turn a place name into the city / province slugs that ot_search_rooms needs, or a room code into its room. Room names are not searchable here (use ot_search_rooms `name`). Next: ot_search_rooms, or ot_room for a room.

ParameterTypeDescription
query *stringCity/province name (Persian or slug) or room code, e.g. 'رامسر'.

ot_search_rooms Search stays

Search Otaghak stays (villas, cottages, apartments, eco-lodges) in a city, province or collection. With dates every room is available and carries stay_total (estimate) for `guests`; without, undated starting prices. Slugs: ot_find_place; filter codes: ot_search_filters. Next: ot_room, ot_price_quote.

ParameterTypeDescription
bedroomsinteger | nullMinimum bedrooms.
check_instring | nullArrival day YYYY-MM-DD (not past).
check_outstring | nullDeparture day YYYY-MM-DD (max 20 nights).
cityarray | nullCity slugs from ot_find_place, e.g. ['ramsar'] (any).
city_tagstring | nullCity theme slug from ot_travel_guide, e.g. 'cottage'.
collectionstring | nullCollection code from ot_destinations, e.g. 'beach', 'villapool'.
district_idinteger | nullLandmark id from ot_search_filters (with `city`).
filtersarray | nullCodes from ot_search_filters as returned, e.g. ['ruleValues=10101|10103|10102']. All must match.
guestsinteger | nullGuests; smaller rooms are left out.
include_nearbybooleanInclude nearby rooms.
instantbooleanOnly instant booking.
limitintegerRooms per page.
max_priceinteger | nullMax nightly Toman after discount.
min_priceinteger | nullMin nightly Toman after discount.
min_ratinginteger | nullMinimum rating.
namestring | nullRoom name words.
pageintegerZero-based page.
primebooleanOnly prime rooms.
provincestring | nullProvince slug, e.g. 'mazandaran'.
rent_typesarray | nullRent types.
room_typesarray | nullRoom type ids from ot_search_filters.
sortstringOrder; with dates, cheapest re-sorts each page by stay_total.

ot_search_filters Search filter codes

List the search filters of a city, province or collection (or the whole site) with the codes ot_search_rooms takes. Returns the price range (Toman), room type ids, filter codes (pool, pets, parking, ...) and, for a city, districts and landmarks (district_id). Use for an amenity, rule, room type or landmark.

ParameterTypeDescription
citystring | nullCity slug; also returns its districts.
collectionstring | nullCollection code, e.g. 'beach'.
provincestring | nullProvince slug, e.g. 'mazandaran'.

ot_destinations Popular destinations and collections

Popular cities and collections (themed landing pages: discounted, jungle villas, villas with pool, ...). Use when there is no destination yet, or for `collection` codes. With `collection`, also its city slugs.

ParameterTypeDescription
collectionstring | nullCollection code, to list its cities.

ot_deals Deals and discounts

Current discounts: the home page's last-second deals and the most discounted stays (biggest percent first). last_second (site-wide, undated prices, shown 14:00-23:50 Iran time) is left out when `city` is given. most_discounted lists rooms of the discounted collection (in `city` if given). Next: ot_price_quote.

ParameterTypeDescription
check_instring | nullArrival day YYYY-MM-DD (not past).
check_outstring | nullDeparture day YYYY-MM-DD (max 20 nights).
citystring | nullCity slug (default: whole site).
guestsinteger | nullGuests; smaller rooms are left out.
limitintegerRooms per list.

ot_help Help: rules and FAQ

Read Otaghak's help center: the FAQ, or the guest terms (booking and cancellation rules, the five cancellation policies, refunds, wallet, check-in rules), host rules or quality policy. Without `query`: every FAQ question or the page's section titles; with it, the matches. A room's own cancellation policy is in ot_room.

ParameterTypeDescription
querystring | nullPersian words to look for, e.g. 'لغو'.
topicstringterms covers booking, cancellation, refunds, wallet.

ot_travel_guide Destination travel guide

Get the site's travel guide for a destination: guide text, the destination's FAQ (best season, sights, prices), related search pages (city themes such as beach, cottage, apartment with listing counts) and matching blog articles (restaurants, sights, souvenirs). City theme slugs from related_pages go to ot_search_rooms `city_tag`.

ParameterTypeDescription
place *stringCity, province or collection slug.
blog_querystring | nullBlog search words (default: place name).
full_textbooleanReturn long texts in full instead of clipped.
kindstringWhat `place` is.
max_charsintegerMax characters of the guide text.

ot_room Room details

Get one room: description, capacity, rooms and beds, amenities, house rules, check-in/out times, cancellation policy, host, nearby places, approximate location, photos and nightly price. With dates the price is the average night even if booked (ot_price_quote / ot_room_calendar say if free); without, an undated starting price. instant_on_some_nights is room-level; per night see `instant` there. Next: ot_price_quote, ot_room_calendar, ot_reviews, ot_host, ot_similar_rooms.

ParameterTypeDescription
room_id *integerRoom id (code).
check_instring | nullArrival day YYYY-MM-DD (not past).
check_outstring | nullDeparture day YYYY-MM-DD (max 20 nights).
full_textbooleanReturn long texts in full instead of clipped.
max_photosintegerPhoto URLs to return.

ot_reviews Room reviews and rating

Get a room's rating (0-5), star histogram, six category scores, percent of guests who recommend it, and written reviews, newest first (with host replies). rating is null when not rated yet. ot_host has reviews across all of a host's rooms.

ParameterTypeDescription
room_id *integerRoom id (code).
full_textbooleanReturn long texts in full instead of clipped.
limitintegerReviews per page.
pageintegerZero-based page.

ot_similar_rooms Similar rooms

Get 4-5 alternatives to a room (same city and type), as the room page shows them (or, while that list is empty upstream, a search of the room's city and type up to 1.5x its price; `note` says so). Without dates prices are undated starting prices; with dates they are re-priced, and booked or too small rooms go to not_available. Next: ot_room, ot_price_quote.

ParameterTypeDescription
room_id *integerRoom id (code).
check_instring | nullArrival day YYYY-MM-DD (not past).
check_outstring | nullDeparture day YYYY-MM-DD (max 20 nights).
guestsinteger | nullGuests; smaller rooms are left out.

ot_host Host profile

Check a host: response time, response and acceptance rates, member since, active rooms (undated starting prices) and the newest guest reviews across all their rooms. Pass host_id, or room_id to find the room's host.

ParameterTypeDescription
full_textbooleanReturn long texts in full instead of clipped.
host_idinteger | nullHost id, e.g. 1626813.
reviews_limitintegerNewest reviews across the host's rooms.
room_idinteger | nullOr a room id, to find its host.
rooms_limitintegerHost's rooms to list.

ot_room_calendar Room calendar

Get a room's calendar day by day: nightly price after and before discount (Toman), free or booked, instant booking, min and max nights when arriving that day, weekend, public holiday, late checkout. A night is priced on its arrival day. Absent keys = no discount / no. Next: ot_price_quote.

ParameterTypeDescription
room_id *integerRoom id (code).
endstring | nullLast day, inclusive (default start + 30 days).
startstring | nullFirst day YYYY-MM-DD (default today).

ot_price_quote Exact stay price

Get the amount to pay (Toman) for a room, dates and guests: nights_total (the room page's payable amount for the base guests), the extra-guest charge, optional late checkout, and the total. `nightly` is the calendar breakdown (rounded per night, so it can add up to a little more than nights_total). Also checks free nights, stay length and capacity (available=false with a reason otherwise).

ParameterTypeDescription
check_in *stringArrival day YYYY-MM-DD.
check_out *stringDeparture day YYYY-MM-DD (max 20 nights).
guests *integerGuests.
room_id *integerRoom id (code).
late_checkout_hoursinteger | nullLate checkout hours to add (offered rooms), e.g. 4.

ot_holidays Holidays and weekdays

List Iranian public holidays (Fridays included) in a date range, with Jalali dates and weekdays. Flags are filled only about 7 weeks ahead: later days with no holidays mean unknown, not working days.

ParameterTypeDescription
end *stringLast day, inclusive (max a year after start).
start *stringFirst day YYYY-MM-DD.

ot_late_checkout Late checkout

Check whether a room offers late checkout, for how many hours and at what price (Toman, a unit not confirmed on the site), and with check_out whether it can be booked on that departure day (offered rooms are often closed for it on a given day). ot_price_quote adds it to a total with late_checkout_hours.

ParameterTypeDescription
room_id *integerRoom id (code).
check_outstring | nullDeparture day to check.