Skip to main content
Glama

manage_node

Drain, cordon, or uncordon Kubernetes nodes to evict Pods, mark unschedulable, or restore scheduling.

Instructions

节点运维管理:排水(drain)、标记不可调度(cordon)、恢复调度(uncordon)

Args: node_name: 节点名称 action: 操作类型 - "drain":cordon + 驱逐 Pod(等同于 kubectl drain) - "cordon":仅标记不可调度,不驱逐现有 Pod(等同于 kubectl cordon) - "uncordon":恢复为可调度(等同于 kubectl uncordon) ignore_daemonset: drain 时是否跳过 DaemonSet Pod,默认 True ignore_mirror_pods: drain 时是否跳过 mirror pod(静态 Pod 镜像),默认 True kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Returns: 操作结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNodrain
node_nameYes
cluster_nameNo
kubeconfig_pathNo
ignore_daemonsetNo
ignore_mirror_podsNo
Behavior3/5

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

With no annotations provided, the description carries the full burden and does disclose key side effects like drain evicting pods and default behavior for DaemonSet and mirror pods. It lacks details on permissions, reversibility, or potential cluster-level impact, which is important for a mutating Kubernetes tool.

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 well-structured with a clear header and parameter list, and every parameter earns its place. The Returns section is vague, but overall the text is efficient and front-loaded.

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?

Given the tool has 6 parameters and no output schema or annotations, the description covers all the essential parameter semantics and action behavior, making it usable. However, the return value is only described as '操作结果', and missing error/permission context leaves minor completeness gaps.

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?

Schema description coverage is 0%, but the description compensates thoroughly by explaining all six parameters, including action enum values with kubectl equivalents and the precedence between kubeconfig_path and cluster_name. This adds substantial meaning beyond the raw schema.

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 as node operations management with three explicit actions (drain, cordon, uncordon), mapping them to kubectl equivalents. This distinguishes it from sibling tools focused on checking health or general resource management.

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?

The action definitions imply when each operation is appropriate, such as using drain to evict pods or cordon to mark unschedulable. However, it doesn't explicitly state when to prefer this tool over alternatives like check_node_health or batch_update_resources, nor does it provide exclusions.

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/Tobewont/k8s-mcp-server'

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