Skip to main content
Glama
quackai-org

@quackai/q402-mcp

Official
by quackai-org

travel_book_hotel

Book a hotel after confirming the price with a prior quote. Requires explicit user consent: first call returns a preview and token, then re-call with that token to finalize.

Instructions

Book a hotel. Requires two-phase consent: the first call (without consentToken) returns status="needs_confirmation" with a preview and a consentToken - NO booking is made. Relay the preview to the user verbatim, get their explicit yes, then re-call with the SAME args plus consentToken. A spend limit guard rejects bookings above TRAVALA_MAX_BOOKING_USD (default: same as Q402_MAX_AMOUNT_PER_CALL). Always call travel_get_quote first to obtain the amount.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesExpected total amount in USD (from travel_get_quote).
guestsNoNumber of guests (default 1).
checkInYesCheck-in date (YYYY-MM-DD).
hotelIdYesHotel ID from travel_search_hotels.
checkOutYesCheck-out date (YYYY-MM-DD).
currencyNoCurrency (default USD).
guestNameYesFull name of the primary guest.
consentTokenNoTwo-phase consent token from the first call.
Behavior5/5

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

With no annotations, the description fully carries the behavioral transparency burden. It discloses critical details: the first call makes no booking, returns a needs_confirmation status and consentToken, requires relaying preview verbatim, and enforces a spend limit guard tied to an environment variable. This is rich, safety-relevant context beyond what the schema provides.

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 concise and front-loaded: the first sentence states the purpose, and the following sentences add only necessary procedural and safety details. Every sentence earns its place, and the structure helps the agent process the two-phase flow without unnecessary verbosity.

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 complex 8-parameter tool with no output schema and no annotations, the description covers the key workflow: quote prerequisite, two-phase consent, preview relay, spend limit, and consentToken re-call. It omits the return value of the second call or success handling, which would be useful, but the described flow is otherwise complete enough for safe usage.

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 adds contextual meaning for amount and consentToken by linking amount to the quote prerequisite and explaining the two-phase token flow, but it does not substantially elaborate on other parameters beyond their schema 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 opens with 'Book a hotel,' a clear verb+resource statement that immediately identifies the tool's purpose. It further distinguishes itself from siblings like travel_search_hotels and travel_get_quote by framing this as the final booking step after obtaining a quote.

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 'Always call travel_get_quote first to obtain the amount,' providing a clear prerequisite and usage context. It thoroughly explains the two-phase consent workflow, but does not explicitly mention when not to use the tool or list alternative tools, so it stops short of a 5.

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/quackai-org/q402-mcp'

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