Skip to main content
Glama

get_cluster_info

Fetch Kubernetes cluster details using a kubeconfig file or cluster name, giving you essential information for cluster management.

Instructions

获取Kubernetes集群信息

Args: kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Returns: 集群信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_nameNo
kubeconfig_pathNo
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It explains parameter selection behavior (kubeconfig_path vs cluster_name) but does not state whether the operation is read-only, what exact information is returned, or potential side effects. The return value '集群信息' (cluster info) is vague.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with a clear summary, followed by structured Args and Returns sections. It is appropriately sized for a simple tool, with no wasted sentences.

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 with 2 optional parameters and no output schema. The description covers the parameter selection logic but does not specify return fields or error conditions. It is minimally adequate but lacks detail to fully understand the tool's output.

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 0%, yet the description compensates by explaining each parameter's semantics: kubeconfig_path is the config file path, and cluster_name is used when kubeconfig_path is not specified. This adds meaning beyond the schema's type/default information, though could be more detailed.

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 clearly states '获取Kubernetes集群信息' (Get Kubernetes cluster info), which is a specific verb+resource pair. However, it does not distinguish this from sibling tools like get_cluster_resource_usage or check_cluster_health, which also relate to cluster information.

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?

The description provides no guidance on when to use this tool versus alternatives. It only explains the parameters, not the intended use case or scenario. There is no mention of when to prefer get_cluster_info over other cluster tools.

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