Skip to main content
Glama

search_hotels

Read-onlyIdempotent

Find and compare hotels worldwide. Filter by destination, dates, room type, price, star rating, and amenities to discover matching properties with rates and photos.

Instructions

Search hotels, lodging, accommodations, resorts, and places to stay for a trip. Filter by city, country, check-in/check-out dates, room type, nightly price, star rating, and amenities (pool, gym, wifi, etc.). Returns matching properties with rates, photos, and availability across 2M+ properties (LiteAPI). Use this when the user wants to book a hotel, find a place to stay, compare lodging options, or pick a resort.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoCity name (e.g., 'New York', 'Tokyo')
countryNoISO 3166-1 alpha-2 country code (e.g., 'US', 'JP')
brandNoHotel brand name to filter by
check_inYesCheck-in date (YYYY-MM-DD)
check_outYesCheck-out date (YYYY-MM-DD)
room_typeNo
max_rate_usdNoMaximum nightly rate in USD
amenitiesNoRequired amenities (wifi, gym, pool, spa, restaurant, etc.)
min_star_ratingNoMinimum star rating (1-5)
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds that it returns matching properties with rates, photos, and availability across 2M+ properties (LiteAPI), providing useful behavioral context beyond annotations.

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?

The description is two sentences: the first provides purpose and filters, the second states returns and usage context. It is concise, front-loaded, and every sentence adds value.

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?

Given the complexity (9 parameters, 2 required) and no output schema, the description covers the main purpose, filters, and return types (rates, photos, availability). It is sufficient for the agent to understand what the tool does and when to use it.

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 89% (high), so the schema already documents most parameters. The description lists filter categories (city, country, etc.) but adds little extra meaning beyond the schema's parameter descriptions.

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?

The description clearly states it searches hotels, lodging, etc., and lists specific filters. It distinguishes from sibling tools like search_flights and search_activities, which cover different domains.

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 explicitly states 'Use this when the user wants to book a hotel...' providing clear guidance. However, it does not mention when not to use or name alternatives, though siblings imply differentiation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Autonomad1/autonomad-travel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server