Skip to main content
Glama

List custom resources

k8s_list_custom_resources
Read-onlyIdempotent

List Kubernetes custom resources for a specified CRD group, version, and plural, optionally scoped to a namespace and context. Use it to inspect CR instances without guessing resource paths.

Instructions

List custom resources for a given CRD.

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": {
      "group": "<group>",
      "version": "<version>",
      "plural": "<plural>"
    },
    "name": "k8s_list_custom_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupYes
pluralYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
versionYes
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered and the description is not contradictory. However it adds essentially nothing beyond them: no note on namespaced vs cluster-scoped behavior when namespace is null, no pagination/result-size behavior for potentially large CR lists, no indication that an unknown group/version/plural fails rather than returning empty.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single front-loaded sentence with zero padding, which is good structure. But one sentence is undersized for a 5-param, discovery-dependent, open-world list operation; brevity here reads as under-specification rather than economy.

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?

This is a fairly complex operation (dynamic/CR-backed listing, context pool selection, namespace scoping) with no output schema and 80% of params undocumented. The description supplies none of the missing pieces, so an agent could easily pass the wrong identifier form or misinterpret the missing namespace default.

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 20% — only the context param is documented — and the description does not compensate. The three required params (group, version, plural) are the crux of the call and get no explanation of format (e.g. plural being the lowercase plural resource name like "certificates"), nor does the description explain what an omitted namespace means.

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 verb+resource ("List custom resources") is identifiable, but "for a given CRD" is imprecise: the required params (group/version/plural) identify a resource kind, not a CRD object. It also does nothing to separate itself from siblings such as k8s_list_resources or k8s_list_crds, leaving the agent to guess which list tool applies to CR-backed resources.

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 when-to-use guidance, no prerequisites (e.g. discovery of the CRD first), and no named alternative. The agent gets no signal about how this differs from the many other k8s_list_* siblings in the catalog.

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