Skip to main content
Glama

List resources

k8s_list_resources
Read-onlyIdempotent

Lists Kubernetes resources by API version and kind, returning name, namespace, creation time, and labels to inspect workloads across namespaces or contexts.

Instructions

List objects of any kind as name/namespace/created/labels summaries.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "api_version": "<api_version>",
      "kind": "<kind>"
    },
    "name": "k8s_list_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceNo
api_versionYes
all_namespacesNo
label_selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuine value by disclosing the returned summary shape (name/namespace/created/labels), which sets expectations about payload breadth. However, it says nothing about large-cluster result volume, pagination/truncation, or that the call traverses a live cluster whose contents may change between calls.

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?

A single dense sentence with no filler, and the scope ('any kind') and the return shape are front-loaded. It is efficient rather than padded. It could be tightened with one clause on generic-vs-typed usage, but nothing present is wasted.

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?

For a six-parameter, low-coverage generic lister with no output schema, the description is thin: it omits namespace/all_namespaces interplay, label_selector behavior, and the named-context pool. The one sentence about summary fields is the only thing standing in for an output schema. Completeness is inadequate relative to the tool's flexibility.

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

Parameters2/5

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

Schema description coverage is only 17% across six parameters, so the description needed to carry namespace selection, all_namespaces, label_selector filtering, and the context pool, and it does none of that. Only kind and api_version are even indirectly implied by 'objects of any kind'. The namespace-related versus label_selector-related semantics, which decide the result set entirely, are left undocumented.

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 names a specific verb (List) and a scoped resource ('objects of any kind'), which signals the generic catch-all list tool and implicitly distinguishes it from the typed siblings like k8s_list_configmaps or k8s_list_events. The object shape (name/namespace/created/labels summaries) further pins down what a caller gets back. It stops short of explicitly saying it is the generic counterpart to the per-kind list tools, so a 4 rather than a 5.

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 reach for this generic lister versus the many typed siblings (k8s_list_crds, k8s_list_api_resources, k8s_list_custom_resources) or the field-selector variant. Nothing states prerequisites, exclusions, or the conditions under which the kind/api_version pair is preferred over a dedicated tool. Usage must be inferred entirely from the sibling names, which the definition does not reference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools