Skip to main content
Glama

Change a stay's guest details

update_guest_details
DestructiveIdempotent

Changes: changes one stay's guest name, phone, e-mail, company or guest counts, as the stay window does; a guest-count change re-prices the nights not yet posted by the hotel's extra-guest charge. Previews first: the first call shows the change and makes nothing. Changes the guest name, phone, e-mail, company, adults or children of one stay. A booking site's stay (Expedia, Booking.com): its name, phone, e-mail and company only; its guest count is changed on that site. First call without confirm: a preview (each detail before and after, and the new total when the guest count moves the price), nothing changes; then call again with the same values, confirm true and preview_id. Pets, vehicle, notes, VIP or do-not-rent marks, the room and the rate plan are not changed here. 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": {
      "confirmation": "<confirmation>"
    },
    "name": "update_guest_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
adultsNoAdults
companyNoThe guest's company
confirmNotrue to go ahead with the change shown in the preview
childrenNoChildren
guest_nameNoThe guest's full name
preview_idNopreview_id from the preview
guest_emailNoThe guest's e-mail
guest_phoneNoThe guest's phone
confirmationYesThe stay's confirmation number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=true; the description adds materially by disclosing the mandatory preview-before-commit flow, that the first call makes no changes, that a guest-count change re-prices unposted nights via the extra-guest charge, and that the owner's sign-in is required. It stops short of stating what happens to a preview_id that is reused or how long a preview stays valid.

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?

Content is front-loaded with the preview rule, but the field list is stated twice in near-identical wording ("changes one stay's guest name, phone, e-mail, company or guest counts" then "Changes the guest name, phone, e-mail, company, adults or children"). The clause "as the stay window does" is garbled and costs the reader a re-read.

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 9-parameter mutation tool with no output schema, the description covers the risky parts: the preview/confirm handshake, re-pricing side effect, channel restrictions and auth requirement, and it describes what the preview returns. It omits failure modes (invalid preview_id, expired preview) and whether partial field updates leave unspecified fields untouched.

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, but the description adds real meaning beyond the schema: confirm triggers commitment of the preview, preview_id must accompany it, and adults/children are the fields that drive re-pricing. It does not explain constraints such as whether guest_name replaces rather than appends, which the schema also leaves silent.

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?

States a specific verb and resource — changing guest name, phone, e-mail, company, adults or children of one stay — and bounds it against adjacent operations (room, rate plan, notes, VIP marks). An agent can tell this apart from change_stay_rate or change_reservation without opening the schema.

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?

Gives an explicit two-step protocol: call without confirm for a preview, then re-call with the same values plus confirm true and preview_id. It also states when-not: booking-site stays (Expedia, Booking.com) allow only name/phone/e-mail/company here, and pets, vehicle, notes, VIP/do-not-rent, room and rate plan are not changed by this tool.

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