Skip to main content
Glama

batch_update_resources

Batch update Kubernetes resources from a JSON list, specifying namespace and cluster credentials for targeted changes.

Instructions

批量更新资源

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
resourcesYes
cluster_nameNo
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 behavioral disclosure. It does not explain side effects, idempotency, atomicity, error behavior, or what happens to existing resources. The only behavioral trait mentioned is the kubeconfig fallback logic, which is insufficient for a 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured, with a single-sentence summary followed by parameter details. There is no filler or redundant information. Each line serves a purpose, 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?

As a mutation tool with no annotations and no output schema, this description is incomplete. It omits return values, error handling, resource type support, and how updates are applied. The parameter documentation is helpful, but the operational context is largely absent.

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 description adds meaningful context to the parameters. It clarifies that 'resources' is a JSON-formatted list, and it explains the fallback relationship between kubeconfig_path and cluster_name. With schema description coverage at 0%, this significantly compensates for the bare schema. The namespace explanation is minimal, but overall it adds value.

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 states '批量更新资源' (batch update resources), which is a clear verb+resource combination. However, it is essentially a restatement of the tool name and lacks detail on what 'update' entails (e.g., patch vs replace). It only minimally distinguishes from sibling batch tools like batch_create or batch_delete.

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 such as batch_create or batch_delete. No prerequisites, exclusions, or contextual scenarios are provided. The parameter list offers fallback logic but no usage direction.

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