cancel_visit
Cancel a previously approved visit by its visit ID to revoke gate access that is no longer needed.
Instructions
Cancel a previously pre-approved visit by its visit ID.
Use this when the user wants to cancel a delivery approval they no longer need. The visit_id is at response["data"][0] from the pre_approve call.
Call get_user_multiprofile_info first to obtain the apartment_id if not already known; skip if the user explicitly provided it.
Args: visit_id: The visit ID string returned when the visit was created. apartment_id: The apartment ID the visit belongs to. Fetch from get_user_multiprofile_info → data.apartments.apartment.id. fields: Dot-notation paths to filter the response. Omit to return everything.
Returns the raw API response dict on success.
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": {
"visit_id": "<visit_id>",
"apartment_id": "<apartment_id>"
},
"name": "cancel_visit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| visit_id | Yes | ||
| apartment_id | Yes |