Skip to main content
Glama

Hotels

al_hotels
Read-onlyIdempotent

Search hotels in a city for specific stay dates, compare room rates, ratings, meal plans, and perks, and filter by stars or sort by price and rating.

Instructions

Search hotels in a city for a stay: stars, rating, price for the whole stay, meal plan, perks (domestic and abroad).

Toman for the room for all nights (price_per_night_toman is the average). Takes a few seconds.

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": {
      "city": "<city>",
      "checkin": "<checkin>"
    },
    "name": "al_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity name (مشهد, Istanbul).
sortNoBest rated or cheapest first.rating
limitNoMax results.
adultsNoAdults in one room.
nightsNoNights from check-in.
checkinYesGregorian 2026-11-11 or Jalali 1405-08-20.
min_starsNoMin stars, 1-5.
only_availableNoHide hotels with no room for those dates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.2.0
    • changedInput schema / properties / adults / description
      Previous value: -"Adults in the room (one room per search)."New value: +"Adults in one room."
    • changedInput schema / properties / checkin / description
      Previous value: -"Travel date, Gregorian 2026-11-11 or Jalali 1405-08-20 (the year tells which)."New value: +"Gregorian 2026-11-11 or Jalali 1405-08-20."
    • changedInput schema / properties / city / description
      Previous value: -"City name in Persian or English (مشهد, Istanbul, دبی)."New value: +"City name (مشهد, Istanbul)."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results."New value: +"Max results."
    • changedInput schema / properties / min_stars / description
      Previous value: -"Lowest star rating to keep, 1-5."New value: +"Min stars, 1-5."
    • changedInput schema / properties / nights / description
      Previous value: -"Number of nights, counted from the check-in date."New value: +"Nights from check-in."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results: best rated first, or cheapest first."New value: +"Best rated or cheapest first."
  2. First observedv0.1.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description does add genuine non-annotation context: price is for the entire stay while price_per_night_toman is an average, and the call takes a few seconds. It says nothing about result caps, empty-result behavior, or what perks/meal plans look like, so it adds context without being rich.

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

Conciseness3/5

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

The first sentence is well front-loaded and dense with useful detail. The second paragraph is a telegraphic fragment ('Toman for the room for all nights... Takes a few seconds.') that reads as notes rather than prose, and the currency statement sits apart from the search description it modifies.

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

Completeness3/5

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

With no output schema present, the description does name the returned attributes (stars, rating, total price, meal plan, perks), which is the right compensation. It stops short of covering the pagination/limit behavior, the default hiding of unavailable hotels, or result ordering, all of which the agent must read from the schema to call correctly.

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 description coverage is 100%, so the schema itself carries the per-parameter burden and the baseline is a 3. The description earns an extra point by disambiguating the pricing unit (whole-stay total vs. per-night average), a detail the schema cannot express because the price is an output field. It does not extend any input parameter beyond the schema, such as what min_stars=null means or how Jalali vs. Gregorian check-in selection works.

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?

A specific verb and resource: 'Search hotels in a city for a stay', followed by the fields returned (stars, rating, price, meal plan, perks) and scope (domestic and abroad). It never names its nearest siblings al_stays or al_stay_detail, so the agent must infer that this is the hotel-specific variant, which keeps it just short of a 5.

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 'for a stay' plus the required city/checkin pair, but there is no explicit when-to-use rule and no exclusions. The most valuable routing information, when to pick this over al_stays or when to follow up with al_stay_detail, is absent.

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