Skip to main content
Glama

book_hotel

Idempotent

Book a hotel room and get a secure checkout URL for direct guest payment. No credit card details collected in conversation — guest completes payment on hosted checkout page.

Instructions

Book a hotel room. Returns a secure checkout URL where the guest completes payment. Do not collect credit card numbers, payment info, or billing details in conversation.

Guest pays the hotel directly. Their credit card statement shows the hotel name, not 1Stay. Hotel's own confirmation number. Loyalty points apply automatically. A 1Stay Booking Fee is added at checkout.

Requires rate_code from get_hotel_details (expires in approximately 15 minutes). If expired, call get_hotel_details again for a fresh code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hotel_idYesHotel ID from search or details
rate_codeYesRate code from get_hotel_details — you MUST call get_hotel_details first to get a valid rate_code before booking
check_inYesCheck-in date in YYYY-MM-DD format (e.g. 2026-05-06)
check_outYesCheck-out date in YYYY-MM-DD format (e.g. 2026-05-07)
guestsYesNumber of guests
guest_nameYesGuest full name
guest_emailYesGuest email for confirmation
external_reference_idNoYour unique reference ID for this booking (for idempotency and retrieval)
Behavior5/5

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

Annotations indicate idempotentHint=true and readOnlyHint=false. The description adds that payment is handled externally via checkout URL, no need to collect payment info, a booking fee is added, and loyalty points apply. No contradiction with 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 well-structured, front-loaded with the main action, and uses concise sentences without redundancy. Every part adds value.

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

Completeness5/5

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

Given 8 parameters and no output schema, the description covers key behaviors: return type, payment flow, prerequisite, and idempotency. It is complete enough for correct tool invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so baseline is 3. The description adds context for external_reference_id (idempotency and retrieval) and mentions rate_code expiration. However, most parameters are adequately described in the schema.

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 'Book a hotel room' and explains it returns a secure checkout URL. It distinguishes from siblings like cancel_booking and get_hotel_details by specifying the booking action and prerequisite (rate_code).

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

Usage Guidelines5/5

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

Provides explicit instructions: do not collect payment info, requires rate_code from get_hotel_details which expires in ~15 min, and suggests calling get_hotel_details again if expired. Also mentions alternatives indirectly.

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/STAYKER-COM/1Stay-mcp'

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