Skip to main content
Glama

Cancel bookings or reopen a day

bookings_remove
Destructive

Cancel bookings or reopen a day. type booking: cancel one booking by its booking_id; the seat is free again and the person is notified. type bookings_of_day: cancel every booking of one day on a calendar and close that day, each person being notified; bookings_to_cancel is required, the number of bookings bookings_add reported for that day, and nothing is cancelled when the day holds another number. type closing_day: remove a closing day by its closing_day_id, so the day can be booked again; the bookings cancelled when it was closed do not come back. On the calendar of the app's default owner, a closing day may apply to every calendar of the app. A cancellation cannot be undone. One gesture per call. The answer confirms what was cancelled or reopened; a refusal says why and nothing changes.

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": {
      "type": "<type>"
    },
    "name": "bookings_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoType bookings_of_day, required: the day whose bookings are cancelled, as YYYY-MM-DD.
typeYesWhat to remove: one booking, every booking of a day (the day is then closed), or a closing day.
booking_idNoType booking, required: the booking to cancel (the id of an attendee in a session read with bookings_get).
calendar_idNoType bookings_of_day and closing_day, required: the calendar.
closing_day_idNoType closing_day, required: the closing day to remove, read with bookings_get (type closing_day).
bookings_to_cancelNoType bookings_of_day, required: how many bookings that day holds, as bookings_add (type closing_day) reported it in bookings_to_cancel. It proves the list was read: when the day holds another number, nothing is cancelled and the answer gives the current list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: cancellations are irreversible, the seat is freed and the person is notified, a mismatched bookings_to_cancel aborts the whole operation and returns the current list, previously cancelled bookings are not restored when a closing day is removed, and a default-owner closing day may span every calendar of the app. It also describes the refusal path ('a refusal says why and nothing changes'), which is exactly the kind of consequence detail the destructiveHint alone does 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.

Conciseness4/5

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

The description is front-loaded with the purpose and then branches by type in the same order as the enum, which makes it easy to scan. Sentences are long and dense but nearly all carry distinct information; only the type-to-parameter restatements feel slightly redundant with the schema.

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, multi-mode tool with no output schema, the description covers preconditions, irreversibility, notification side effects, and the shape of the response ('confirms what was cancelled or reopened' or a refusal). The only mild gap is the default-owner/closing-day scope note, which is stated but not fully resolved into actionable guidance.

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 each parameter already documents which type it belongs to and its requiredness, so the description's per-type parameter mapping largely restates the schema. It does reinforce the proof-of-read semantics of bookings_to_cancel, but that is also in the schema, so no significant meaning is added beyond structured fields.

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?

The title/description states a specific verb-resource pair ('Cancel bookings or reopen a day') and immediately enumerates the three mutually exclusive modes with what each removes. An agent can tell whether it needs a booking, a whole day, or a closing day 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 Guidelines4/5

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

Guidance is mode-specific and actionable: cancel one booking by booking_id, cancel all bookings of a day with a matching bookings_to_cancel count, or reopen a day via closing_day_id. It also directs the agent to read ids first ('read with bookings_get', 'as bookings_add reported') and warns 'One gesture per call'. It stops short of naming an alternative tool for bulk or cross-calendar operations, so it is not a full when/when-not routing statement.

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.