Delete a building
delete_locationRemoves a building. Its rooms are not removed but are left without one. Archiving keeps everything and is the better choice unless the building is going for good. It takes two calls: the first changes nothing and returns what will happen with a confirm token, and the second, with the same arguments and that token, does it. Requires a PitCanary 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": {
"location_id": "<location_id>"
},
"name": "delete_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Leave this out on the first call. That call changes nothing and returns a sentence saying what will happen plus a confirm token. Pass the token here, unchanged and with the same other arguments, only after the person has said yes to that sentence. | |
| location_id | Yes | The building id. |