Skip to main content
Glama
dockndevai

mcp-kubernetes

by dockndevai

List namespaces

list_namespaces

Retrieve namespaces in a Kubernetes cluster, filtering out any outside the configured allowlist. View only permitted namespaces to enable safe, scoped cluster inspection.

Instructions

List namespaces in the cluster. Namespaces outside the allowlist are filtered out.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNokube-config context to target (defaults to current-context)
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It explicitly discloses that namespaces outside the allowlist are filtered out—a non-obvious behavioral restriction for a list operation. It does not describe return formatting or pagination, but for a basic read-only list tool this is a meaningful behavioral disclosure.

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?

Two short sentences carry all the information: a clear action in the first sentence and a key behavioral constraint in the second. There is no filler, and the most important information is front-loaded.

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

Completeness4/5

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

Given the tool's simplicity—a single optional parameter, no output schema, and no annotations—the description covers the essential purpose and a meaningful filtering restriction. It does not provide broader context about cluster access or when to branch to other tools, but it is sufficient for invoking this list operation correctly.

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%: the single 'context' parameter is already documented in the input schema as the kube-config context to target and its default. The tool description adds no parameter-specific details, so the baseline of 3 is appropriate.

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 names the verb ('List') and the resource ('namespaces') with explicit cluster scope, and adds the allowlist-filtering behavior. This clearly distinguishes it from sibling tools like list_contexts, list_pods, and get_resource by resource type.

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?

The description does not prescribe when to use this tool versus alternatives, nor does it mention list_contexts, get_namespace, or other resources. The only signal is the allowlist filter, which implies current-access-limited usage but gives no explicit when-to-use/when-not-to-use guidance.

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/dockndevai/mcp-kubernetes'

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