node_remove
Remove a Docker Swarm node after it has been drained, using force to remove active or reachable nodes.
Instructions
Remove a node from the swarm.
A node should normally be drained (node_update with Availability "drain") and have left the
swarm first, so its tasks reschedule cleanly. Removing an active/reachable node requires force=True.
Args: id_or_name: The node id or name to remove force: Force removal of an active/reachable node
Returns: bool: True after the node is removed
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": {
"id_or_name": "<id_or_name>"
},
"name": "node_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |