Skip to main content
Glama

google_hotels

Destructive

当用户需要查询 Google Hotels 酒店搜索结果、住宿价格、入住退房日期、评分、设施、酒店类型或住宿筛选条件时触发。

Input Schema

NameRequiredDescriptionDefault
qYes定义搜索的查询内容。调用方必须提供非空值,不使用默认值。
glNo该参数定义 Google 酒店搜索要使用的国家/地区。它是一个两位数的国家/地区代码,例如 us 代表美国,uk 代表英国,fr 代表法国。
hlNo该参数定义 Google 职位搜索要使用的语言。它是一个两位数的语言代码,例如 en 代表英语,es 代表西班牙语,fr 代表法语。
jsonNo该参数定义采集结果的输出格式。可选择 JSON、HTML(支持下载)格式,默认为 JSON;1 返回 JSON,2 返回 JSON+HTML,3 返回 HTML,4 返回 Light JSON。1
adultsNo该参数定义成人数量。默认为 2。2
brandsNo该参数定义您希望搜索结果集中的品牌,多个品牌示例用逗号 , 分隔。
ratingNo该参数用于将结果过滤到特定评分。可用选项:7 - 3.5+,8 - 4.0+,9 - 4.5+。
sort_byNo该参数用于对结果进行排序。默认按相关性排序。可用选项:3 - 最低价格,8 - 最高评分,13 - 评论最多。
bedroomsNo该参数定义最小卧室数量。默认为 0。此参数仅适用于度假租赁。0
childrenNo该参数定义儿童数量。默认为 0。0
currencyNo该参数定义返回价格的货币。默认为 USD。USD
no_cacheNo默认情况下,5 分钟内缓存相同参数的搜索结果。将 no_cache 设为 true 可跳过缓存,设为 false(默认)则使用缓存结果。缓存搜索免费,且不计入搜索统计。false
amenitiesNo该参数定义仅包含提供指定设施的结果。对于度假租赁,请访问 Google 度假租赁设施页面查看支持的度假租赁设施完整列表。单个设施示例:35。多个设施示例(用逗号 , 分隔):35,9,19。
bathroomsNo该参数定义最小浴室数量。默认为 0。此参数仅适用于度假租赁。0
max_priceNo该参数定义价格范围的上限。
min_priceNo该参数定义价格范围的下限。
hotel_classNo该参数定义仅在结果中包含特定酒店星级。多个星级示例用逗号 , 分隔。
check_in_dateYes该参数定义入住日期。格式为 YYYY-MM-DD。例如:2026-03-13。
children_agesNo该参数定义儿童的年龄。年龄范围为 1 到 17,未满 1 岁的儿童视为 1 岁。单个儿童示例:5。多个儿童示例(用逗号 , 分隔):5,8,10。指定的儿童年龄数量必须与 children 参数匹配。
eco_certifiedNo该参数定义显示获得生态认证的结果。此参数不适用于度假租赁。可用值为 true 或 false。
check_out_dateYes该参数定义退房日期。格式为 YYYY-MM-DD。例如:2026-03-14。
property_tokenNo该参数用于获取住宿详细信息,包括名称、地址、电话、价格、附近地点等。
property_typesNo该参数定义仅在结果中包含特定类型的住宿。单个类型示例:17。多个类型示例(用逗号 , 分隔):17,12,18。
special_offersNo该参数定义显示有特惠的结果。此参数不适用于度假租赁。可用值为 true 或 false。
next_page_tokenNo该参数定义下一页令牌。它用于检索下一页结果。
vacation_rentalsNo该参数定义搜索度假租赁结果。默认搜索的是酒店。可用值为 true 或 false。
free_cancellationNo该参数定义显示提供免费取消的结果。此参数不适用于度假租赁。可用值为 true 或 false。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior1/5

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

The description frames the tool purely as a read/query operation, while the annotations declare readOnlyHint=false and destructiveHint=true. That is a direct conflict about the tool's side effects, and the description adds no compensating behavioral context (caching via no_cache, pagination via next_page_token, or result-shape info) that would clarify the real 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?

A single front-loaded trigger sentence with no filler; the enumeration of facets is scannable. It is slightly redundant in re-listing concepts (dates, ratings, amenities) that the schema documents exhaustively, but nothing is wasted.

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

Completeness3/5

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

For a 27-parameter search tool with no output schema, an agent can still call it correctly thanks to full schema documentation, but the description says nothing about pagination flow, caching semantics, or vacation-rental-vs-hotel mode switching. Adequate, not complete.

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% across all 27 parameters, so the schema already explains q, dates, amenities, filters, no_cache, next_page_token, etc. in detail. The description contributes no parameter-level meaning beyond the general list of queryable facets, so the baseline 3 applies.

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 names a specific resource (Google Hotels) and enumerates what the tool surfaces — search results, prices, check-in/check-out dates, ratings, amenities, property types and filters — so an agent knows this is the hotel-search scraper. It never contrasts itself with the neighboring lodging tools (booking_hotellist, airbnb_product), so differentiation must be inferred from the name alone.

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 supplies a trigger condition ('when the user needs to query...'), which is the minimum viable routing guidance. There is no when-not guidance, no mention of prerequisites (check-in/check-out dates are required), and no pointer to sibling lodging tools that might be preferred.

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