Skip to main content
Glama

Update node

docker_update_node

Update 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

NameRequiredDescriptionDefault
roleNo
labelsNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
node_idYes
availabilityNo
replace_labelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. The description adds useful behavior — labels merge by default, role means promote/demote — but never warns that setting replace_labels=true overwrites existing labels, a mutation-relevant detail given destructiveHint=false. It also says nothing about required privileges or what happens to unspecified fields.

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

Conciseness5/5

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

Two tight sentences with the mutable facets front-loaded and a second line giving the value vocabularies. No filler, no restatement of the title.

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

Completeness3/5

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

For a 6-parameter mutation tool with no output schema and sparse schema descriptions, the definition covers the headline behavior but is thin on replace_labels semantics, node_id, and the context parameter. It is adequate to attempt a call but not complete.

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

Parameters4/5

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

Schema description coverage is only 17% and the schema declares no enums, so the description does real work by supplying the allowed values manager/worker and active/pause/drain, and by explaining that labels merge rather than replace. It leaves replace_labels, node_id, and context semantics unaddressed, so it does not fully compensate for the coverage gap.

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

Purpose4/5

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

The description opens with a specific verb and resource plus the three mutable facets: "Update a node's labels (merge by default), role, or availability." An agent knows exactly what changes and what the merge default is. It does not differentiate from the near-identical sibling docker_node_update, which is the main remaining ambiguity.

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

Usage Guidelines3/5

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

Usage is implied through the enumeration of what can be changed and the allowed values for role and availability, giving decent context for how to call it. However, there is no explicit when-to-use/when-not guidance and no mention of when to prefer the sibling docker_node_update or docker_update_service.

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