Skip to main content
Glama

GymFlexa Gym Management

Cancel a gym session

cancel_appointment
DestructiveIdempotent

Use this when someone asks to cancel a member's session or decline one the member requested. Returns the session as canceled, kept rather than deleted, and whether the gym's cancellation message goes to the member. Not for moving a session to another time.

Input Schema

NameRequiredDescriptionDefault
appointmentIdYesId of the session, from list_appointments.
expectedLastEditTimeYesThe lastEditTime from list_appointments. A session changed since then is refused.

Output Schema

NameRequiredDescriptionDefault
statusYes
appointmentYes
clientNotificationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint, idempotentHint and readOnlyHint=false, so the safety profile is covered; the description still adds a meaningful non-obvious detail: the session is soft-cancelled, "kept rather than deleted," and the response indicates whether the gym's cancellation message is sent to the member. It does not restate annotation facts, and it does not contradict the destructive hint since the state change is still irreversible.

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?

Three short sentences with the trigger condition front-loaded and no filler. The middle sentence is slightly convoluted in phrasing ("Returns the session as canceled, kept rather than deleted, and whether...") but still parses.

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 2-parameter mutation with full schema coverage, rich annotations and an output schema, the description supplies what structured fields cannot: the soft-delete semantics and the decline-request variant. Only minor gaps remain, such as permissions or the stale-write refusal, which the schema already covers.

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 both parameters carry their own descriptions (appointmentId sourced from list_appointments, expectedLastEditTime as an optimistic-concurrency guard). The description adds no parameter-level syntax or sourcing beyond that, 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+resource (cancel a member's session) and covers the dual case of declining a member-requested session, which an agent could not infer from the name alone. It explicitly carves out the reschedule case, so it is distinguishable from reschedule_appointment in the sibling list.

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 a clear trigger condition ("when someone asks to cancel... or decline one the member requested") plus an explicit exclusion ("Not for moving a session to another time"). It stops short of naming reschedule_appointment as the alternative, leaving the agent to map the exclusion to the sibling.

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