Skip to main content
Glama

Search stays

ot_search_rooms
Read-onlyIdempotent

Search Otaghak villas, cottages, apartments, and eco-lodges by city, province, or collection, filtering by dates, guests, price, and amenities to compare available stays.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ot_search_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity slugs from ot_find_place, e.g. ['ramsar'] (any).
nameNoRoom name words.
pageNoZero-based page.
sortNoOrder; with dates, cheapest re-sorts each page by stay_total.recommended
limitNoRooms per page.
primeNoOnly prime rooms.
guestsNoGuests; smaller rooms are left out.
filtersNoCodes from ot_search_filters as returned, e.g. ['ruleValues=10101|10103|10102']. All must match.
instantNoOnly instant booking.
bedroomsNoMinimum bedrooms.
check_inNoArrival day YYYY-MM-DD (not past).
city_tagNoCity theme slug from ot_travel_guide, e.g. 'cottage'.
provinceNoProvince slug, e.g. 'mazandaran'.
check_outNoDeparture day YYYY-MM-DD (max 20 nights).
max_priceNoMax nightly Toman after discount.
min_priceNoMin nightly Toman after discount.
collectionNoCollection code from ot_destinations, e.g. 'beach', 'villapool'.
min_ratingNoMinimum rating.
rent_typesNoRent types.
room_typesNoRoom type ids from ot_search_filters.
district_idNoLandmark id from ot_search_filters (with `city`).
include_nearbyNoInclude nearby rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed69 schema fields changedv0.4.0
    • removedInput schema / properties / bedrooms / anyOf
      Removed value: -[
      -  {
      -    "maximum": 20,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / bedrooms / description
      Previous value: -"Minimum bedrooms, e.g. 2."New value: +"Minimum bedrooms."
    • addedInput schema / properties / bedrooms / maximum
      Added value: +20
    • addedInput schema / properties / bedrooms / minimum
      Added value: +1
    • addedInput schema / properties / bedrooms / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / check_in / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day YYYY-MM-DD, e.g. '2026-10-20' (not past, in the open calendar)."New value: +"Arrival day YYYY-MM-DD (not past)."
    • addedInput schema / properties / check_in / format
      Added value: +"date"
    • addedInput schema / properties / check_in / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / check_out / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day YYYY-MM-DD, e.g. '2026-10-23' (max 20 nights)."New value: +"Departure day YYYY-MM-DD (max 20 nights)."
    • addedInput schema / properties / check_out / format
      Added value: +"date"
    • addedInput schema / properties / check_out / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / city / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -      "type": "string"
      -    },
      -    "maxItems": 5,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / city / description
      Previous value: -"City slugs from ot_find_place, e.g. ['ramsar'] (any of them)."New value: +"City slugs from ot_find_place, e.g. ['ramsar'] (any)."
    • addedInput schema / properties / city / items
      Added value: +{
      +  "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / city / maxItems
      Added value: +5
    • addedInput schema / properties / city / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / city_tag / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / city_tag / description
      Previous value: -"City theme slug with `city`, e.g. 'cottage' (ot_travel_guide)."New value: +"City theme slug from ot_travel_guide, e.g. 'cottage'."
    • addedInput schema / properties / city_tag / pattern
      Added value: +"^[A-Za-z][A-Za-z0-9-]{1,60}$"
    • addedInput schema / properties / city_tag / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / collection / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / collection / pattern
      Added value: +"^[A-Za-z][A-Za-z0-9-]{1,60}$"
    • addedInput schema / properties / collection / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / district_id / anyOf
      Removed value: -[
      -  {
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / district_id / description
      Previous value: -"Landmark district id from ot_search_filters, with `city`, e.g. 230."New value: +"Landmark id from ot_search_filters (with `city`)."
    • addedInput schema / properties / district_id / minimum
      Added value: +1
    • addedInput schema / properties / district_id / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / filters / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / filters / description
      Previous value: -"Codes from ot_search_filters exactly as returned, e.g. ['ruleValues=10101|10103|10102'] (pets). All must match."New value: +"Codes from ot_search_filters as returned, e.g. ['ruleValues=10101|10103|10102']. All must match."
    • addedInput schema / properties / filters / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / filters / maxItems
      Added value: +10
    • addedInput schema / properties / filters / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / guests / anyOf
      Removed value: -[
      -  {
      -    "maximum": 50,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / guests / description
      Previous value: -"Guests, e.g. 4; smaller rooms are left out."New value: +"Guests; smaller rooms are left out."
    • addedInput schema / properties / guests / maximum
      Added value: +50
    • addedInput schema / properties / guests / minimum
      Added value: +1
    • addedInput schema / properties / guests / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / include_nearby / description
      Previous value: -"Also rooms around the city."New value: +"Include nearby rooms."
    • removedInput schema / properties / max_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / max_price / description
      Previous value: -"Max nightly Toman after discount, e.g. 8000000."New value: +"Max nightly Toman after discount."
    • addedInput schema / properties / max_price / minimum
      Added value: +0
    • addedInput schema / properties / max_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / min_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / min_price / description
      Previous value: -"Min nightly Toman after discount, e.g. 3000000."New value: +"Min nightly Toman after discount."
    • addedInput schema / properties / min_price / minimum
      Added value: +0
    • addedInput schema / properties / min_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / min_rating / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      3,
      -      4,
      -      5
      -    ],
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / min_rating / enum
      Added value: +[
      +  3,
      +  4,
      +  5
      +]
    • addedInput schema / properties / min_rating / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 60,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / name / description
      Previous value: -"Room name words, e.g. 'نرگس'."New value: +"Room name words."
    • addedInput schema / properties / name / maxLength
      Added value: +60
    • addedInput schema / properties / name / minLength
      Added value: +2
    • addedInput schema / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / prime / description
      Previous value: -"Only 'prime' rooms."New value: +"Only prime rooms."
    • removedInput schema / properties / province / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / province / pattern
      Added value: +"^[A-Za-z][A-Za-z0-9-]{1,60}$"
    • addedInput schema / properties / province / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / rent_types / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "enum": [
      -        "whole_place",
      -        "semi_private",
      -        "shared"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / rent_types / description
      Previous value: -"Rent type."New value: +"Rent types."
    • addedInput schema / properties / rent_types / items
      Added value: +{
      +  "enum": [
      +    "whole_place",
      +    "semi_private",
      +    "shared"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rent_types / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / room_types / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "integer"
      -    },
      -    "maxItems": 12,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / room_types / description
      Previous value: -"Room type ids from ot_search_filters, e.g. [138] villa."New value: +"Room type ids from ot_search_filters."
    • addedInput schema / properties / room_types / items
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / room_types / maxItems
      Added value: +12
    • addedInput schema / properties / room_types / type
      Added value: +[
      +  "array",
      +  "null"
      +]
  2. Changed48 schema fields changedv0.2.0
    • removedInput schema / properties / bedrooms / title
      Removed value: -"Bedrooms"
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'. Not in the past; calendars open only to the end of next Jalali month."New value: +"Arrival day YYYY-MM-DD, e.g. '2026-10-20' (not past, in the open calendar)."
    • removedInput schema / properties / check_in / title
      Removed value: -"Check In"
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day, Gregorian YYYY-MM-DD, e.g. '2026-10-23' (3 nights). At most 20 nights after check_in."New value: +"Departure day YYYY-MM-DD, e.g. '2026-10-23' (max 20 nights)."
    • removedInput schema / properties / check_out / title
      Removed value: -"Check Out"
    • changedInput schema / properties / city / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "description": "Slug (letters, digits, -).",
      -      "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -      "type": "string"
      -    },
      -    "maxItems": 5,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +      "type": "string"
      +    },
      +    "maxItems": 5,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / city / description
      Previous value: -"City slugs from ot_find_place, e.g. ['ramsar'] or ['ramsar', 'chalus'] (any of them)."New value: +"City slugs from ot_find_place, e.g. ['ramsar'] (any of them)."
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • changedInput schema / properties / city_tag / anyOf
      Previous value: -[
      -  {
      -    "description": "Slug (letters, digits, -).",
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / city_tag / description
      Previous value: -"City theme page slug with `city`, e.g. 'beach' or 'cottage' (from ot_travel_guide related pages)."New value: +"City theme slug with `city`, e.g. 'cottage' (ot_travel_guide)."
    • removedInput schema / properties / city_tag / title
      Removed value: -"City Tag"
    • changedInput schema / properties / collection / anyOf
      Previous value: -[
      -  {
      -    "description": "Slug (letters, digits, -).",
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / collection / description
      Previous value: -"Collection (landing) code from ot_destinations, e.g. 'beach', 'jungle', 'villapool', 'discounted', 'lastsecond'."New value: +"Collection code from ot_destinations, e.g. 'beach', 'villapool'."
    • removedInput schema / properties / collection / title
      Removed value: -"Collection"
    • changedInput schema / properties / district_id / description
      Previous value: -"District id (near a landmark) from ot_search_filters, used with `city`, e.g. 230."New value: +"Landmark district id from ot_search_filters, with `city`, e.g. 230."
    • removedInput schema / properties / district_id / title
      Removed value: -"District Id"
    • changedInput schema / properties / filters / description
      Previous value: -"Amenity, rule, region and feature codes from ot_search_filters, exactly as returned, e.g. ['attributeValues=130202|130201|130101|130102|130103|AGG1'] (pool) or ['ruleValues=10101|10103|10102'] (pets). All must match."New value: +"Codes from ot_search_filters exactly as returned, e.g. ['ruleValues=10101|10103|10102'] (pets). All must match."
    • removedInput schema / properties / filters / title
      Removed value: -"Filters"
    • changedInput schema / properties / guests / description
      Previous value: -"Number of guests, e.g. 4. Rooms that cannot take that many are left out."New value: +"Guests, e.g. 4; smaller rooms are left out."
    • removedInput schema / properties / guests / title
      Removed value: -"Guests"
    • changedInput schema / properties / include_nearby / description
      Previous value: -"Also include rooms around the city."New value: +"Also rooms around the city."
    • removedInput schema / properties / include_nearby / title
      Removed value: -"Include Nearby"
    • changedInput schema / properties / instant / description
      Previous value: -"Only instant booking (no host approval)."New value: +"Only instant booking."
    • removedInput schema / properties / instant / title
      Removed value: -"Instant"
    • changedInput schema / properties / limit / default
      Previous value: -15New value: +10
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • changedInput schema / properties / max_price / description
      Previous value: -"Highest nightly price in Toman (after discount), e.g. 8000000."New value: +"Max nightly Toman after discount, e.g. 8000000."
    • removedInput schema / properties / max_price / title
      Removed value: -"Max Price"
    • changedInput schema / properties / min_price / description
      Previous value: -"Lowest nightly price in Toman (after discount), e.g. 3000000."New value: +"Min nightly Toman after discount, e.g. 3000000."
    • removedInput schema / properties / min_price / title
      Removed value: -"Min Price"
    • changedInput schema / properties / min_rating / description
      Previous value: -"Minimum rating: 3, 4 or 5."New value: +"Minimum rating."
    • removedInput schema / properties / min_rating / title
      Removed value: -"Min Rating"
    • changedInput schema / properties / name / description
      Previous value: -"Words of the room name, e.g. 'نرگس'."New value: +"Room name words, e.g. 'نرگس'."
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • changedInput schema / properties / page / description
      Previous value: -"Zero-based page number."New value: +"Zero-based page."
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • changedInput schema / properties / prime / description
      Previous value: -"Only 'prime' (premium) rooms."New value: +"Only 'prime' rooms."
    • removedInput schema / properties / prime / title
      Removed value: -"Prime"
    • changedInput schema / properties / province / anyOf
      Previous value: -[
      -  {
      -    "description": "Slug (letters, digits, -).",
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / province / title
      Removed value: -"Province"
    • changedInput schema / properties / rent_types / description
      Previous value: -"Rent type: whole_place (دربست), semi_private, shared."New value: +"Rent type."
    • removedInput schema / properties / rent_types / title
      Removed value: -"Rent Types"
    • changedInput schema / properties / room_types / description
      Previous value: -"Room type ids from ot_search_filters, e.g. [138] villa, [154] cottage, [137] apartment."New value: +"Room type ids from ot_search_filters, e.g. [138] villa."
    • removedInput schema / properties / room_types / title
      Removed value: -"Room Types"
    • changedInput schema / properties / sort / description
      Previous value: -"Order. cheapest/most_expensive use the nightly price after discount; with dates, cheapest then re-sorts each page by stay_total (extra-guest charges included)."New value: +"Order; with dates, cheapest re-sorts each page by stay_total."
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"ot_search_roomsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_search_roomsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, open-world behavior, so the safety profile is covered. The description adds genuinely new behavior: supplying dates returns only available rooms with an estimated stay_total for the guest count, while undated calls return starting prices — a distinction an agent must know before interpreting results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short blocks, front-loaded with purpose, then behavior, then pointer list. The telegraphic 'Slugs: ot_find_place; filter codes: ot_search_filters' phrasing is efficient but slightly compressed; no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 22-parameter, zero-required search tool with no output schema, the description covers what matters most: what is searched, how dates change results, and which siblings feed inputs. It omits pagination/result-envelope details, but the schema's page and limit fields cover that adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 22 parameters is already documented, including the date-dependent sort behavior and filter code format. The description adds only the date-mode effect on results, which is mostly a restatement of what the schema fields already say; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (search Otaghak stays) plus the inventory types and the three scoping dimensions (city, province, collection). It also names the sibling tools that supply slugs and filter codes, so an agent can tell it apart from ot_search_filters and ot_destinations without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: slugs come from ot_find_place, filter codes from ot_search_filters, and the follow-up path is ot_room / ot_price_quote. It gives a clear condition for the dated vs undated mode but does not state exclusions or when a sibling search is preferable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.