Skip to main content
Glama

Make a reservation

create_reservation

Changes: adds one stay at the hotel's own price, guarantee Pending; takes one room of its type off sale on the booking sites; the hotel's own confirmation letter follows when its booking follow-up is on. Previews first: the first call shows the change and makes nothing. Makes a reservation at the hotel's own price for those nights (the hotel's default desk plan unless rate_plan is sent). First call without confirm: a preview (each night's rate, the total, rooms left, the letter), nothing is booked. A full night, a closed date or another price is refused as for a desk clerk. Second step: after the preview, the call with confirm true sends a link to the person's own phone or e-mail; the change is made only when they open it and press Approve. Call again with the same values to learn whether it was made. Needs the owner's sign-in.

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": {
      "guest_name": "<guest_name>",
      "room_type": "<room_type>",
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "create_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
adultsNoAdults (1)
companyNoThe guest's company
confirmNotrue to go ahead with the change shown in the preview
check_inYesArrival YYYY-MM-DD
childrenNoChildren (0)
check_outYesDeparture YYYY-MM-DD
rate_planNoRate plan code (the hotel's default when not sent)
room_typeYesRoom type code, from availability
guest_nameYesThe guest's full name
preview_idNopreview_id from the preview
guest_emailNoThe guest's e-mail (or guest_phone)
guest_phoneNoThe guest's phone (or guest_email)
special_requestsNoWhat the guest asked for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, non-idempotent write; the description adds far more: a two-step preview/confirm flow, an approval link sent to the guest's phone or e-mail, the fact that nothing is booked until the guest presses Approve, side effects on OTA inventory, the confirmation letter being conditional on the follow-up setting, refusal cases (full night, closed date, different price), and the owner sign-in requirement. The one soft spot is "Call again with the same values to learn whether it was made," which sits slightly awkwardly against idempotentHint=false since the agent cannot tell whether a repeat call re-sends a link or creates a duplicate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The preview behavior is stated three separate times ("Previews first: the first call shows the change and makes nothing," then "First call without confirm: a preview...," then the "Second step" description), and the opening "Changes:" clause is dense and hard to parse on first read. The information is front-loaded reasonably well, but the repetition costs it points.

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 13-parameter, two-phase, side-effecting workflow with no output schema, the description covers the async approval loop, auth requirements, failure modes, and what the preview surfaces (nightly rate, total, rooms left, letter). What is missing is any statement of what a successful confirmed response looks like or how a pending link expires or is revoked.

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 100%, so the baseline is 3 and the description adds only modest incremental meaning: that rate_plan falls back to the hotel default, that confirm is what turns the preview into an actionable request, and that guest_email/guest_phone is where the approval link is sent. The remaining ten parameters (adults, children, company, special_requests, preview_id, dates) get no additional semantics beyond their schema entries.

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 gives a precise verb and resource plus scope: "Makes a reservation at the hotel's own price for those nights (the hotel's default desk plan unless rate_plan is sent)." It also implicitly separates this from channel/OTA bookings by saying the room is taken "off sale on the booking sites," so an agent can tell this is a direct-booking create rather than a channel-manager operation.

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?

It states clearly when to use the tool (creating a stay at the hotel's own price), when not to expect a booking (any first call without confirm is only a preview), and the exact call sequence to follow. What it lacks is routing against the visible alternatives such as change_reservation, create_group, or add_stay_to_group — the agent must infer that a new direct booking belongs here rather than in a group flow.

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