Skip to main content
Glama

HandledIQ: find and book home service

Cancel the visit

cancel_booking
DestructiveIdempotent

Cancels a booked visit when the person asks and confirms in this conversation, free under the shop's own terms: within 3 days of booking, and before the visit; nothing is owed. Side effects: the visit comes off the shop's schedule, and the shop texts the person that their assistant cancelled it. It cannot be undone here: to book again, get a new quote. Past those terms the person calls the shop. Calling again sends no second text.

Input Schema

NameRequiredDescriptionDefault
quote_idYesThe quote_id find_help or get_quote gave, for a booked visit.

Output Schema

NameRequiredDescriptionDefault
saidYes
stateYes
visitNoThe booked visit as it stands now: its time, its tech, and what has happened since the yes.
changeNoA change the person's assistant asked for once booked: a cancel (done at once, free under the shop's terms), or a move (the shop texted the person a link, and done once they picked a new time).
quote_idYes
held_untilNo
minutes_leftNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: names the side effects (visit removed from the shop's schedule, person receives a cancellation text), states the action is irreversible here, and clarifies idempotency behavior ('calling again sends no second text'). Confirms destructive/open-world nature declared in annotations.

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?

Front-loaded with the core action and its condition, and every sentence carries distinct information (terms, side effects, irreversibility, no-second-text). The single dense paragraph is slightly run-on, but there is no filler.

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?

Covers preconditions, terms, side effects, reversibility, and repeat-call behavior for a destructive one-param mutation. With an output schema and full annotations also present, nothing needed to invoke it correctly is missing.

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 the quote_id description already explains its origin (find_help/get_quote for a booked visit), so the description adds nothing about the parameter. Baseline 3 applies when the schema carries the semantic load.

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 (cancels) and resource (a booked visit) plus the triggering condition (person asks and confirms in this conversation). An agent can distinguish it from siblings like move_booking, hold_time, or get_quote without inspecting schemas.

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?

Explicitly scopes when cancellation is free (within 3 days of booking, before the visit) and what to do otherwise (the person calls the shop). It also routes the re-booking case to the get_quote sibling and notes that repeat calls are a no-op.

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