Skip to main content
Glama

Update a booking

update_booking
Destructive

Confirm, cancel, or mark a booking as no-show or completed, by its ref (e.g. B7KX2M9Q). Confirming a pending booking or cancelling emails the customer. Ask the owner before cancelling.

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": {
      "site": "<site>",
      "ref": "<ref>",
      "status": "<status>"
    },
    "name": "update_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
noteNoInternal note; for a cancellation it is also told to the customer
siteYesSite slug (e.g. "kopitiam-muar") or id
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is partly carried. The description adds real value beyond them by disclosing side effects annotations cannot express: confirming or cancelling triggers a customer email, and cancellation requires owner approval. It stops short of saying whether the change is reversible or what the call returns.

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?

Three short sentences, front-loaded with the action and ref format, then side effects, then the safety precondition. Nothing is redundant and no sentence needs a second read.

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 mutation with no output schema, the description covers the actions, identifier format, notification side effects, and the approval precondition. It could still say what the response contains (e.g. the updated booking) and whether repeat calls are safe, but the essentials for correct invocation are present.

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 only 50%, so the description has to carry weight, and it does: it maps the status values to human actions and supplies a concrete ref format example. The 'note' parameter's dual role (internal note also surfaced to the customer on cancellation) is documented in the schema rather than the description, leaving a small gap.

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 set (confirm, cancel, no-show, completed) on a specific resource (a booking identified by ref), plus a concrete ref format example (B7KX2M9Q). It does not, however, differentiate itself from the sibling 'set_booking', which an agent could easily confuse with this mutation.

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?

Gives clear context for when to reach for this tool (changing a booking's status) and an explicit precondition: 'Ask the owner before cancelling.' It omits routing guidance against the sibling 'set_booking', so the agent has no stated rule for choosing between the two.

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