Skip to main content
Glama

batch_delete_resources

Batch delete multiple Kubernetes resources in a single request, with options for namespace, graceful deletion period, and cluster selection via kubeconfig or cluster name.

Instructions

批量删除资源

Args: resources: JSON格式的资源列表 namespace: 命名空间 grace_period_seconds: 优雅删除等待时间 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
resourcesYes
cluster_nameNo
kubeconfig_pathNo
grace_period_secondsNo
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It hints at Kubernetes deletion semantics via 'grace_period_seconds' (优雅删除等待时间) and explains cluster selection logic, but it does not state that deletion is destructive, irreversible, or what permissions are required. This is a critical gap for a batch delete 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 docstring: a one-line purpose followed by a parameter list. It is front-loaded with the action and each parameter gets a short, useful explanation. No filler or redundant text, making it easy to scan.

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?

This destructive tool has no annotations and no output schema. The description only covers parameter syntax and omits important context such as return values, error handling, safety warnings, and behavioral impact. For a batch delete operation with five parameters, this is insufficiently complete.

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?

Despite 0% schema coverage, the description adds meaningful explanations for all five parameters. For example, 'resources' is described as a JSON-format resource list, and the interplay between kubeconfig_path and cluster_name is clarified ('不指定则使用 cluster_name 或默认集群'). This goes beyond the schema titles, though details like the exact format of the resource list remain vague.

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 '批量删除资源' (batch delete resources) clearly identifies the action (delete) and target (resources). The parameter list with 'resources', 'namespace', and 'grace_period_seconds' distinguishes it from sibling batch operations. However, it doesn't specify exactly which resource types are supported, leaving a minor ambiguity.

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 like batch_update_resources or batch_create_resources. No prerequisites, exclusions, or alternative recommendations are provided. The description only lists parameters without context on use cases.

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