cancel_booking
Cancels a hotel booking in two steps: first retrieve the refund and confirmation code, then complete cancellation with the code after user approval.
Instructions
Cancels a booking in two steps. First call it without confirmation_code: you get the refund and a code. Show the refund to the user, and only if they say yes, call again with the code.
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": {
"locator": "<locator>",
"reason": "<reason>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| locator | Yes | 6 letters or digits, e.g. ABC123 | |
| confirmation_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |