Skip to main content
Glama

Close a day

bookings_add
Destructive

Close a day on a booking calendar by adding a closing day: nobody can book that day any more. This tool never cancels a booking. When people have already booked that day, the day is not closed and the answer gives their number (bookings_to_cancel, status confirmation_required) and the calendars concerned; cancelling them and closing the day is done by bookings_remove with type bookings_of_day and that number. On the calendar of the app's default owner, a closing day may apply to every calendar of the app. Not possible: creating or moving a booking, changing opening hours or slots. The answer gives the closing_day_id; a refusal names the field to fix.

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>",
      "calendar_id": "<calendar_id>",
      "day": "<day>"
    },
    "name": "bookings_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYesThe day to close, as YYYY-MM-DD; today or later.
typeYesWhat to add: a closing day, the only thing that can be added to a calendar.
calendar_idYesThe calendar to close, read with bookings_get (type calendar).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and openWorldHint=true, yet the description adds the crucial nuance that nothing is destroyed here unless the caller chains to bookings_remove. It further discloses the refusal path (status confirmation_required with bookings_to_cancel and the affected calendars), the scope caveat for the app default owner's calendar, and that a refusal names the offending field. Minor gap: no mention of authorization or whether closing days can later be reopened by this tool.

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?

Effect and safety disclaimer come first, then the blocked-path procedure, then scope and exclusions, then return values - a sensible front-loaded order with no filler sentences. It is dense and reads as a few long run-on sentences, which costs a little scannability but nothing is redundant.

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?

There is no output schema, and the description compensates by naming the success return (closing_day_id) and the failure return (bookings_to_cancel, status confirmation_required, affected calendars, the field to fix). For a 3-parameter destructive mutation this is enough for an agent to call it and interpret either outcome.

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 100%, so the baseline is 3, but the description adds meaning beyond the schema for calendar_id: a closing day on the app default owner's calendar may apply to every calendar of the app, which the schema does not say. The type value bookings_of_day is also explained as living on the sibling tool rather than here.

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?

Opens with a specific verb and resource ('Close a day on a booking calendar by adding a closing day') plus the observable effect ('nobody can book that day any more'). It also immediately negates the closest misreading ('This tool never cancels a booking'), which separates it from bookings_remove.

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?

Gives an explicit condition and the exact alternative: when bookings already exist the day is not closed, and cancelling plus closing is done by bookings_remove with type bookings_of_day and the returned count. It also lists what the tool cannot do (creating or moving a booking, changing opening hours or slots), so both when-to-use and when-not-to-use are covered.

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.