Skip to main content
Glama

Request a room booking

book_room

Book a stay on behalf of a real guest — check_room_availability shows whether the dates are free; the venue's city/countryCode come from search_venues. Most hotels treat this as a REQUEST they review and confirm (status "pending"; any deposit is asked for after they confirm). Many apartments and B&Bs confirm INSTANTLY (status "accepted"): the unit is then held for a short time and the response carries a paymentLink and payBy; the booking is released if it is not paid by payBy. This tool never takes payment itself.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "restaurantId": "<restaurantId>",
      "roomFacilityTypeId": "<roomFacilityTypeId>",
      "checkIn": "<checkIn>",
      "checkOut": "<checkOut>",
      "guestName": "<guestName>",
      "guestPhone": "<guestPhone>"
    },
    "name": "book_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
checkInYesYYYY-MM-DD
checkOutYesYYYY-MM-DD
guestNameYes
guestCountNo
guestEmailNo
guestPhoneYes
restaurantIdYes
roomFacilityTypeIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: two distinct outcome modes (pending for hotel review vs instantly accepted for apartments/B&Bs), a short hold with paymentLink and payBy in the response, automatic release if unpaid, and the explicit statement that the tool never takes payment itself. This tells the agent what state the booking will be in and what to relay to the guest.

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?

Front-loads the core action and packs the pending/accepted distinction efficiently into two sentences. The city/countryCode clause is off-target for this schema and costs it a point, but the rest earns its place.

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?

The behavioral half is thorough for a mutation tool with no output schema, covering status outcomes and the payment link flow. The input half is thin: six required parameters at 22% schema coverage go undocumented, and the misplaced city/countryCode guidance leaves the agent without help on the actual identifiers it must supply.

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

Parameters2/5

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

Schema coverage is only 22% (just checkIn/checkOut formats), so the description needs to carry the load but does not: restaurantId, roomFacilityTypeId, guestPhone, guestName, guestCount, and notes are never explained. Worse, it spends a clause on 'city/countryCode from search_venues' — fields that do not exist in this tool's schema — which is noise that could mislead about required inputs.

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?

States a specific verb and resource ("Book a stay") with the key constraint that it is on behalf of a real guest, which distinguishes it from the read-only check_room_availability sibling it names. It does not, however, disambiguate itself from the crowded booking family (book_reservation, book_space, book_service), so an agent must infer that 'room/stay' means this one.

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?

Gives an explicit workflow: verify dates with check_room_availability and source venue city/countryCode from search_venues, implying this is the commit step after those checks. It stops short of stating when to prefer book_reservation or book_space instead, so the routing is clear but not exhaustive.

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