Cancel a booking or request
cancel_bookingCancels the person's own booking or service request, under the same rules as the cancel button on their page (a booking can be canceled online until its start time; a request until work has started; canceling a booking under 2 hours before the start can carry a late-cancellation fee). It can't be undone: confirm with the person first and pass confirm: true. Needs their private link.
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": {
"confirm": "<confirm>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Instead of link: the reference, e.g. SR-AB12CD | |
| code | No | Instead of link: the token= or t= value from that link | |
| link | No | The person's private link: the manage link from a booking email (…/manage.html?ref=…&token=…) or the status link from a request email (…/requests/SR-…?t=…; request_service returns it as status_url) | |
| reason | No | Why, in the person's words (optional) | |
| confirm | Yes | true once the person has said to cancel |