Skip to main content
Glama

Hotel filters

st_hotel_filters
Read-onlyIdempotent

List hotel filters for a city and dates—facilities, categories, accommodation types, price range, stars—and return facility IDs to refine hotel searches.

Instructions

List the filters a city offers for dates: facilities (ids), categories, accommodation types, price range, stars.

Pass facility ids to st_hotel_search facility_ids.

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_filters"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity name in Persian or city_id
check_inNoYYYY-MM-DD, default tomorrow
check_outNoYYYY-MM-DD, default check_in + 1 night

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 readOnly, idempotent, openWorld, and non-destructive, so the safety profile is free. The description adds real value by disclosing that results are city- and date-dependent and that facility ids are reusable handles for another tool — chaining behavior an agent cannot get from the annotations or 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 purpose and the returned filter types, then the follow-up action. No filler, no repetition of the title or schema defaults.

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 must convey return contents, and it does by naming the filter categories. It stops short of describing the shape of the response (whether categories/accommodation types come back as ids plus labels, or how price range and stars are represented), which is the remaining gap for a discovery 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 100%, including city format (Persian name or city_id) and date defaults, so the schema carries parameter meaning. The description only restates that city and dates scope the results, adding no format or validation detail beyond the structured fields — baseline 3.

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 uses a specific verb and resource ('List the filters a city offers for dates') and enumerates exactly what is returned: facilities (ids), categories, accommodation types, price range, stars. That makes it clearly distinguishable from st_hotel_search at a glance, though it never explicitly states what it is not.

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 clear downstream context: fetch filter options for a city and dates, then pass the facility ids to st_hotel_search via facility_ids. What's missing is any exclusion or precedence guidance (e.g. whether it must be called before search, or whether it is skippable when the user already has filter ids).

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