Skip to main content
Glama

backup_namespace

Creates a backup of a Kubernetes namespace, including secrets by default, to support disaster recovery and cluster migration via cluster name or kubeconfig.

Instructions

备份命名空间

Args: namespace: 命名空间名称 cluster_name: 集群名称(可选) include_secrets: 是否包含 Secret 资源,默认 True kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYes
cluster_nameNo
include_secretsNo
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 of disclosing behavioral traits. It mentions 'include_secrets' defaults to True, which implies secrets are backed up by default, and explains kubeconfig fallback logic. However, it does not state whether the operation is read-only, where the backup is stored, whether it overwrites existing backups, or what permissions are required. This significant gap is particularly concerning for a backup operation.

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 a compact parameter list with a one-line purpose prefix. It is free of filler and gets straight to the point, making it easy to scan. The structure is consistent and each parameter is given a brief explanation. It loses a point for not using a more standard prose format that could have integrated usage context more smoothly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description must explain the tool's full behavior, but it only covers parameter semantics. It fails to describe what a backup actually produces, how it is stored, how to restore it, or what the expected side effects are. For a 4-parameter operation on a Kubernetes namespace, this is incomplete and leaves many critical questions unanswered.

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 overall schema has 0% description coverage, so the description is the only source of parameter meaning. It provides useful semantics for 'include_secrets' (whether Secret resources are included, default True) and 'kubeconfig_path' (fallback to cluster_name or default cluster if not set). However, 'namespace' and 'cluster_name' are nearly tautological ('命名空间名称', '集群名称(可选)') and add little beyond the property names. Overall, it compensates partially for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with '备份命名空间' (backup namespace), which directly restates the tool name and gives a verb+resource. However, it never explains what the backup entails (e.g., snapshot, export YAML, archive), nor does it distinguish this tool from the sibling 'backup_resource' or 'restore_from_backup'. The scope is implied by the name but not stated explicitly.

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?

There is no guidance on when to use this tool versus alternatives. The description only lists parameters and their defaults. It does not mention when a namespace-level backup is appropriate, when to prefer 'backup_resource' for individual resources, or any prerequisites such as cluster connectivity. This leaves the agent to infer usage solely from the tool name.

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