Skip to main content
Glama

Room calendar

ot_room_calendar
Read-onlyIdempotent

Retrieve a room's day-by-day calendar showing nightly prices before and after discount, free or booked status, instant booking, and minimum/maximum stay limits.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
endNoLast day, inclusive (default start + 30 days).
startNoFirst day YYYY-MM-DD (default today).
room_idYesRoom id (code).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.4.0
    • removedInput schema / properties / end / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / end / description
      Previous value: -"Last day (inclusive), e.g. '2026-11-20'. Default: start + 30 days."New value: +"Last day, inclusive (default start + 30 days)."
    • addedInput schema / properties / end / format
      Added value: +"date"
    • addedInput schema / properties / end / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / room_id / description
      Previous value: -"Room id (code), e.g. 2512254."New value: +"Room id (code)."
    • removedInput schema / properties / start / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / start / description
      Previous value: -"First day YYYY-MM-DD, e.g. '2026-10-20'. Default: today."New value: +"First day YYYY-MM-DD (default today)."
    • addedInput schema / properties / start / format
      Added value: +"date"
    • addedInput schema / properties / start / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed7 schema fields changedv0.2.0
    • changedInput schema / properties / end / description
      Previous value: -"Last day (inclusive), e.g. '2026-11-20'. Default: 30 days after start. Days past the open calendar (end of next Jalali month) are not returned."New value: +"Last day (inclusive), e.g. '2026-11-20'. Default: start + 30 days."
    • removedInput schema / properties / end / title
      Removed value: -"End"
    • removedInput schema / properties / room_id / title
      Removed value: -"Room Id"
    • changedInput schema / properties / start / description
      Previous value: -"First day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'. Default: today."New value: +"First day YYYY-MM-DD, e.g. '2026-10-20'. Default: today."
    • removedInput schema / properties / start / title
      Removed value: -"Start"
    • removedInput schema / title
      Removed value: -"ot_room_calendarArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_room_calendarDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered. The description adds genuine domain behavior beyond that: prices are in Toman, a night is priced on its arrival day, and absent keys mean 'no discount / no'. It stops short of noting any cost or rate concerns implied by openWorldHint.

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 sentences, front-loaded with the core purpose and the field list, with no filler. The terse fragment 'Absent keys = no discount / no.' is efficient but slightly cryptic on first read.

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 carries the burden of describing returns, and it does enumerate the per-day fields, which is the key thing an agent needs. It omits edge cases such as invalid room_id or maximum date-range behaviour, but nothing essential to correct invocation is missing.

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%, with start/end/room_id all documented in-schema, so the baseline is 3. The description adds interpretive meaning — that pricing attaches to the arrival day and that absent per-day keys signal no discount — which helps read the results but does not clarify the parameter formats or range limits beyond 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?

The description opens with a specific verb+resource ('Get a room's calendar day by day') and then enumerates exactly what each day contains — prices before/after discount in Toman, free/booked status, instant booking, min/max nights, weekend, holiday, late checkout. The trailing 'Next: ot_price_quote' also signals how this differs from the pricing sibling, so an agent can distinguish it 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 Guidelines3/5

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

Usage is only implied: the tool is for per-day availability/price data, and 'Next: ot_price_quote' suggests a follow-up step. There is no explicit statement of when to prefer this over ot_room, ot_price_quote, or ot_deals, and no exclusions or preconditions (e.g., room_id must come from a search).

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