Skip to main content
Glama

Host

cm_swarm_operations_host

Initialize, 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

NameRequiredDescriptionDefault
envNoupdate_service: environment as a JSON list of 'KEY=VALUE'
hostNoRemote 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.
nameNoName for the service
roleNoupdate_node: 'manager' or 'worker'
tailNoservice_logs: number of log lines to tail
forceNoForce operation
imageNoImage to use for service
portsNoPort mappings as JSON string
labelsNoLabels 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).
mountsNoMounts mappings as JSON string list
confirmNoConfirm a destructive action without elicitation.
node_idNoNode ID, short ID, or hostname (for *_node actions)
replicasNoNumber of replicas
service_idNoService ID or name
constraintsNoupdate_service: placement constraints as a JSON list
availabilityNoupdate_node: 'active', 'pause', or 'drain'
manager_typeNoContainer manager: docker, podman, kubernetes (default: auto-detect)
advertise_addrNoAdvertise address for init_swarm
replace_labelsNoupdate_node: replace all labels instead of merging

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, but the description adds no context beyond that. It says nothing about the SSH-remote vs local socket targeting, manager-node requirements, or the confirm-gated destructive path, all of which materially affect safe invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but brevity here comes from under-specification rather than efficiency. The first fragment merely repeats the tool name and internal identifier, and the second sentence conveys no actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, multi-action, non-idempotent mutation tool that can target remote hosts over SSH, two vague sentences are wholly inadequate. Even with an output schema present, the agent gets no guidance on action selection, targeting rules, or the destructive-confirm flow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the per-parameter descriptions (host, node_id, availability, replace_labels, etc.) carry all the meaning. The tool description contributes nothing beyond that baseline, which is acceptable but not additive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Manage swarm operations" restates the title and only vaguely gestures at a resource, with no specific verb or scope. The tool actually spans node role/availability updates, service updates, swarm init/join, and log tailing, none of which the description reveals, so an agent cannot distinguish it from siblings like docker_swarm_init or docker_swarm_service_logs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. With 19 optional parameters covering many distinct actions, the agent has no signal about which action to invoke or when to prefer a dedicated sibling tool instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools