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.

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": {
      "quote_id": "<quote_id>"
    },
    "name": "cancel_booking"
  }
}

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. Changed2 schema fields changed
    • addedOutput schema / properties / visit / properties / drive
      Added value: +{
      +  "description": "While the tech is on the way with their phone sharing: the minutes left on the drive, the same the person's own tracking page shows. estimated is true when the phone went quiet and the minutes follow the road's pace. Absent otherwise; arrival ends it.",
      +  "properties": {
      +    "arrives_at": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "estimated": {
      +      "type": "boolean"
      +    },
      +    "minutes_left": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "minutes_left",
      +    "arrives_at",
      +    "estimated"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / visit / properties / tech_license
      Added value: +{
      +  "description": "The tech's state license as the shop checked it with the state board that issues it: in force, under the tech's name, not lapsed. Absent when it is not checked, not found, lapsed, or the state has no board list to ask.",
      +  "properties": {
      +    "board": {
      +      "type": "string"
      +    },
      +    "board_page": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "checked_on": {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    "expires_on": {
      +      "format": "date",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "number": {
      +      "type": "string"
      +    },
      +    "state": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "board",
      +    "state",
      +    "number",
      +    "checked_on"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description goes further by enumerating the concrete side effects: the visit leaves the shop's schedule and the shop texts the person. It makes the idempotency hint tangible, 'calling again sends no second text', and states that cancellation is free and irreversible. That is materially more than the hints convey.

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?

Purpose, terms, side effects and irreversibility are ordered sensibly with the action front-loaded, and no sentence is filler. The single dense paragraph packs several distinct facts together, which slightly reduces scanability.

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?

For a destructive, externally visible mutation, the description covers cost, reversibility, who is notified, and the repeat-call edge case. With an output schema and full annotation coverage present, nothing an agent needs before calling 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?

There is a single required parameter and the schema documents it fully at 100% coverage, including where quote_id comes from. The description adds no additional semantics about the parameter, which is acceptable given the schema carries it. Baseline 3 applies.

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?

The description opens with a specific verb and resource, 'Cancels a booked visit', and immediately scopes it to a confirmed request in this conversation. It is distinguishable from move_booking because it states the action is final and cannot be undone here. It stops short of naming a sibling outright, so a 4 rather than a 5.

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?

It gives an explicit trigger: the person asks and confirms in this conversation. It gives an explicit exclusion: past the shop's terms the person must call the shop themselves. It also points to the alternative route when the intent is to rebook, 'get a new quote'.

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