Skip to main content
Glama

Delete a hotel stay

delete_project_hotel
DestructiveIdempotent

Permanently delete a recorded hotel stay and its room assignments. It cancels nothing with the hotel. Confirmation-gated. Requires project-manager access.

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": {
      "project_id": "<project_id>",
      "stay_id": "<stay_id>"
    },
    "name": "delete_project_hotel"
  }
}

Input Schema

NameRequiredDescriptionDefault
stay_idYesstay id from list_project_travel
project_idYesproject id from list_projects, or a gig's project_id from get_event
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: absent (the API answers 204 with no body) }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description adds real context: permanence, that room assignments are destroyed along with the stay, that no external hotel action occurs, and that the caller must hold project-manager rights. The confirmation gating is echoed from the schema, so it is reinforcement rather than new information.

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

Conciseness5/5

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

Four short sentences, front-loaded with the destructive action and its scope, then the disambiguation, then gating, then permissions. Nothing is padded and each sentence carries distinct information.

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?

An output schema exists so return values need no explanation, and the description covers the destructive scope, the external-cancellation caveat, the confirmation flow, and the permission requirement. The only thin spot is the absence of any guidance on recovering or re-creating a deleted stay.

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% and the confirmation_token parameter already documents the two-call confirmation flow, so the schema carries the parameter burden. The description adds no format or sourcing detail beyond what the schema states, which is exactly the baseline-3 case.

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 ('Permanently delete') and a specific resource ('a recorded hotel stay and its room assignments'), with the scope of the cascade named. It also pre-empts confusion with an external hotel cancellation ('It cancels nothing with the hotel'), which separates it from save_project_hotel-style siblings, though it never names a sibling outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives prerequisites rather than usage routing: confirmation-gated and project-manager access required. The 'cancels nothing with the hotel' line implicitly says when this tool is not the right choice for real-world cancellation, but there is no explicit alternative named and no statement of when to pick this over other delete tools.

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.