cluster_remove_host
Preview the impact of removing a host from a vCenter cluster, then confirm to detach it while keeping it in inventory.
Instructions
[WRITE] Remove a host from a cluster (host must be in maintenance mode).
Without confirm=True this only previews: it returns blast_radius (host name and id, maintenance mode, VM count, powered-on VM count, blockers) and moves nothing. Show that to the user and get their explicit decision. Do not set confirm=True on your own because the user asked earlier: they have not seen the preview yet.
Refused: a host not in maintenance mode, a host with powered-on VMs, and a host whose state could not be read. Run cluster_info first for the exact member host names. The host is not deleted — it stays in vCenter inventory standalone; use cluster_add_host to move it back. Returns a dict.
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": {
"cluster_name": "<cluster_name>",
"host_name": "<host_name>"
},
"name": "cluster_remove_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter target name from config. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| host_name | Yes | ESXi host name to remove (from cluster_info output). | |
| cluster_name | Yes | Cluster to remove the host from. |