Skip to main content
Glama

backup_namespace

Back up specified built-in and custom resources in a Kubernetes namespace to a multi-document YAML file, with Secrets included by default and data preserved.

Instructions

备份命名空间中的指定内置资源和自定义资源,保存为多文档 YAML。Secret 默认包含,data 原样保留。

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "namespace": "<namespace>"
    },
    "name": "backup_namespace"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYes
cluster_nameNo
include_secretsNo
kubeconfig_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior: secrets are included by default and secret data is preserved verbatim, which matters for a security-sensitive operation. It does not say where the YAML is written or returned, whether an existing file is overwritten, or what happens when the namespace or cluster is missing.

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 front-loaded with the purpose and the YAML output format, followed by a compact Args list. It is short and nearly waste-free, with only minor redundancy between the Args entry and the surrounding prose.

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 description covers what is backed up and how the parameters work, but with no output schema and no annotations, it should say what the tool returns (a file path, a YAML string, or a summary) so the agent knows what to do with the result. That omission is the main gap.

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 description coverage is 0%, so the description must compensate, and it does: all four parameters are explained, including the include_secrets default of True and the fallback rule that kubeconfig_path otherwise resolves via cluster_name or the default cluster. Only the exact format of cluster_name values remains unstated.

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?

States a specific verb and resource: back up the built-in and custom resources in a namespace, saved as multi-document YAML. Naming the output format and the namespace scope makes it distinguishable from backup_resource, though that sibling is not named explicitly.

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 usage context is implied: use this to back up a whole namespace rather than a single resource. There is no explicit when-to-use or when-not guidance, no mention of restore_from_backup as a follow-up, and no statement of prerequisites such as cluster connectivity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.