Skip to main content
Glama

Assign or move a stay's room

assign_room
DestructiveIdempotent

Changes: assigns one stay a room, or moves it to another; any price difference is shown in the preview and accepted only at that figure. Previews first: the first call shows the change and makes nothing. Assigns a room to a stay, or moves it. First call without confirm: a preview (any price difference), nothing changes; then call again with the same values, confirm true and preview_id. A room out of order or taken is refused; a stay booked on Expedia or Booking.com moves only to a room of its own type. 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>",
      "room": "<room>",
      "reason_code": "<reason_code>"
    },
    "name": "assign_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoRequired when reason_code is other
roomYesRoom number
confirmNotrue to go ahead with the change shown in the preview
preview_idNopreview_id from the preview
reason_codeYesWhy
confirmationYesThe stay's confirmation number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond destructiveHint and idempotentHint, it discloses that the operation is two-phase, that the price difference is locked to the previewed figure, that out-of-order or occupied rooms are refused, and that OTA bookings can only move within the same room type. It also states an auth requirement ('owner's sign-in'), which the annotations do not convey.

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

Conciseness2/5

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

The core statement is repeated three times ('Changes: assigns one stay a room, or moves it to another', 'Assigns a room to a stay, or moves it') and the sentences are stitched with semicolons into run-ons. The preview-first rule, which is the most important instruction, is buried after the restatement instead of being front-loaded.

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 two-step mutation with no output schema, it covers the workflow, confirmations, failure modes, and auth. It leaves open what happens to the vacated room state and does not describe what the preview response contains beyond the price difference.

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 already 100%, so the baseline would be 3, but the description adds real meaning: preview_id must come from the preview call and be paired with identical values plus confirm=true, and the price delta is accepted only at the previewed amount. It does not clarify reason_code or the note-when-other rule, leaving that to 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 concrete verb and resource — 'assigns a room to a stay, or moves it' — which is unambiguous and distinct from status-setting or housekeeping-assignment siblings. It never explicitly contrasts itself with set_room_status or assign_housekeeping, so an agent must infer the boundary.

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 gives a clear mandatory workflow: the first call is a preview that changes nothing, and the second call must reuse the same values with confirm=true and preview_id. It also states refusal conditions (room out of order or taken) and a channel restriction for Expedia/Booking.com stays. It does not name alternative tools for adjacent tasks such as changing room status.

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