Skip to main content
Glama

Find similar hotels

find_similar_hotels
Read-onlyIdempotent

Use this when the user likes a hotel but wants alternatives, e.g. 'like this one but cheaper' (cheaper_only). Returns hotels in the same destination with the closest comfort profile, none with repeated complaints about cleanliness, beds, showers, bugs or safety, with the price difference. Read-only, no sign-in.

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_id": "<hotel_id>"
    },
    "name": "find_similar_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many to return (default 5).
adultsNoGuests per room (1-8), if given.
checkinNoUser's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay.
checkoutNoCheck-out date, YYYY-MM-DD (e.g. 2027-03-15).
hotel_idYesHotel id to find alternatives for.
max_priceNoMaximum price per night in USD.
cheaper_onlyNoOnly hotels priced below this one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / adults / description
      Previous value: -"Guests per room, if given."New value: +"Guests per room (1-8), if given."
    • changedInput schema / properties / checkin / description
      Previous value: -"User's check-in date, YYYY-MM-DD, if given: links then open on this stay."New value: +"User's check-in date, YYYY-MM-DD (e.g. 2027-03-12), if given: links then open on this stay."
    • changedInput schema / properties / checkout / description
      Previous value: -"Check-out date, YYYY-MM-DD."New value: +"Check-out date, YYYY-MM-DD (e.g. 2027-03-15)."
  2. Changed3 schema fields changed
    • addedInput schema / properties / adults
      Added value: +{
      +  "description": "Guests per room, if given.",
      +  "maximum": 8,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / checkin
      Added value: +{
      +  "description": "User's check-in date, YYYY-MM-DD, if given: links then open on this stay.",
      +  "type": "string"
      +}
    • addedInput schema / properties / checkout
      Added value: +{
      +  "description": "Check-out date, YYYY-MM-DD.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/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 'read-only, no sign-in' is largely redundant. What earns credit is the undisclosed domain behavior: results exclude any hotel with repeated complaints about cleanliness, beds, showers, bugs or safety, and each result carries the price difference versus the anchor. Return shape in detail (no output schema) and behavior when dates are omitted are not covered.

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?

A single dense sentence pair, front-loaded with the usage trigger and example, then the result contract. No filler and nothing buried at the end that an agent needs early.

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 7-parameter, no-output-schema tool it covers the essentials: what comes back, how it is ranked, and what is filtered out. Gaps remain around whether prices/stay-open links work without checkin/checkout and what the response object looks like, which matters given there is no output schema.

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 all seven parameters are already documented, which sets the baseline at 3. The description adds domain meaning for cheaper_only ('like this one but cheaper') and implies hotel_id defines the destination scope, but gives no extra syntax or format guidance beyond the schema.

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 and resource and pins the scope: alternatives to a given hotel, in the same destination, ranked by 'closest comfort profile'. The anchor-by-hotel_id framing plus the complaint-exclusion filter makes it clearly distinct from search_hotels (query-based) and compare_hotels (comparison), so an agent can route without opening a schema.

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 an explicit trigger condition ('when the user likes a hotel but wants alternatives') with a concrete user utterance example and the cheaper_only variant. It stops short of naming when NOT to use it or pointing to compare_hotels/search_hotels as alternatives, so it is clear context rather than full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.