Skip to main content
Glama

cordon_node

Cordon one Kubernetes node: set spec.unschedulable=true so no new pods schedule onto it. Running pods are NOT evicted - they keep running until removed (delete_pod) or drained by an operator, after which their controllers recreate them on other nodes. This is the standard first step of node consolidation: cordon the node, remove its remaining pods, and let the cluster-autoscaler or an operator reap the empty node. Note delete_pod issues a direct delete, not an Eviction-API evict, so PodDisruptionBudgets are NOT consulted - check disruption budgets and replica counts before removing pods from the node. node_name must match the Kubernetes node name exactly (call get_nodes to list them); an unknown node is refused without changing anything. Fully reversible with uncordon_node. This is the only Node mutation available to the AI assistant - patch_resource still refuses the Node kind.

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, preview the change without executing it.
node_nameYesExact name of the Kubernetes node to cordon (from get_nodes).
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give the safety triad (readOnly=false, idempotent=false, destructive=false); the description carries the real behavioral burden. It discloses that running pods are NOT evicted, that PodDisruptionBudgets are NOT consulted by delete_pod, that unknown nodes are refused with no side effects, and that the operation is fully reversible via uncordon_node.

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 action and its effect are front-loaded in the first sentence, and the operational guidance is logically ordered (effect, reversibility, workflow context, caveats, error behavior). It is on the long side and a sentence or two of the consolidation narrative could be trimmed without losing correctness.

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 mutating tool with no annotations backing and no output schema, the description covers everything an agent needs: effect, non-eviction of pods, reversibility, prerequisite lookup via get_nodes, error handling for unknown nodes, and the PDB caveat for the follow-on delete_pod step.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: node_name must match the Kubernetes node name exactly, get_nodes should be called to list them, and unknown nodes are refused without changes. It adds nothing extra for cluster_id or dry_run, which the schema already documents.

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?

States the exact verb and resource ('Cordon one Kubernetes node') and immediately defines the mechanism ('set spec.unschedulable=true so no new pods schedule onto it'), which is specific enough to distinguish it from sibling mutations.

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

Usage Guidelines5/5

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

Explicitly frames the tool as 'the standard first step of node consolidation' and names the surrounding workflow (remove pods, let autoscaler reap the node). It also routes the agent to alternatives and exclusions: uncordon_node for reversal, delete_pod for pod removal, and it notes patch_resource refuses the Node kind.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources