Skip to main content
Glama

Room prices

eg_rooms
Read-onlyIdempotent

Lists a hotel's bookable rooms with total and nightly stay prices in Toman, sorted cheapest first, and filters by check-in date, nights, and guest count. Compare room offers for a stay.

Instructions

List a hotel's bookable rooms with the stay price, cheapest first.

Each offer is a room type on a rate plan: total (whole stay) and avg_night in Toman, list_total the crossed-out price, rooms_left, free_cancel (rule in cancellation). Unbookable offers are counted in not_bookable with a reason. Read-only.

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>"
    },
    "name": "eg_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault
hotelYes`hotel` value from eg_search (/MashhadHotels/ParsisHotel.html), full URL, or 'Mashhad/Parsis'.
limitNo
guestsNoOnly rooms sleeping this many (extra beds counted).
nightsNoNumber of nights, 1-30.
check_inNoYYYY-MM-DD, Gregorian or Jalali (1405-08-19). Default tomorrow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Check-in date, YYYY-MM-DD (Gregorian, or Jalali such as 1405-08-19). Default: tomorrow."New value: +"YYYY-MM-DD, Gregorian or Jalali (1405-08-19). Default tomorrow."
    • changedInput schema / properties / guests / description
      Previous value: -"Only rooms that sleep this many people (extra beds counted)."New value: +"Only rooms sleeping this many (extra beds counted)."
    • changedInput schema / properties / hotel / description
      Previous value: -"The hotel: the `hotel` value from eg_search (e.g. /MashhadHotels/ParsisHotel.html), its full eghamat24.com URL, or 'Mashhad/Parsis' (city slug / hotel slug)."New value: +"`hotel` value from eg_search (/MashhadHotels/ParsisHotel.html), full URL, or 'Mashhad/Parsis'."
  2. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so repeating 'Read-only' is redundant. The valuable addition is the return-side behavior: prices in Toman, `list_total` as a crossed-out price, `rooms_left`, `free_cancel` tied to a `cancellation` rule, and unbookable offers surfaced via `not_bookable` with a reason. That describes the shape of the result, which matters because no output schema exists.

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?

The purpose is front-loaded in one sentence, followed by a compact field glossary. Nearly every clause earns its place, though the trailing 'Read-only' duplicates the annotations and could be dropped without loss.

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 explaining return fields, and it does so efficiently, including currency and the not-bookable reason field. It stops short of covering pagination/truncation at `limit` and failure behavior for an unknown hotel, which are minor residual gaps for a read-only listing tool.

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 80%, so `guests`, `nights`, `check_in`, and `limit` are already documented in the schema and the description adds little to them. It does clarify that the `hotel` argument can come from eg_search and that prices are denominated in Toman, but it says nothing about how `limit` interacts with ordering or truncation. Baseline 3 is appropriate.

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 first sentence gives a specific verb, resource, and output ordering: 'List a hotel's bookable rooms with the stay price, cheapest first.' That is far more precise than the title 'Room prices'. It does not explicitly contrast itself with eg_price_calendar or eg_hotel, so a distinct sibling boundary is left implicit.

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 phrasing and by the `hotel` parameter note pointing back to eg_search as the source of the identifier, which surfaces a useful prerequisite chain. There is no explicit statement of when to prefer this over eg_price_calendar or eg_hotel, and no exclusions or date-range guidance.

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