Skip to main content
Glama

node_update

Replace a Docker node's complete specification (availability, name, role, labels) with a new spec, clearing any omitted fields. Provide the full spec to update the node.

Instructions

Replace a node's spec (availability, name, role, labels).

Replacement, not a merge: spec becomes the node's entire spec, and omitted keys are cleared. Fetch the current spec via node_inspect (its Spec key), modify it, and resubmit the whole dict - e.g. sending just {"Availability": "drain"} would also wipe the node's role and labels.

Args: spec: The complete new node spec (see description - omitted keys are cleared)

Returns: bool: True after the update

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYes
id_or_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.3/5.0
Behavior5/5

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

The description goes beyond the provided annotations by exposing the crucial non-merge, overwrite behavior: omitted keys are cleared, and it gives a concrete example of how sending just {"Availability": "drain"} wipes role and labels. This is exactly the kind of 'what gets destroyed' context that keeps an agent from making a destructive mistake.

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

Conciseness4/5

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

The description is concise and well organized: purpose first, then the critical replacement warning, and then parameters. The example reinforces the warning without excessive padding. It earns high marks, though a slightly tighter back half could ship slightly better.

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

Completeness4/5

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

The description covers the essential operational flow (node_inspect + resubmit) and the return value (bool). It does not specify accepted values for id_or_name or preconditions such as cluster mode/manager availability, but for the core task of safely replacing a node spec it is largely complete.

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?

The spec parameter is well explained: it must be the complete new spec and omitted keys are cleared. However, there is 0% schema description coverage, and the description does not explain the id_or_name parameter beyond the bare name, leaving uncertainty about whether it accepts an ID, a name, or both, or what formats are valid.

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

Purpose5/5

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

The description clearly states the tool's purpose with a specific verb 'Replace' and identifies the resource ('a node's spec') and the relevant fields (availability, name, role, labels). It distinguishes itself naturally from sibling tools like node_inspect and node_remove by focusing on spec replacement.

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

Usage Guidelines4/5

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

The description gives actionable usage guidance: fetch the current spec via node_inspect, modify it, and resubmit the entire dict. It also warns not to send a partial spec such as only changing Availability. It does not explicitly name when not to use the tool or alternative tools, but the context provided is strong.

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