Skip to main content
Glama

node_remove

Destructive

Remove a node from a Docker swarm by ID or name. Use force to delete active or reachable nodes that have not been drained.

Instructions

Remove a node from the swarm.

A node should normally be drained (node_update with Availability "drain") and have left the swarm first, so its tasks reschedule cleanly. Removing an active/reachable node requires force=True.

args: id_or_name - The node id or name to remove force - Force removal of an active/reachable node returns: bool - True after the node is removed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
id_or_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations: it warns that removal should follow draining and leaving the swarm, and that force is required for active/reachable nodes. This expands on the destructiveHint=true annotation without contradicting it, giving the agent a clearer picture of consequences and prerequisites.

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?

The description is efficiently structured: a one-line summary, a brief usage paragraph, and an args/returns list. Every sentence provides necessary information without redundancy or padding, making it easy to scan and understand.

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

Completeness5/5

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

For a destructive swarm operation with two parameters, the description covers all essential aspects: purpose, prerequisites, force behavior, parameter descriptions, and the return type. Even though an output schema exists, the description supplements it with the return value explanation. This is complete for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

With schema description coverage at 0%, the description fully compensates by documenting each parameter: `id_or_name` is clearly defined as the node id or name to remove, and `force` is explained as forcing removal of an active/reachable node. This adds semantic meaning beyond the bare schema types and defaults.

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 opens with 'Remove a node from the swarm,' using a specific verb and resource. It clearly distinguishes this from sibling tools like node_update (which updates node properties) and node_list (which lists nodes), leaving no ambiguity about its function.

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 provides clear usage context: a node should normally be drained via `node_update` with Availability 'drain' and have left the swarm first, and active/reachable nodes require `force=True`. This effectively states when to use the tool and the prerequisites, though it could more explicitly differentiate from alternatives beyond the node_update reference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/L337-org/docker-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server