Skip to main content
Glama

Update node

k8s_update_node

Update Kubernetes node labels, cordon/uncordon or drain a node, and toggle its control-plane role to manage scheduling and pod eviction.

Instructions

Update a node's labels, cordon state, or control-plane role label.

availability: active uncordons; pause/drain cordon (drain also evicts non-mirror pods). role toggles the node-role.kubernetes.io/control-plane label.

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": "k8s_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

B3.1/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the thin annotations: it discloses that 'pause'/'drain' cordon the node and that 'drain' additionally evicts non-mirror pods, which an agent could not infer from readOnlyHint=false / destructiveHint=false. That pod-eviction detail sits in tension with destructiveHint=false, and the description says nothing about reversibility, required RBAC, or what happens to already-running workloads beyond the eviction note.

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?

Compact and front-loaded: one sentence for the operation, then a per-field gloss. No filler. The terseness costs some clarity (the availability values are never enumerated as an explicit set of allowed strings), but nothing is wasted.

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

Completeness2/5

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

For a 6-parameter mutating tool with 17% schema coverage, no output schema, and near-empty annotations, the description leaves too much open: label merge/replace semantics, the meaning of node_id, and any success/failure or partially-applied-change behavior are all unaddressed.

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

Parameters2/5

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

Schema coverage is only 17%, so the description carries most of the burden — and it explains availability semantics and the role label toggle well. But it entirely omits labels and, critically, replace_labels (merge vs. wholesale replacement), which is the highest-risk ambiguity in a mutation tool; node_id is also undocumented beyond being required.

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 plus resource plus the exact editable facets: 'Update a node's labels, cordon state, or control-plane role label.' That is far more informative than the title 'Update node'. However, it never distinguishes this tool from the overlapping siblings k8s_cordon_node, k8s_uncordon_node, and k8s_drain_node, which apparently reachable subsets of the same behavior.

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 only implied: the availability values ('active' uncordons, 'pause'/'drain' cordon) tell an agent what each mode does but never state when to prefer this tool over k8s_cordon_node/k8s_drain_node, nor whether this is the canonical way to cordon. No prerequisites, no note on required permissions, no exclusions.

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