Skip to main content
Glama

All hotels of a city

mb_city_hotels
Read-onlyIdempotent

Retrieve every listed hotel in a city, including sold-out ones, with stars, guest rating, and address; filter by name, stars, and stay type by page. No prices.

Instructions

Every listed hotel of a city, sold out ones included, with stars, rating and address; no prices.

Filters apply to one page of 90 hotels at a time, so check pages. Prices: mb_search_hotels or 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": {
      "city": "<city>"
    },
    "name": "mb_city_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity slug from mb_find_place(mode='hotel'), e.g. 'mashhad' or 'kish'.
nameNoOnly names containing this text, e.g. 'درویشی'.
pageNoPage of 90 hotels (the site's ranking order).
limitNoMax hotels returned from the page.
starsNoOnly this star count, e.g. 4.
hotel_typeNoKind of stay.any

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.5.0
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 60,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / name / maxLength
      Added value: +60
    • addedInput schema / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / stars / anyOf
      Removed value: -[
      -  {
      -    "maximum": 5,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / stars / maximum
      Added value: +5
    • addedInput schema / properties / stars / minimum
      Added value: +1
    • addedInput schema / properties / stars / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / title
      Removed value: -"mb_city_hotelsArguments"
  2. Changed8 schema fields changedv0.3.0
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • removedInput schema / properties / hotel_type / title
      Removed value: -"Hotel Type"
    • changedInput schema / properties / limit / default
      Previous value: -40New value: +20
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / stars / title
      Removed value: -"Stars"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "mb_city_hotelsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered; the description then adds the non-obvious behaviours an agent needs: sold-out properties are retained, no price fields are present, and filtering is scoped to a 90-hotel page rather than the whole city. It stops short of describing ordering beyond 'listed'/ranking or response envelope shape.

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 sentences, front-loaded with the scope and payload before the alternative routing; nothing is padding. The telegraphic final clause ('Prices: mb_search_hotels or mb_hotel_calendar') is efficient but slightly clipped compared with the rest of the prose.

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?

For a 6-parameter read-only listing with full schema coverage and rich annotations, the description covers what is returned, what is omitted, and the pagination pitfall. With no output schema, a short note on result ordering or the `pages` field's shape would make it fully self-sufficient.

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 the schema already documents city, name, page, limit, stars and hotel_type, making 3 the baseline. The description contributes only one extra semantic — that filters apply per page and callers should inspect `pages` — which clarifies the page/limit interaction but does not extend the other parameters.

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+resource+scope: 'Every listed hotel of a city, sold out ones included', and immediately qualifies the payload ('with stars, rating and address; no prices'). The closing 'Prices: mb_search_hotels or mb_hotel_calendar' explicitly separates it from the sibling that does carry prices.

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?

Gives a clear selection rule against two named alternatives for price data, and warns that filters operate within one page of 90. It does not address when to prefer this over mb_hotel (single-hotel detail) or mb_hotel_rooms, so the routing picture is not fully closed.

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