Host
cm_swarm_operations_hostInitialize, inspect, and update Docker Swarm nodes and services on local or remote hosts, covering scaling, labels, placement constraints, and log tailing.
Instructions
Host (cm_swarm_operations). Manage swarm operations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_swarm_operations_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | update_service: environment as a JSON list of 'KEY=VALUE' | |
| host | No | Remote host alias to target that machine's Docker over SSH (resolved from the tunnel-manager inventory). Omit for the LOCAL Docker socket. Call cm_list_hosts to see the available aliases. Note: swarm-cluster actions (list_nodes/services) must target a swarm MANAGER node. | |
| name | No | Name for the service | |
| role | No | update_node: 'manager' or 'worker' | |
| tail | No | service_logs: number of log lines to tail | |
| force | No | Force operation | |
| image | No | Image to use for service | |
| ports | No | Port mappings as JSON string | |
| labels | No | Labels as a JSON object, e.g. '{"poweredge": "true"}'. For update_node these are node labels (merged unless replace_labels); for update_service these are service labels (merged). | |
| mounts | No | Mounts mappings as JSON string list | |
| confirm | No | Confirm a destructive action without elicitation. | |
| node_id | No | Node ID, short ID, or hostname (for *_node actions) | |
| replicas | No | Number of replicas | |
| service_id | No | Service ID or name | |
| constraints | No | update_service: placement constraints as a JSON list | |
| availability | No | update_node: 'active', 'pause', or 'drain' | |
| manager_type | No | Container manager: docker, podman, kubernetes (default: auto-detect) | |
| advertise_addr | No | Advertise address for init_swarm | |
| replace_labels | No | update_node: replace all labels instead of merging |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |