Skip to main content
Glama

Change a reservation's dates or room type

change_reservation
DestructiveIdempotent

Changes: moves one stay's dates or room type: nights kept keep their price, nights added at that night's price; posted nights are never re-priced. Previews first: the first call shows the change and makes nothing. Changes a stay's check-in, check-out or room type. First call without confirm: a preview (the nights, the new total), nothing changes; then call again with the same values, confirm true and preview_id. When a night needs a plan pick the preview names the nights and plans: send night_plans. Not for a stay booked on Expedia or Booking.com: change it there. 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": "change_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy, in the person's words
confirmNotrue to go ahead with the change shown in the preview
check_inNoNew arrival YYYY-MM-DD
check_outNoNew departure YYYY-MM-DD
room_typeNoNew room type code
preview_idNopreview_id from the preview
night_plansNoNight YYYY-MM-DD → plan code, only when the preview asked for a pick
confirmationYesThe stay's confirmation number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-read-only, idempotent), the description discloses real behavioral traits: existing nights keep their price, added nights are priced at that night's rate, already-posted nights are never re-priced, and the first call is a no-op preview. It also surfaces the auth requirement and the two-step commit protocol, none of which are in the structured fields.

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 concept is explained twice in near-identical phrasing ('Previews first: the first call shows the change and makes nothing' and 'First call without confirm: a preview... nothing changes'), and the purpose is restated twice as well. The content is front-loaded and useful, but the redundancy and fragmentary sentence structure cost it.

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 destructive, nested-parameter, no-output-schema mutation, the description covers the pricing rules, the commit protocol, plan selection, the cross-channel exclusion, and what the preview returns. The only omission is what a successful confirmed change returns or how failures surface, which is a modest gap.

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 schema already documents all eight parameters, which sets the baseline at 3. The description does add flow-level meaning — that preview_id and confirm must accompany the same values in a second call, and when night_plans is required — but it adds no syntax or format detail beyond the schema.

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?

The description states a specific verb and resource — changing a stay's check-in, check-out, or room type — so an agent knows exactly what operation this performs. It does not name a sibling alternative by name (e.g. change_stay_rate), but the scope is narrow and unambiguous.

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?

It gives explicit when-to-use and when-not-to-use guidance: use the preview first and re-call with confirm/preview_id, send night_plans only when the preview asks for a pick, and do not use this for stays booked on Expedia or Booking.com. It also states the prerequisite that the owner must be signed in.

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