Skip to main content
Glama

Search Hotels & Lodging

search_hotels
Read-onlyIdempotent

Search for hotels and accommodations. Ordinary searches use the text query. Dated radius searches use a geographic bounding box and exact distance filter; SearchAPI does not apply the text query or style preferences within the radius. Provider coverage may be incomplete and prices may change. A hotel_place_id without radius_meters searches by the resolved hotel name; with radius_meters it searches nearby. Only a unique identity match retains its offer links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of hotel results to return (max 10).
queryNoSearch query or destination city (e.g. 'hotels in Tokyo'). Required for ordinary hotel search. Radius search ignores this text in provider selection and filters by geography only. For hotel_place_id without radius_meters, the resolved property name is used for provider search and identity matching.
trip_idNoOptional Tineo trip ID (from trips_list) this request is for. Used only to default the currency to that trip's currency when currency is omitted and the user has no preferred currency; ignored if the trip is not found or not accessible to the user.
check_inNoCheck-in date in YYYY-MM-DD format (alias: checkIn).
currencyNoOptional ISO-style three-letter currency code. Omit to use the user's preferred currency, then the currency of the trip given by trip_id, then USD.
latitudeNoRadius center latitude. Supply together with longitude instead of a place ID. Query may be omitted for a coordinate-only radius search.
check_outNoCheck-out date in YYYY-MM-DD format (alias: checkOut).
longitudeNoRadius center longitude. Supply together with latitude instead of a place ID. Query may be omitted for a coordinate-only radius search.
adult_countNoNumber of adults (alias: adults).
radius_metersNoGeographic search radius, default 1000 meters when center_place_id or coordinates are given. Requires stay dates and a center. Text query and style preferences are not applied to radius provider selection.
hotel_place_idNoOptional specific hotel place ID. Searches priced inventory by hotel name, or nearby when radius_meters is supplied. Retains offer links only if identity is uniquely verified. Requires check_in and check_out.
center_place_idNoOptional place ID for the radius center, from places_search. Requires check_in and check_out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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. The description earns credit beyond them by disclosing that SearchAPI does not apply the text query or style preferences inside the radius, that provider coverage may be incomplete, that prices may change, and that only a unique identity match retains offer links.

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 description is front-loaded with the core purpose and then walks through the modes in compact sentences with no filler. It is dense but every sentence carries behavioral or routing information, so it stays appropriately sized.

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 12-parameter, zero-required, multi-mode tool with no output schema, the description does the heavy lifting of explaining the modes, the radius caveats, and the check-in/check-out gating implied by the schema. Return-shape detail is absent, but it discloses offer-link behavior, which is the key observable outcome.

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%, so the schema already documents all 12 parameters and the baseline is 3. The description adds cross-parameter interaction semantics for hotel_place_id combined with radius_meters, but does not add format or constraint detail beyond what each property description already states.

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 and resource ("Search for hotels and accommodations") and then distinguishes the tool's operating modes (ordinary text query vs dated radius search vs hotel_place_id lookup). It is clearly not a generic search, though it never names sibling tools like places_search or search_attractions to sharpen the boundary against them.

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 explains when each mode applies: plain text query for ordinary searches, bounding box plus distance for dated radius searches, and hotel_place_id with or without radius_meters for identity vs nearby lookups. This is genuine when-to-use guidance, but it stops short of naming explicit alternatives or exclusions within the tool family.

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