Skip to main content
Glama

issue_supervisor_kubeconfig

Idempotent

Issue a kubeconfig for a specific Supervisor Namespace’s Kubernetes API, writing the credential to a file path to keep its bearer token out of agent context.

Instructions

[WRITE] Credential access: issue a kubeconfig for the Supervisor K8s API.

Call only when the user explicitly asks for this kubeconfig; never as a side step. Returns {namespace, kubeconfig} as a YAML string, or {namespace, 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. The file is created owner-only (0600). For TKC workloads, see issue_tkc_kubeconfig and its vSphere 9.1 limitation before issuing a guest-cluster credential.

Input Schema

NameRequiredDescriptionDefault
targetNovCenter in config.yaml; omit for the default.
namespaceYesvSphere Namespace to set as the kubeconfig context.
output_pathNoFile to write, e.g. '~/.kube/supervisor.yaml'. Omit to return the kubeconfig inline. Creates parent directories and truncates the file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the kubeconfig embeds a Supervisor bearer token (JWT from /wcp/login), that the token acts as the configured vCenter account until expiry, and that the credential lifetime is not tied to the process. It also documents the two distinct return shapes, the file mode (0600), and the security-sensitive recommendation to always use output_path; nothing here contradicts readOnlyHint=false or idempotentHint=true.

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

Conciseness5/5

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

Front-loads the operation type and purpose, then the gating rule, then return shapes, then the token-safety warning, then the sibling pointer. Dense but every clause carries actionable information, with no filler or repetition.

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?

With no output schema, the description supplies the return contracts ({namespace, kubeconfig} vs {namespace, written_to}), a security constraint, and a sibling escape hatch. For a credential-issuing write tool this covers everything an agent needs to invoke it safely.

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 already 100%, so the baseline is 3; the description still adds real meaning by explaining why output_path should be supplied (keeping the token out of agent context) and what to report back (only the path). It does not further explain the 'target' or 'namespace' parameters, leaving them to 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?

Opens with a bracketed operation type ('[WRITE]'), a specific verb ('issue') and a specific resource ('kubeconfig for the Supervisor K8s API'). It also explicitly distinguishes itself from issue_tkc_kubeconfig, so an agent can pick the right credential tool without inspecting 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 gating condition — 'Call only when the user explicitly asks for this kubeconfig; never as a side step' — plus a routing rule to issue_tkc_kubeconfig for TKC workloads. Both when-to-use and when-to-use-something-else are stated.

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