Skip to main content
Glama

Groundsocial

Hotels in a destination

tripadvisor_hotels_get
Read-onlyIdempotent

Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.

Hotels in a destination, 30 a page, as Tripadvisor’s hotel list ranks them: each with its location (name, link, address, phone, coordinates, rating, review count, popularity rank, star rating, price range, accommodation type) and resultDetail (offers with the lowest price for default dates, highlighted amenities, labels; sponsored listings are marked). Filters: price_min/price_max (per night, in currency), star_rating_min, review_score_min, property_type. sort_by: BEST_VALUE (default), RANKED (traveler ranked), PRICE_LOW_TO_HIGH, DISTANCE. total is how many hotels match. Pass pagination.next_cursor as after with the same filters.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "q": "<q>"
    },
    "name": "tripadvisor_hotels_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe destination: a city or region name (the first match is used), a geo id (`60763` or `g60763`), or a Tripadvisor link to it.
afterNoCursor: the previous page’s `pagination.next_cursor`.
sort_byNoOrder (default BEST_VALUE).
currencyNoCurrency for prices (default USD).
price_maxNoHighest nightly price.
price_minNoLowest nightly price.
property_typeNoKind of property.
star_rating_minNoMinimum hotel class in stars.
review_score_minNoMinimum traveler rating.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered, and the description still adds genuinely new behavior: 1 credit per call with automatic refund on failure, 30 results per page, sponsored listings marked, and results carrying cost_credits and credits_remaining. It also discloses what the result rows contain (location block plus resultDetail offers for default dates), which is valuable given there is no output schema. It stops short of describing error or empty-result behavior.

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 body is front-loaded and dense with no filler, moving from result shape to filters to sort to pagination to cost. The one waste is the opening sentence, which repeats 'Hotels in a destination' already present in the title and again in the very next sentence, making the first line largely redundant.

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 9-parameter, 1-required listing tool with no output schema, the description covers everything needed to call it correctly: filtering semantics, sort default order, page size, cursor reuse with identical filters, cost, and the shape of returned rows. The residual gap is a lack of guidance on the sibling detail tool and on what happens when no hotels match.

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 every parameter is already documented with types, enums and defaults; the description mostly restates them ('sort_by: BEST_VALUE (default)' is verbatim in the schema). The one small addition is that price_min/price_max are per night in the requested currency, and that filters must be held constant while using the cursor. Baseline 3 fits a schema that does the heavy lifting.

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 and resource ('Hotels in a destination', 30 a page) and enumerates what each result carries, so an agent knows this is a paginated list endpoint. It never names its closest sibling (tripadvisor_hotel_get, the single-hotel detail tool), so the plural-vs-singular distinction must be inferred from the name and the word 'paginated' rather than stated.

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

Usage Guidelines3/5

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

It gives concrete operational guidance for continuing a result set: 'Pass pagination.next_cursor as after with the same filters', which is real when-to-use context for pagination. However, there is no statement of when to reach for this tool over tripadvisor_hotel_get, tripadvisor_search_all, or the google_hotels_search sibling, and no exclusions; usage is implied by the topic rather than argued.

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.