Update node
docker_update_nodeUpdate a Docker Swarm node's labels, promote or demote its manager/worker role, or set availability to active, pause, or drain for workload scheduling control.
Instructions
Update a node's labels (merge by default), role, or availability.
role is one of manager/worker (promote/demote);
availability is active/pause/drain.
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": {
"node_id": "<node_id>"
},
"name": "docker_update_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| labels | No | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| node_id | Yes | ||
| availability | No | ||
| replace_labels | No |