Skip to main content
Glama

Search hotels

search_hotels

Find available hotels and bookable rates by destination or hotel codes for set dates and occupancy. Returns rateKeys to validate or book.

Instructions

Search hotel availability by destination code or hotel codes for given dates and occupancy. Returns hotels with bookable rateKeys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax hotels to return.
roomsNoNumber of rooms.
adultsNoAdults per room.
checkInYesCheck-in date, YYYY-MM-DD.
checkOutYesCheck-out date, YYYY-MM-DD.
childrenNoChildren per room.
hotelCodesNoSpecific Hotelbeds hotel codes. Provide this OR destinationCode.
childrenAgesNoAge of each child; required when children > 0.
destinationCodeNoHotelbeds destination code, e.g. 'PMI'. Provide this OR hotelCodes.
maxRatesPerHotelNoMax (cheapest) rates to return per hotel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but only states that results include bookable rateKeys. It omits authentication needs, rate limits, pagination behavior, and what happens when no hotels are available.

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 with no wasted words. The primary action and scope are front-loaded, followed by a brief return-value note.

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

Completeness2/5

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

For a 10-parameter search tool with no output schema and no annotations, the description is minimal. It lacks usage guidance, result semantics beyond 'bookable rateKeys', and any workflow relationship to siblings like check_rate or create_booking.

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 10 parameters are already documented. The description repeats destinationCode/hotelCodes, dates, and occupancy without adding syntax, defaults, or format details beyond the schema.

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 states a specific verb (Search) and resource (hotel availability) with the scope (destination code or hotel codes, dates, occupancy). It implies differentiation from content-only siblings, but does not explicitly name any alternative tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus siblings such as check_rate or list_hotels_content. The only usage hint is the schema's 'Provide this OR hotelCodes' constraint, which is already in structured data.

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