Skip to main content
Glama

load_kubeconfig

Loads a Kubernetes kubeconfig file by name to access cluster configuration. Optionally masks sensitive fields like tokens and certificates for safe output.

Instructions

加载kubeconfig文件

注意:kubeconfig 包含集群认证凭据(token、证书等),请勿在不可信环境中暴露。 可通过 mask_sensitive=True 脱敏 token、证书等敏感字段后再输出。

Args: name: 配置名称 mask_sensitive: 是否脱敏敏感字段(token、client-certificate-data、client-key-data),默认 False

Returns: kubeconfig文件内容

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
mask_sensitiveNo
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the sensitive nature of the kubeconfig content and explains the mask_sensitive parameter behavior, which is helpful. However, it does not disclose other behavioral traits such as where the config is loaded from or potential errors.

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 compact and well-organized, with a warning note, argument explanations, and return value. Every sentence serves a purpose, and the structure is clear.

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?

For a simple two-parameter tool, the description covers the main action, return value, and a critical safety note. However, it lacks details about output format (e.g., YAML/JSON) and error conditions, leaving some context missing.

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?

The schema provides only bare titles ('Name', 'Mask Sensitive'), and schema description coverage is 0%. The description compensates by explaining 'name' as configuration name and 'mask_sensitive' as masking token/certificate fields, adding real semantic value.

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 states the tool loads a kubeconfig file and specifies it returns the file content. It clearly identifies the action and resource, but does not explicitly differentiate from sibling tools like get_kubeconfig_info or list_kubeconfigs.

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 does not mention exclusions or prerequisites, making it unclear when to choose load_kubeconfig over list_kubeconfigs or get_kubeconfig_info.

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