Skip to main content
Glama

Find matching rooms

find_matching_rooms
Read-onlyIdempotent

Find the specific hotel rooms that fit a traveler, with the evidence behind each fact. Use this whenever the traveler cares about the room itself: bed, view, bathtub, balcony, accessibility, floor, quiet, Wi-Fi, connecting rooms, kitchenette, pets, blackout, a desk, distance from the elevator, a window that opens. Translate what they say into must_have (deal-breakers) and nice_to_have (wishes). Matches meet every must-have on evidence; 'possible' rooms have a must-have nobody has confirmed and must never be presented as matches. Results are numbered rooms where Roomza holds the hotel's room records, otherwise room types, labeled as such. Then call show_rooms with the matches' room_ids (or the hotel_id for room types), and secure_room to price and book a room the traveler picks.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_matching_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many matches (default 6)
hotel_idNoSearch one hotel's rooms (UUID)
must_haveNoDeal-breakers: a room that lacks one is left out
destinationNoCity, neighborhood, landmark, or hotel name. Give this or hotel_id.
nice_to_haveNoWishes that rank the rooms
use_my_preferencesNoAdd the signed-in traveler's saved room preferences as wishes

Output Schema

NameRequiredDescriptionDefault
matchesYesRooms whose evidence meets every must-have, best suited first
possibleYesRooms where a must-have is unknown or unverified: never present these as matches
hotelsSearchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / must_have / items / properties / attribute / description
      Previous value: -"bed, view, bathtub, balcony, accessible, high_floor (4th floor or above), quiet, fast_wifi, connecting, kitchenette, pet_friendly"New value: +"bed, view, bathtub, balcony, accessible, high_floor (4th floor or above), quiet, fast_wifi, connecting, kitchenette, pet_friendly, blackout (dark with the curtains shut), workspace (a real desk), away_from_elevator, window_opens"
    • changedInput schema / properties / must_have / items / properties / attribute / enum
      Previous value: -[
      -  "bed",
      -  "view",
      -  "bathtub",
      -  "balcony",
      -  "accessible",
      -  "high_floor",
      -  "quiet",
      -  "fast_wifi",
      -  "connecting",
      -  "kitchenette",
      -  "pet_friendly"
      -]New value: +[
      +  "bed",
      +  "view",
      +  "bathtub",
      +  "balcony",
      +  "accessible",
      +  "high_floor",
      +  "quiet",
      +  "fast_wifi",
      +  "connecting",
      +  "kitchenette",
      +  "pet_friendly",
      +  "blackout",
      +  "workspace",
      +  "away_from_elevator",
      +  "window_opens"
      +]
    • changedInput schema / properties / nice_to_have / items / properties / attribute / description
      Previous value: -"bed, view, bathtub, balcony, accessible, high_floor (4th floor or above), quiet, fast_wifi, connecting, kitchenette, pet_friendly"New value: +"bed, view, bathtub, balcony, accessible, high_floor (4th floor or above), quiet, fast_wifi, connecting, kitchenette, pet_friendly, blackout (dark with the curtains shut), workspace (a real desk), away_from_elevator, window_opens"
    • changedInput schema / properties / nice_to_have / items / properties / attribute / enum
      Previous value: -[
      -  "bed",
      -  "view",
      -  "bathtub",
      -  "balcony",
      -  "accessible",
      -  "high_floor",
      -  "quiet",
      -  "fast_wifi",
      -  "connecting",
      -  "kitchenette",
      -  "pet_friendly"
      -]New value: +[
      +  "bed",
      +  "view",
      +  "bathtub",
      +  "balcony",
      +  "accessible",
      +  "high_floor",
      +  "quiet",
      +  "fast_wifi",
      +  "connecting",
      +  "kitchenette",
      +  "pet_friendly",
      +  "blackout",
      +  "workspace",
      +  "away_from_elevator",
      +  "window_opens"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the description is free to disclose the parts annotations cannot express. It does: matches satisfy every must-have on evidence, 'possible' rooms have an unconfirmed must-have and 'must never be presented as matches', and results are labeled by room vs room type. That is exactly the semantic rule an agent could otherwise get wrong.

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?

The purpose and the must_have/nice_to_have rule come first, and the workflow hand-off comes last, so it is well front-loaded. It reads as one long run-on block and the attribute list is heavy, though each item is a real trigger token rather than filler.

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

Completeness5/5

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

For a 6-parameter search tool with nested arrays and an output schema, the definition covers what matters: input intent mapping, how results are classified (matches vs possible), what unit results are in, and which tools to call next. Return-format detail is correctly left to the output schema.

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 coverage is 100% and the schema already labels must_have as deal-breakers and nice_to_have as ranking wishes, so the baseline is not raised by restating it. The description does add actionable meaning by framing the task as translation of traveler statements into the two buckets and by enumerating the intent categories that justify each attribute.

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?

Opens with a specific verb and resource: 'Find the specific hotel rooms that fit a traveler, with the evidence behind each fact.' It also states the result unit (numbered rooms where Roomza holds room records, otherwise room types), which separates it from show_rooms and get_hotel_rooms without the agent needing to open 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?

The trigger is explicit and enumerated ('use this whenever the traveler cares about the room itself', followed by a concrete attribute list), and the downstream chain is spelled out: call show_rooms with room_ids (or hotel_id for room types), then secure_room to price and book. What's missing is an explicit statement of when NOT to use it (e.g. hotel-level discovery belongs to search_hotels); that boundary is only implied.

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.

Resources