Skip to main content
Glama

Get config

k8s_get_config
Read-onlyIdempotent

Retrieve kubeconfig information for Kubernetes cluster access, optionally targeting a named context in a multi-context pool.

Instructions

Get kubeconfig information.

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": "k8s_get_config"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/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, and openWorldHint=true, so safety is fully covered structurally. The description adds nothing beyond that: it does not say whether credential material can be returned (a meaningful concern for kubeconfig data), whether output is redacted, or what form the config takes. All behavioral context must come from the annotations.

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?

One short sentence with no wasted words, but the brevity comes at the cost of under-specification rather than efficiency. There is no front-loaded scope statement or return-value hint to anchor the agent.

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

Completeness3/5

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

The tool is simple (one optional parameter, rich annotations, no output schema), so not much is required. However, for a config-fetching tool the description should at minimum indicate what portion of kubeconfig is returned and whether sensitive fields appear; that gap keeps it at minimum viable.

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?

Only one optional parameter exists and its schema description is 100% covered, including the cross-reference to cm_multi_context list_contexts and default-context behavior. Per the high-coverage baseline, a 3 is appropriate; the description itself contributes no additional meaning about the context parameter.

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?

States a verb ("Get") and a resource ("kubeconfig information"), so the domain is identifiable, but it never says what the retrieved information contains (current context, full context list, cluster/user entries) or how it differs from siblings like k8s_get_cluster_info or k8s_get_api_server_info. The scope is left vague enough that an agent cannot confidently choose this tool over those neighbors.

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 prerequisite (e.g., whether a kubeconfig must already exist), and no mention of alternatives among the many k8s_get_* tools. The only routing hint lives in the schema's parameter description pointing at cm_multi_context list_contexts, not in the tool description itself.

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