Skip to main content
Glama

batch_restart_resources

Batch restart Kubernetes resources like Deployments and StatefulSets in a namespace, with optional kubeconfig or cluster selection.

Instructions

批量重启资源

Args: resources: JSON格式的资源列表,格式:[{"kind": "Deployment", "name": "my-app"}, {"kind": "StatefulSet", "name": "my-db"}] namespace: 命名空间 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用

Returns: 批量重启结果

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 must explain behavioral traits. It only says 'batch restart results' without detailing what a restart entails (e.g., rolling restart, pod deletion, readiness checks), potential side effects, or required permissions. This is a significant gap for a mutating 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 structured with a clear heading, Args, and Returns sections. It is reasonably concise and all listed parameter explanations are useful, though the Returns line is somewhat vague and could be omitted or expanded.

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?

While parameter details are well covered, the tool description lacks behavioral context, output details, and usage scenarios. For a batch mutation tool with no annotations or output schema, the description should disclose more about the restart mechanism and potential impact to be complete.

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 and resources is just a string, but the description compensates well by explaining the JSON format with a concrete example, the namespace default, and the precedence between kubeconfig_path and cluster_name. This goes beyond the schema and adds critical usage detail.

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 clearly states '批量重启资源' (batch restart resources), identifying the action and target resource type. It provides the expected input format and parameters, but does not explicitly distinguish itself from sibling tools like batch_rollout_resources, which may also handle restarts.

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 does not provide any guidance on when to use this tool versus alternatives such as batch_rollout_resources or batch_delete_resources. It merely lists arguments without explaining the intended use case or exclusions.

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