Skip to main content
Glama

Hotel rooms and prices

mb_hotel_rooms
Read-onlyIdempotent

Retrieves every room type for a hotel with exact price for the whole stay and per night, rooms left, and meal plan so agents can pick a room that fits the guest count.

Instructions

Every room of a hotel with its exact price for the dates: whole stay, per night, rooms left, meals.

price_toman is the whole stay for one room after discount (independent of guest count: choose rooms whose sleeps fits). rooms_left 0 = full. Empty rooms = nothing free (try mb_hotel_calendar).

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": {
      "hotel": "<hotel>",
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "mb_hotel_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault
hotelYesHotel as 'city_slug/hotel_slug' from mb_search_hotels, e.g. 'mashhad/enghelab'.
guestsNoOnly rooms that sleep at least this many (with extra beds), e.g. 3.
check_inYesCheck-in date YYYY-MM-DD.
check_outYesCheck-out date YYYY-MM-DD (1 to 30 nights).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.5.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Check-in date YYYY-MM-DD, e.g. '2026-10-20'."New value: +"Check-in date YYYY-MM-DD."
    • changedInput schema / properties / check_out / description
      Previous value: -"Check-out date YYYY-MM-DD, e.g. '2026-10-23' (1 to 30 nights)."New value: +"Check-out date YYYY-MM-DD (1 to 30 nights)."
    • removedInput schema / properties / guests / anyOf
      Removed value: -[
      -  {
      -    "maximum": 12,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / guests / maximum
      Added value: +12
    • addedInput schema / properties / guests / minimum
      Added value: +1
    • addedInput schema / properties / guests / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / hotel / description
      Previous value: -"Hotel as 'city_slug/hotel_slug' from mb_search_hotels, mb_city_hotels or mb_find_place, e.g. 'mashhad/enghelab'."New value: +"Hotel as 'city_slug/hotel_slug' from mb_search_hotels, e.g. 'mashhad/enghelab'."
    • removedInput schema / title
      Removed value: -"mb_hotel_roomsArguments"
  2. Changed5 schema fields changedv0.3.0
    • removedInput schema / properties / check_in / title
      Removed value: -"Check In"
    • removedInput schema / properties / check_out / title
      Removed value: -"Check Out"
    • removedInput schema / properties / guests / title
      Removed value: -"Guests"
    • removedInput schema / properties / hotel / title
      Removed value: -"Hotel"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "mb_hotel_roomsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world, so the safety bar is low. The description earns credit by disclosing data semantics the annotations cannot: price_toman is the whole-stay price after discount and is independent of guest count, rooms_left 0 means sold out, and an empty list means no availability.

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 paragraphs, front-loaded with what the tool returns, then edge-case semantics. The telegraphic phrasing ('rooms_left 0 = full') is dense but readable; nothing is padded.

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 no output schema, the description carries the burden of describing the return shape and does so: whole-stay and per-night prices, rooms left, meals. Combined with a fully documented input schema and explicit annotations, an agent has enough to call this correctly and interpret empty results.

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 all four parameters are already documented, which sets the baseline at 3. The description adds a little meaning by clarifying that guest count selects rooms by sleeping capacity rather than affecting price, but it does not name the per-night field or explain date-range constraints beyond what the schema says.

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

Purpose4/5

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

The description names a concrete resource (every room of a hotel) and the exact payload (whole-stay price, per-night price, rooms left, meals) for given dates, which is clearly distinct from mb_hotel (hotel info) and mb_hotel_calendar (availability calendar). It stops short of explicitly contrasting itself with those siblings except in the empty-result fallback.

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 implied by the date-range framing and the one conditional redirect: when the room list comes back empty, try mb_hotel_calendar. There is no explicit statement of when to pick this over mb_hotel or mb_search_hotels, and no prerequisites (e.g. hotel slug must come from mb_search_hotels) stated in the prose, though the schema covers that.

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