Skip to main content
Glama

issue_tkc_kubeconfig

Idempotent

Generate a kubeconfig for one Tanzu Kubernetes Cluster (TKC) so users can authenticate with kubectl. Provide the cluster name and namespace, and optionally an output file path.

Instructions

[WRITE] Credential access: issue a kubeconfig for one TKC cluster.

Call only when the user explicitly asks for this kubeconfig; never as a side step. Returns {cluster, kubeconfig}, or {cluster, written_to} when output_path is given. The kubeconfig embeds a Supervisor bearer token (JWT from /wcp/login) that acts as the configured vCenter account until the JWT expires (typically hours; not tied to this process) — always pass output_path so the token never enters agent context, and report only the path. Nothing in the managed cluster changes, but output_path creates parent directories and truncates the named file (owner-only, 0600), so output_path='~/.kube/config' replaces the user's own kubeconfig. Run list_tkc_clusters first for name and namespace; use issue_supervisor_kubeconfig instead for Supervisor-level access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTKC cluster name.
targetNovCenter in config.yaml; omit for the default.
namespaceYesNamespace holding it.
output_pathNoFile to write, e.g. '~/.kube/my.yaml'. Omit to return the kubeconfig inline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true): it discloses the embedded Supervisor JWT bearer token and its expiry, recommends output_path to keep the token out of agent context, and warns that output_path creates parent dirs and truncates the file at 0600 (e.g. '~/.kube/config' clobbers the user's kubeconfig). One mild tension worth noting: it describes a file overwrite while destructiveHint=false, but the description explicitly scopes that claim ('Nothing in the managed cluster changes') and its disclosure makes the risk visible rather than hiding it, so this is added safety context, not a contradiction.

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?

Front-loaded with the [WRITE] credential-access label and the core action in the first line, and the routing/alternative guidance is in the final line. Dense parentheticals and em-dash clauses make it heavy to scan, but essentially every sentence carries unique, load-bearing information.

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

Completeness5/5

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

No output schema exists, yet the description states the return shape both ways ({cluster, kubeconfig} vs {cluster, written_to}), documents the credential's lifetime, the safety-relevant side effects, and the required sequencing. An agent has everything needed to call this correctly and handle the result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description still adds value beyond the schema for output_path (creates parent directories, truncates the target, writes owner-only 0600, and the strong 'always pass output_path' recommendation) and states the return-shape difference between providing and omitting it. 'target' is left entirely to the schema, so it is not a full 5.

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?

Specific verb+resource+scope: 'issue a kubeconfig for one TKC cluster', tagged [WRITE] and 'Credential access'. It explicitly distinguishes itself from the closest sibling by naming issue_supervisor_kubeconfig as the Supervisor-level alternative, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when ('only when the user explicitly asks') and when-not ('never as a side step'), names the prerequisite ('Run list_tkc_clusters first for name and namespace'), and names the alternative for the adjacent use case. Nothing is left to inference.

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