Skip to main content
Glama
Flux159
by Flux159

kubectl_context

Read-only

Manage Kubernetes contexts by listing all available, getting the current, or switching to a different one.

Instructions

Manage Kubernetes contexts - list, get, or set the current context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesOperation to perform: list contexts, get current context, or set current contextlist
nameNoName of the context to set as current (required for set operation)
showCurrentNoWhen listing contexts, highlight which one is currently active
detailedNoInclude detailed information about the context
outputNoOutput formatjson
Behavior1/5

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

The description includes a 'set' operation, which is a write action, but annotations declare readOnlyHint: true. This is a direct contradiction, misleading the agent about the tool's side effects.

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?

Single sentence clearly stating the high-level verb and specific operations. No wasted words, front-loaded with main purpose.

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?

The description omits details like return values (no output schema), the meaning of 'detailed', and usage of 'output' formats. The contradiction with annotations further reduces completeness.

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 descriptions cover all 5 parameters with clear meanings, defaults, and enums. The description adds no additional semantic value beyond what is already in 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?

The description clearly identifies the tool's purpose: managing Kubernetes contexts with specific operations (list, get, set). It distinguishes from sibling tools which are other kubectl operations like apply, get, logs.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool vs alternatives. While it's the only context tool among siblings, the description lacks context about prerequisites or when set vs list is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Flux159/mcp-server-kubernetes'

If you have feedback or need assistance with the MCP directory API, please join our Discord server