Skip to main content
Glama

Poll Search Results

poll_search_results
Read-only

Returns the current results of a hotel search session started by search_hotels_live: hotels with their price from each source, and TravelOpen direct listings with the propertyId that get_hotel_detail and get_hotel_info take. Results can be partial while the search runs; status reads 'completed' once every source has answered.

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": {
      "sessionId": "<sessionId>",
      "nights": "<nights>"
    },
    "name": "poll_search_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoOptional override for the area filter captured at search time
limitNoMax hotels to return; 0 = all (default 50)
nightsYesNumber of nights
offsetNoSkip first N hotels for pagination (default 0)
priceMaxNoOptional override for the maximum-price filter
priceMinNoOptional override for the minimum-price filter
hotelNameNoOptional override for the hotel-name filter captured at search time
sessionIdYesSession ID from search_hotels_live
priceCurrencyNoISO 4217 code of priceMin/priceMax; defaults to the UI language's currency

Output Schema

NameRequiredDescriptionDefault
cityYes
tierYes
limitYes
cachedNo
hotelsYes
nightsYes
offsetYes
statusYes
checkInYes
fxRatesYes
hasMoreYes
checkOutYes
languageNo
progressYes
sessionIdNo
agodaStatusYes
totalHotelsYes
bookingStatusYes
longStayNoticeNo
travelokaStatusYes
opentravelStatusYes
tier2AgodaStatusYes
opentravelResultsYes
tier2BookingStatusYes
tier2TravelokaStatusYes
opentravelIndicativeResultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / hotels / items / properties / prices / properties / airbnb
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / hotels / items / properties / prices / properties / expedia
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / hotelscom
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / official
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / priceline
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
    • addedOutput schema / properties / hotels / items / properties / prices / properties / tripcom
      Added value: +{
      +  "$ref": "#/properties/hotels/items/properties/prices/properties/agoda"
      +}
  3. Changed3 schema fields changed
    • removedInput schema / properties / sessionId / maxLength
      Removed value: -128
    • removedInput schema / properties / sessionId / minLength
      Removed value: -1
    • addedInput schema / properties / sessionId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,64}(\\.[A-Za-z0-9_-]{1,16})?$"
  4. 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 readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: partial results during an in-flight search and the 'completed' status marker, plus the per-source pricing and TravelOpen direct-listing distinction. It stops short of describing pagination or rate-limit behavior.

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, front-loaded with what is returned and immediately followed by the cross-references an agent needs. Every clause carries information: return shape, ID handoff, and partial/completed semantics.

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 nine-parameter polling tool with full annotation coverage and an output schema, the description supplies the missing semantic layer: session origin, partial-result behavior, and status completion. Pagination and override-filter behavior are left entirely to the schema, a minor gap given the 100% coverage.

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 nine parameters (sessionId, nights, limit, offset, filters, currency) are already documented in the schema. The description adds nothing about parameter syntax or the override filters, which is acceptable but places it at the baseline.

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 current results of a hotel search session') and anchors it to the originating call search_hotels_live. It also distinguishes itself from get_hotel_detail/get_hotel_info by explaining the propertyId handoff, so an agent can tell what this tool is and is not.

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 description makes clear this is the follow-up to search_hotels_live and signals polling semantics via 'Results can be partial while the search runs; status reads completed once every source has answered.' It never states an explicit exclusion or a 'call repeatedly until completed' instruction, so the guidance is clear but slightly implicit.

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