Skip to main content
Glama

Hotel search

st_hotel_search
Read-onlyIdempotent

Search hotels in a city by stay dates, star rating, price range, and facilities, then review available options with whole-stay prices.

Instructions

Search hotels in a city for dates with star, price and facility filters.

Prices are Toman for the whole stay (per_night is total divided by nights). Use hotel_url with st_hotel_detail and id with st_hotel_rooms.

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": "st_hotel_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity name in Persian (شیراز) or the city_id from st_hotel_places
pageNoPage number, 20 hotels per page
sortNoOrderrecommended
starsNoStar ratings to keep, e.g. [4, 5]
check_inNoYYYY-MM-DD, default tomorrow
check_outNoYYYY-MM-DD, default check_in + 1 night
max_priceNoToman, whole-stay price
min_priceNoToman, whole-stay price
hotel_nameNoKeep hotels whose name contains this (Persian)
facility_idsNoFacility ids from st_hotel_filters
only_availableNoHide hotels with no room for these dates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: the pricing unit convention (Toman for the whole stay, per_night is total divided by nights), which prevents a common misinterpretation of returned prices and is not stated in the schema.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and filter axes, followed by the one non-obvious pricing convention and the chaining hint. No filler, no repetition of the title, and every clause carries information an agent cannot get elsewhere.

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 an eleven-parameter search tool with no output schema, the description covers the action, the pricing unit, and how to consume the results via two named siblings, which is enough to call it correctly. Minor gaps remain around pagination behavior and an explicit steer away from detail-type siblings, but these are covered by the schema's page description and are not blocking.

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 description coverage is 100%, so the eleven parameters are already documented, and the description mostly reinforces rather than extends that (Toman whole-stay pricing is mirrored in max_price/min_price descriptions). With no output schema present, the mention of hotel_url and id does add value as the only documentation of returned fields, but that is framed as chaining advice rather than parameter meaning, so the baseline 3 applies.

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 opens with a specific verb+resource+scope: 'Search hotels in a city for dates with star, price and facility filters,' which tells an agent exactly what the tool returns and the axes it filters on. It does not explicitly exclude the other search-like siblings (e.g. st_flight_search or st_hotel_calendar), but naming st_hotel_detail and st_hotel_rooms as downstream consumers makes the search-vs-detail boundary clear.

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?

It gives concrete downstream usage: pass hotel_url to st_hotel_detail and id to st_hotel_rooms, which is exactly the kind of routing an agent needs after a list call. It stops short of stating when not to use this tool (e.g. when the user already has a hotel id, or when availability calendars are the real question), so there is clear context but no explicit exclusions.

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