Skip to main content
Glama

batch_create_resources

Create multiple Kubernetes resources in one operation using JSON definitions, with rollback on failure and cluster selection options.

Instructions

批量创建资源

Args: resources: JSON格式的资源列表,每个资源包含kind、metadata、spec namespace: 命名空间 rollback_on_failure: 失败时是否回滚已创建的资源 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
resourcesYes
cluster_nameNo
kubeconfig_pathNo
rollback_on_failureNo
Behavior3/5

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

Annotations are absent, so the description carries the transparency burden. It discloses the rollback_on_failure behavior and the priority between kubeconfig_path and cluster_name. However, it does not mention idempotency, error handling side effects, or whether the operation is atomic beyond the rollback option. These are notable gaps for a batch mutation tool.

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 a compact, front-loaded docstring with a one-line summary followed by a bulleted parameter list. Every line adds value, and the formatting is easy to scan. No redundancy or filler exists.

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, the description should explain what the tool returns or how success/failure is reported. It does not. It also lacks error condition descriptions, making it incomplete for a batch operation that could partially fail. The rollback parameter hints at failure semantics but does not describe the final state feedback.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so parameter explanations in the description are critical. It adds meaning for all five parameters: defines resources as a JSON list with kind, metadata, spec; explains rollback_on_failure; and clarifies the precedence between kubeconfig_path and cluster_name. This fully compensates for the barren schema.

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?

Description begins with '批量创建资源' which clearly states a batch create operation for resources. This distinguishes it from sibling tools like batch_update_resources and batch_delete_resources based on the verb. However, it lacks detail on the scope or method of creation, so it does not fully elaborate the purpose.

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 such as batch_update_resources or individual create tools. It does not mention prerequisites like cluster connectivity, nor does it specify whether it should be used for initial creation only. The parameter list implies usage but gives no explicit context.

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