Skip to main content
Glama

batch_describe_resources

Batch retrieve detailed information for multiple Kubernetes resources by providing their kind and name, with optional namespace and cluster settings.

Instructions

批量获取资源详细信息

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

Returns: 批量资源详细信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
cluster_nameNo
resource_specsYes
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 carry the full burden of behavioral disclosure. It states it retrieves detailed info, which implies read-only, but does not explicitly mention that it does not modify resources, what permissions are required, how errors are handled, or what happens if a resource is not found. Beyond the inherent 'get' semantics, it adds little about behavior.

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 uses a clear structured format (summary, Args, Returns). The parameter explanations are concise and the format example is warranted. It is slightly longer than strictly necessary but every sentence contributes to understanding. The summary is front-loaded.

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 and no annotations, the description should explain the return format more precisely. It only says '批量资源详细信息' (batch resource detailed info) without describing structure, pagination, or error behavior. Also, no guidance on cluster selection when both kubeconfig_path and cluster_name are absent, or about cluster_name needing clusters.json. Overall, the completeness is insufficient for a moderately complex batch tool.

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 description's Args section significantly explains each parameter. It provides a concrete format example for resource_specs, explains the relationship between kubeconfig_path and cluster_name, and clarifies the meaning of namespace. Since the schema has no property descriptions (0% coverage), this description fully compensates and adds substantial meaning beyond the schema.

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 '批量获取资源详细信息' (batch get resource detailed information), with the verb '获取' (get) and resource '资源' (resources). This distinguishes it from sibling tools like batch_list_resources, batch_create_resources, etc., which are explicitly named for different operations.

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 provides conditional usage context: kubeconfig_path is used if specified, otherwise cluster_name or the default cluster is used. However, it does not explicitly say when to choose this tool over alternatives like batch_list_resources or get_cluster_info. The batch prefix implies usage for multi-resource operations, but no exclusions or alternatives are mentioned.

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