Skip to main content
Glama

List Csr

cm_k8s_cluster_list_csr
Read-onlyIdempotent

Lists Kubernetes CertificateSigningRequests (CSRs) to inspect pending, approved, or denied certificate requests for cluster access and security review.

Instructions

List csr (cm_k8s_cluster). Manage Kubernetes cluster resources (nodes, contexts, CSRs, API resources, cluster info, admission plugins).

The save_context action registers a NEW Kubernetes environment into the kubeconfig container-manager-mcp reads so it can be reused later (via use_context / CONTAINER_MANAGER_KUBECONTEXT / K8S_CONTEXTS). Four input modes, non-destructive (a context-name collision errors unless overwrite): token (context_name + server + token + ca_cert or insecure_skip_tls_verify), mTLS (context_name + server + client_cert + client_key + ca_cert), oidc (context_name + server + username + password + oidc_issuer + oidc_client_id — drives an OIDC password-grant login and embeds the id-token; the API server has no basic auth, so this REQUIRES the OIDC params and fails clearly otherwise), and import (source_file/ source_yaml to merge an existing kubeconfig, or capture_current=True to export the cluster you are currently on). namespace is optional. With use it becomes current-context; with validate the saved context is loaded and node count returned.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cm_k8s_cluster_list_csr"
  }
}

Input Schema

NameRequiredDescriptionDefault
useNosave_context: set current-context to the saved context
nameNoResource name (API resource, plugin)
tokenNosave_context (explicit): bearer token for authentication
reasonNoReason for deny_csr
serverNosave_context (explicit): API server URL, e.g. https://10.0.0.10:6443
taintsNoTaints for taint_node
ca_certNosave_context (explicit): cluster CA cert as a file path or PEM text
affinityNoAffinity configuration for set_node_affinity
csr_nameNoCertificateSigningRequest name
passwordNosave_context (oidc): password for the OIDC resource-owner password grant
pod_nameNoPod name for affinity operations
usernameNosave_context (oidc): username for an OIDC-backed cluster (requires oidc_issuer + oidc_client_id; the API server has no basic auth)
validateNosave_context: after saving, load the context and list_nodes to validate reachability
namespaceNoTarget namespace for affinity operations
node_nameNoNode name for node operations
overwriteNosave_context: replace an existing context on name collision (default: error)
taint_keyNoTaint key for untaint_node
client_keyNosave_context (explicit): client key as a file path or PEM text
output_dirNoOutput directory for cluster_info_dump
client_certNosave_context (explicit): client cert as a file path or PEM text
oidc_issuerNosave_context (oidc): OIDC issuer URL, e.g. https://keycloak/realms/<realm>
plugin_typeNoPlugin type (validating/mutating)
source_fileNosave_context (import): path to an existing kubeconfig file to merge
source_yamlNosave_context (import): raw kubeconfig YAML to merge
context_nameNoContext name
manager_typeNoContainer manager: kubernetes (default: auto-detect)
anti_affinityNoAnti-affinity configuration for set_pod_anti_affinity
test_resourceNoTest resource for test_cluster_plugin
oidc_client_idNosave_context (oidc): OIDC client id used for the login
capture_currentNosave_context (capture): export the cluster cm is currently on and save it under 'context_name'
kubeconfig_pathNosave_context: target kubeconfig to write (default: $KUBECONFIG first entry, else ~/.kube/config)
new_context_nameNoNew context name for rename_context
oidc_client_secretNosave_context (oidc): OIDC client secret for confidential clients (optional)
grace_period_secondsNoGrace period for drain (default: 120)
insecure_skip_tls_verifyNosave_context (explicit): skip TLS verification instead of pinning a CA

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered structurally. The description adds nothing about the list operation itself (cluster-scoped vs namespaced, volume of CSRs, whether pending CSRs are included), and instead spends its words describing save_context's kubeconfig-write semantics, which is irrelevant and mildly at odds with the read-only framing of this tool.

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

Conciseness2/5

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

It is front-loaded with the correct one-liner, but everything after it is bulk boilerplate about save_context that does not earn its place on a CSR listing tool. The result is long yet uninformative for the advertised operation, and the useful signal is buried under irrelevant detail.

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

Completeness1/5

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

For a read-only listing tool with an output schema, the description should at minimum confirm the scope and any filtering behavior; instead it documents a different action entirely. An agent gets no confirmation of what this call returns or how it relates to the CSR approve/deny lifecycle, so the description is inadequate relative to the tool's role.

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

Parameters3/5

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

Schema description coverage is 100% and every one of the 35 properties is documented inline, so the schema carries parameter meaning; baseline 3 applies. The description elaborates on save_context parameters (token, client_cert/client_key, oidc_*, source_file, capture_current) but says nothing about the parameters actually relevant here, such as csr_name or name filtering.

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

Purpose2/5

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

The first clause "List csr (cm_k8s_cluster)" does name a verb and resource, but it is a bare restatement of the title with no scope, filters, or distinction from CSR siblings like k8s_approve_csr/k8s_deny_csr. The remaining ~90% of the text describes a completely different operation (save_context), so an agent reading top-to-bottom would form the wrong impression of what this tool does.

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 at all on when to call this CSR listing versus approving (k8s_approve_csr), denying (k8s_deny_csr), or inspecting cluster state. The only when/how guidance present (four save_context input modes) applies to a sibling tool's action, which points the agent in the wrong direction rather than clarifying choice.

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