Skip to main content
Glama

Room details

ot_room
Read-onlyIdempotent

Retrieve detailed room information, amenities, house rules, photos, and nightly pricing, optionally for specific check-in and check-out dates to compare stay options.

Instructions

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.

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_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
room_idYesRoom id (code).
check_inNoArrival day YYYY-MM-DD (not past).
check_outNoDeparture day YYYY-MM-DD (max 20 nights).
full_textNoReturn long texts in full instead of clipped.
max_photosNoPhoto URLs to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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"
      +]
    • 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"
    • addedInput schema / properties / full_text
      Added value: +{
      +  "default": false,
      +  "description": "Return long texts in full instead of clipped.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / max_photos / title
      Removed value: -"Max Photos"
    • removedInput schema / properties / room_id / title
      Removed value: -"Room Id"
    • removedInput schema / title
      Removed value: -"ot_roomArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_roomDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds real behavioral value: the quoted price is an average that is returned even for booked nights, so it must not be read as availability, and instant_on_some_nights is explicitly room-level rather than per-night. It does not state error behavior for invalid ids or the default clipping of long texts, but the substance here goes well beyond the 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 payload list, then the price-semantics caveat, then the handoff list — every sentence carries information. The 'Next:' line and the telegraphed 'instant_on_some_nights is room-level; per night see `instant` there' are terse to the point of being cryptic, since `instant` is an output field the agent cannot see in any schema.

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 properly enumerates the returned categories and flags the one field whose value is easy to misread (price), which is enough for an agent to call it correctly. It stops short of describing truncation defaults or failure modes for a bad room_id, minor given the read-only, idempotent annotations.

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 earns a bump by explaining the semantic consequence of supplying check_in/check_out (the price becomes a booked-inclusive average rather than a starting price), which the schema's format hints do not convey. It leaves full_text and max_photos entirely to the schema.

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 singular resource ('Get one room') and enumerates the payload: description, capacity, beds, amenities, house rules, check-in/out, cancellation policy, host, nearby places, location, photos and price. 'One room' plus the sibling list makes it distinguishable from ot_search_rooms and ot_similar_rooms.

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 distinguishes the two calling modes: with dates the price is an average nightly rate regardless of availability, without dates it is an undated starting price, and it routes availability questions to ot_price_quote / ot_room_calendar. It lacks a 'call ot_search_rooms first to obtain room_id' prerequisite, which is the one obvious omission.

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