Skip to main content
Glama

Similar rooms

ot_similar_rooms
Read-onlyIdempotent

Finds 4-5 alternative rooms of the same city and type, re-priced for your dates and guests, falling back to a search up to 1.5x the price when no alternatives are listed.

Instructions

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.

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": {
      "room_id": "<room_id>"
    },
    "name": "ot_similar_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestsNoGuests; smaller rooms are left out.
room_idYesRoom id (code).
check_inNoArrival day YYYY-MM-DD (not past).
check_outNoDeparture day YYYY-MM-DD (max 20 nights).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.4.0
    • 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 / 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 / room_id / description
      Previous value: -"Room id (code), e.g. 2512254."New value: +"Room id (code)."
  2. Changed9 schema fields changedv0.2.0
    • 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 / 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"
    • removedInput schema / properties / room_id / title
      Removed value: -"Room Id"
    • removedInput schema / title
      Removed value: -"ot_similar_roomsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_similar_roomsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantive behavior beyond them: the 4-5 result count, the upstream-empty fallback with a 1.5x price ceiling, the `note` field that flags that fallback, and the date-dependent re-pricing with booked/too-small rooms routed to not_available. That is real disclosure of result semantics the agent could not infer from annotations.

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?

Front-loaded with the core purpose, and every clause carries information (fallback, pricing mode, next steps). The nested parenthetical and the inline `note` reference make it denser than it needs to be, but nothing is padding.

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?

With no output schema, the description does the work of describing the returned set, including the not_available bucket and the `note` signal, which is what an agent needs to interpret results. It stops short of describing item fields or ordering, but the essentials for correct invocation and interpretation are present.

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 coverage is 100%, so room_id, guests, check_in and check_out are already documented. The description adds meaning about what the dates do (undated starting prices vs. re-priced, and exclusion into not_available), but says little new about guests or the id format, so it sits at the baseline.

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 ('Get 4-5 alternatives to a room') plus the scoping rule (same city and type) and the fidelity source ('as the room page shows them'). This clearly separates it from ot_room (single room) and ot_search_rooms (free search) without needing the 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?

The 'Next: ot_room, ot_price_quote' line gives an explicit follow-on path, and the fallback branch (empty upstream list -> city/type search up to 1.5x price) tells the agent what it will get in that case. It lacks an explicit when-not statement, e.g. when to prefer ot_search_rooms over this.

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