Skip to main content
Glama

search_hotels

Find hotel rooms and offers by city, check-in, and check-out dates. Each call costs $0.005 paid in USDC, returning availability and payment receipt.

Instructions

Search hotel rooms and offers for a city and date range. Costs $0.005 per call, paid in USDC over x402 to x402-hotel-search. Returns the merchant's artifact and the payment receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
railNoPayment rail for this call. Overrides the configured default (auto). auto = whichever rail this agent holds a key for.
adultsNoGuest count, default 2
checkInYesYYYY-MM-DD
checkOutYesYYYY-MM-DD
cityCodeYesIATA city code, e.g. NYC
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses cost ($0.005 per call), payment method (USDC over x402 to x402-hotel-search), and return payload (merchant's artifact and payment receipt). It does not mention potential side effects beyond payment or failure modes, which keeps it short of a 5.

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?

Three concise, informative sentences. The first sentence states the core purpose, the second provides payment details, and the third states the return value. No filler.

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?

With no output schema, the description adequately explains the return value (merchant's artifact and payment receipt) and covers cost/payment, but does not explain how results are represented or preconditions like having a rail key. Given schema descriptions cover all parameters, this is reasonably 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 coverage is 100%, so the baseline is 3. The description only echoes 'city and date range' which maps to cityCode, checkIn, and checkOut, without adding syntax or details beyond the schema. No added meaning for adults or rail parameters.

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?

Description clearly states the tool searches hotel rooms and offers for a city and date range, with a specific verb ('Search') and resource, distinguishing it from sibling tools like search_flights and find_tables.

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 does not explicitly state when to use this over siblings or provide exclusions, but the scope ('hotel rooms and offers for a city and date range') implies the use case. No alternative tools are named, so context is clear but not explicit.

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/nirholas/x402-mcp-commerce'

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