Skip to main content
Glama

Get Hotel Search Results

get_search_results
Read-only

Returns the hotel results for a running search identified by searchKey (from hotel_search). Results stream in asynchronously, so POLL this tool until the returned searchStatus equals COMPLETED (it is IN_PROGRESS while results are still loading). Supports page (0-indexed on BOTH the request and the response echo — page 0 is the first page and comes back as page 0), size (use a large value like 5000 to get all), filters (minPrice/maxPrice/starRatings/amenities/mealTypes/hotelName/minDiscountScore), sortBy (PRICE_ASC/PRICE_DESC/RATING_DESC/DISTANCE/VALUE_DESC), and currency. Returns hotels[] (each with hotelId, name, starRating, minPrice, originalPrice, currency, discountScore, reviewScore, hasFreeCancellation, isRefundable, etc.), plus totalCount and hasMore. discountScore is LockTrip's value score for the offer: an estimated % below the hotel's usual public price (the figure locktrip.com shows as "X% off"). Higher means better value; 20 or more is a strong deal; 0 or missing means no score. A low price is not the same as good value, so to find the best-value hotels use sortBy VALUE_DESC (highest discountScore first) or filters.minDiscountScore (e.g. 20), and weigh it with starRating and reviewScore. No authentication required. Pass a chosen hotelId together with the SAME searchKey to get_hotel_rooms.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (0-indexed)
sizeNoResults per page (use 5000 to get all)
sortByNoVALUE_DESC = best value first (highest discountScore)
filtersNo
currencyNoCurrency code from hotel_search (prices are in this currency)
searchKeyYesSearch key from hotel_search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotations, disclosing the asynchronous streaming/polling model, the `searchStatus` lifecycle, the 0-indexed-on-both-request-and-response pagination quirk, and that no authentication is required. These are non-obvious operational behaviors an agent cannot infer from schema or annotations.

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?

Front-loads purpose and polling behavior before parameters, and every sentence carries operational content. It is dense and the extended `discountScore` explanation spans several clauses, edging toward overstuffed but without genuine waste.

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?

With no output schema, the description fully compensates by enumerating returned fields (`hotels[]`, `totalCount`, `hasMore`) and explaining `discountScore` semantics. Combined with the polling and pagination guidance, an agent has everything needed to call and interpret this tool.

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 83%, so the baseline is already high, but the description still adds meaning: it clarifies that `page` is 0-indexed on both request and response echo, explains `sortBy` VALUE_DESC in value terms, and enumerates the filter keys with examples like minDiscountScore 20. It largely restates `size` (5000) which is already in 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 ('Returns the hotel results for a running search') and ties it to the originating `hotel_search` via `searchKey`. This clearly distinguishes it from `hotel_search`, `get_hotel_details`, and `get_hotel_rooms`, which are named explicitly.

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

Usage Guidelines5/5

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

Explicitly instructs the agent to POLL until `searchStatus` equals `COMPLETED` and explains the `IN_PROGRESS` state, which is essential usage guidance. It also names the next step: pass a chosen `hotelId` with the SAME `searchKey` to `get_hotel_rooms`, establishing a clear workflow handoff.

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