Skip to main content
Glama

batch_rollout_resources

Batch manage Kubernetes deployment rollouts: view status, rollback to previous or specific revision, pause, or resume.

Instructions

批量发布操作:查看状态、回滚、暂停、恢复

Args: operations: JSON 数组,每项格式 {"kind":"Deployment","name":"xxx","action":"status|undo|pause|resume","revision":3} action: status 查看发布状态, undo 回滚(不指定 revision 则回滚到上一版本, 指定 revision 则回滚到该版本), pause 暂停(仅Deployment), resume 恢复(仅Deployment) namespace: 命名空间 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Returns: 批量操作结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
operationsYes
cluster_nameNo
kubeconfig_pathNo
Behavior4/5

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

With no annotations, the description carries the full burden. It explains rollback behavior (without revision rolls back to previous, with revision rolls to that version), notes that pause/resume apply only to Deployments, and clarifies kubeconfig_path vs cluster_name precedence. This is good transparency, though it doesn't mention permissions or failure modes.

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 well-structured with Args and Returns sections. Each sentence provides necessary information without repetition or fluff. It is appropriately sized for the complexity of the tool.

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

Completeness4/5

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

For a tool with 4 parameters, no output schema, and no annotations, the description covers all parameters and actions in sufficient detail. It lacks specification of the return result structure or error conditions, but the core usage is 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?

Schema coverage is 0%, so the description must compensate. It thoroughly documents the operations parameter with its JSON structure, each action's semantics, and the revision field. It also explains namespace, kubeconfig_path, and cluster_name meanings. The only minor issue is that the schema types operations as a string, while the description shows it as a JSON array without clarifying how the string is encoded.

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

Purpose5/5

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

The description clearly states it performs batch rollout operations with specific actions: status, rollback, pause, and resume. It names the resource type (Deployment) and the exact operations, distinguishing it from sibling tools like batch_list_resources or batch_delete_resources. This meets the 'specific verb+resource' benchmark.

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 description implies usage by listing actions and the operation format, but it does not explicitly state when to use this tool over alternatives or provide when-not-to-use guidance. For example, it doesn't compare with batch_update_resources or batch_restart_resources, so guidance is only implicit.

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