Cancel a booking
cancel_bookingCancel one of the traveler's Roomza bookings, inside its free-cancellation window only, with a full refund. Call it first without confirm: it says what would happen and changes nothing. Tell the traveler, and only after they agree call it again with confirm set to true. Outside the window it refuses and points the traveler to Roomza support. Requires connecting your Roomza account.
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": {
"booking_id": "<booking_id>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true only after the traveler agrees | |
| booking_id | Yes | The booking to cancel |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| done | Yes | True once the booking is canceled; false for a preview or a refusal | |
| message | Yes | ||
| currency | Yes | ||
| refunded | Yes | ||
| bookingId | Yes |