Skip to main content
Glama

check_cluster_health

Check Kubernetes cluster health and optionally detect RBAC permission conflicts such as duplicate bindings or redundant permissions. Provides a health report including optional RBAC conflict analysis.

Instructions

检查Kubernetes集群健康状态,可选附带 RBAC 权限冲突检测

Args: kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用 include_rbac_check: 是否同时检查 RBAC 权限冲突(如重复绑定、冗余权限),默认 False rbac_namespace: RBAC 检查的目标命名空间,仅 include_rbac_check=True 时有效;省略则检查所有系统命名空间

Returns: 集群健康检查结果(含可选 RBAC 冲突报告)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_nameNo
rbac_namespaceNo
kubeconfig_pathNo
include_rbac_checkNo
Behavior3/5

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

No annotations are provided, so the description carries the burden. It explains parameter behavior (defaults, conditional applicability) and indicates the return type, but does not explicitly state whether the operation is read-only, requires specific permissions, or what constitutes a health check.

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?

Well-structured with purpose, Args, and Returns sections, each concise. The docstring format is slightly verbose but every sentence provides necessary detail without redundancy.

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?

Covers the essential context: purpose, parameters, and return value. With no annotations or output schema, it could be more detailed about the result structure and potential side effects, but is adequate for a health-check tool.

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 coverage is 0%, but the description compensates fully by explaining each parameter's purpose, default, and inter-dependencies (e.g., rbac_namespace only when include_rbac_check is True, kubeconfig_path vs cluster_name precedence).

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?

Description clearly states a specific action: check Kubernetes cluster health, optionally with RBAC conflict detection. This distinguishes it from sibling tools like check_node_health and check_pod_health by focusing on cluster-level and the unique RBAC feature.

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 implied by the purpose (check health), but no explicit guidance on when to use this over sibling health tools like check_node_health or check_pod_health, nor any exclusions or prerequisites.

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