Skip to main content
Glama

cancel_appointment

Cancel an appointment using a two-step confirmation: first preview the details, then confirm to release the slot and prevent accidental cancellations.

Instructions

Cancel an appointment. Requires explicit confirmation.

Call it first WITHOUT confirm to get a preview of exactly what would be cancelled. Read that back to the caller, and only call again with confirm=True once they have said yes.

This two-step gate exists because cancelling is not reversible from here — a mistakenly cancelled slot may be taken by someone else within minutes.

Confirming releases the slot and cancels the pending reminder.

Args: appointment_id: From get_appointments. confirm: Must be True to actually cancel.

Example: cancel_appointment(appointment_id=12) # preview cancel_appointment(appointment_id=12, confirm=True) # actually cancel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
appointment_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses that cancellation is irreversible, that the confirm parameter gates the actual cancellation, and that confirming releases the slot and cancels the pending reminder. The preview behavior is clearly explained, giving the agent a complete safety picture.

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?

The description is well-organized with a clear lead sentence, a rationale for the two-step gate, and a concrete example. Every line adds value without redundancy.

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?

Given that the output schema exists and the operation is relatively simple, the description covers the complete workflow, including prerequisites (appointment_id source), safety protocol, and consequences. Nothing critical is missing for an agent to use this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, yet the description fully explains both parameters: appointment_id comes from get_appointments, and confirm must be True to actually cancel. The example showing preview vs real call makes the semantics unambiguous.

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 description opens with a specific verb and resource ('Cancel an appointment') and immediately distinguishes this from sibling tools like reschedule_appointment by emphasizing it is a cancellation, not a rescheduling. The two-step confirmation gate is also part of its identity.

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?

It provides explicit step-by-step instructions (preview first, confirm only after explicit user consent), which is clear guidance. It does not name alternative tools such as reschedule_appointment for when the user wants a different time instead of cancellation, so it falls slightly short of the highest bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prashant-cr/Clinic-front-desk-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server