Skip to main content
Glama

Release Active Inventory Hold

cancel_hold
Idempotent
Release an active, unconfirmed 15-minute inventory hold (`hold_id`) without creating a booking.

When to use:
    - Use when a traveler decides not to proceed with a held villa or wants to release a `hold_id` before completing checkout or calling `create_booking`.
When NOT to use:
    - Do NOT use `cancel_hold` to cancel an already confirmed reservation—use `cancel_booking` with the confirmed `booking_id` instead.

Args:
    hold_id: Hold ID from create_hold

Returns:
    JSON object with `success` (boolean), `hold_id`, and status `message`.

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": {
      "hold_id": "<hold_id>"
    },
    "name": "cancel_hold"
  }
}

Input Schema

NameRequiredDescriptionDefault
hold_idYesActive 15-minute inventory hold ID returned by `create_hold`.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / hold_id / description
      Added value: +"Active 15-minute inventory hold ID returned by `create_hold`."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, so safety and repeat-call behavior are covered. The description adds useful context beyond them: the hold must be active and unconfirmed, the 15-minute window, and that no booking is created as a side effect. It stops short of saying what happens to the inventory after release (immediate availability, any charge), which is the one remaining behavioral gap.

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

Conciseness4/5

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

Front-loaded with the core action, then cleanly sectioned into when/when-not/args/returns. The Returns block restates what the output schema already provides, which is minor waste, but every other sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with a full output schema and rich annotations, the description covers purpose, triggering conditions, the competing sibling, the parameter source, and the response shape. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 100% and the single parameter is already documented as the ID returned by create_hold. The description's Args section repeats that same provenance without adding format, validation, or failure-mode detail, so the baseline 3 applies.

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 ('Release an active, unconfirmed 15-minute inventory hold') plus the key negative side effect ('without creating a booking'), and implicitly distinguishes itself from cancel_booking. An agent can tell this apart from the sibling reservation-cancel tool without opening any 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?

Explicit 'When to use' and 'When NOT to use' sections, including the concrete alternative: use cancel_booking with a booking_id for confirmed reservations. The condition that selects between the two tools is stated directly rather than left to inference.

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