Skip to main content
Glama

Similar rooms

ot_similar_rooms
Read-onlyIdempotent

Find alternative rooms in the same city and type when a room is full or too expensive, with optional dates to check availability and re-price for your stay.

Instructions

Get 4-5 alternatives to a room (same city and type), as the room page shows them.

Without dates prices are undated starting prices (not tonight's). With check_in/check_out the rooms are re-priced for that stay; rooms that are booked or too small for guests are listed in not_available. Use when the user's room is full or too expensive. Next: ot_room, ot_price_quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guestsNoNumber of guests, e.g. 4. Rooms that cannot take that many are left out.
room_idYesRoom id (code), e.g. 2512254.
check_inNoArrival day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'. Not in the past; calendars open only to the end of next Jalali month.
check_outNoDeparture day, Gregorian YYYY-MM-DD, e.g. '2026-10-23' (3 nights). At most 20 nights after check_in.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/safe, so the bar is lower. The description adds behavior the annotations cannot express: prices are undated starting prices without dates and re-priced for the stay with dates, and unavailable rooms are surfaced in a not_available list. That is genuine operational context beyond structured fields.

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

Conciseness5/5

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

Front-loaded with the core purpose, then the pricing/availability nuance, then the next-step tools. Every sentence adds information; there is no restatement of the title or padding.

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

Completeness5/5

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

With an output schema present, return shape need not be explained, and the description instead covers the non-obvious parts: pricing mode depends on dates, booked/too-small rooms land in not_available, and the follow-on tools. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description goes further by explaining how check_in/check_out change price semantics and how guests filters out undersized rooms, adding interaction meaning that the per-parameter schema text does not fully convey.

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?

The first sentence states a specific verb (get), resource (alternatives to a room), scope (same city and type), and cardinality (4-5), and the phrase 'as the room page shows them' anchors it to a known surface. An agent can separate it from ot_search_rooms and ot_room without opening a 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?

It gives explicit trigger conditions ('Use when the user's room is full or too expensive') and names follow-on tools (ot_room, ot_price_quote). It does not contrast itself against sibling discovery tools like ot_search_rooms, so the 'when-not' side is thin, but the routing guidance is real.

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