Skip to main content
Glama
razvanmacovei

Multi Cluster Kubernetes MCP Server

k8s_pod_exec

Execute commands inside a running Kubernetes pod container. Supports container selection for multi-container pods and quoted arguments.

Instructions

Execute a command inside a running container. Supports quoted arguments (e.g., 'ls -la "/my dir"'). Specify container for multi-container pods. Defaults to the 'default' namespace if not specified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttyNo
stdinNo
commandYes
contextYes
timeoutNo
pod_nameYes
containerNo
namespaceNo
Behavior2/5

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

No annotations provided, so description carries full burden. It mentions quoted arguments but does not disclose important behavioral details like interaction mode (TTY/stdin), timeout handling, or any side effects. Mutation implied but not clarified.

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?

Two sentences, front-loaded with key action. No redundancy, but could be more structured (e.g., list guidance points). Efficient but slightly terse.

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?

Covers basic use case and common parameters but lacks output description, error handling, and security/authentication context. With 8 parameters and no annotations or output schema, more completeness would help.

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 0%, and description adds meaning for command, container, namespace (e.g., quoted arguments, default namespace). However, parameters like tty, stdin, timeout, context, and pod_name remain undocumented despite needing clarification.

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 states 'Execute a command inside a running container' with a specific verb and resource. It distinguishes this tool from sibling tools like k8s_get_pod_logs (logs) and k8s_run_pod (create pod).

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?

Provides some guidance: 'Specify container for multi-container pods' and namespace default, but lacks explicit when-not-to-use conditions or alternatives (e.g., use k8s_get_pod_logs for logs). No mention of prerequisites or context selection.

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/razvanmacovei/k8s-multicluster-mcp'

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