Skip to main content
Glama

Cordon node

k8s_cordon_node

Marks a Kubernetes node as unschedulable or schedulable, letting you cordon it for maintenance or uncordon it to restore scheduling.

Instructions

Mark a node as unschedulable (cordon) or schedulable (uncordon).

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_name": "<node_name>"
    },
    "name": "k8s_cordon_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
node_nameYes
unschedulableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, and the description's 'mark as unschedulable' is consistent with a non-destructive state change. However, it omits the key behavioral fact that existing pods keep running and only new scheduling is blocked — the distinction that separates cordon from drain. With annotations covering the safety profile, that omission keeps this at a 3.

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?

A single front-loaded sentence that defines both modes with zero wasted words. Brevity is appropriate for a simple state-toggle tool, though the parenthetical gloss could have been expanded slightly to cover the boolean mapping.

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?

The tool is simple and annotations carry the safety profile, but a mutation tool whose sibling set includes both k8s_uncordon_node and k8s_drain_node needs at least a line on scope and effect on existing pods. As written, the agent has enough to invoke it but not enough to choose it confidently.

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?

Schema coverage is 33%, with only `context` documented in the schema. The description's 'or schedulable (uncordon)' hints that the direction is parameter-controlled but never names the `unschedulable` boolean or explains that it defaults to true, so the agent must infer which parameter drives which outcome.

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?

States a specific verb and resource — 'Mark a node as unschedulable (cordon) or schedulable (uncordon)' — so the agent knows exactly what state changes. It does not address why a sibling named k8s_uncordon_node exists alongside a tool that also uncordons, leaving a differentiation gap.

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

Usage Guidelines2/5

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

No guidance on when to choose this over k8s_uncordon_node for the uncordon direction, or over k8s_drain_node when the goal is evicting workloads. The agent must infer the split from sibling names alone.

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