Skip to main content
Glama
Flux159
by Flux159

kubectl_apply

Destructive

Apply Kubernetes YAML manifests from a string or file, with support for dry-run validation and forced resource removal.

Instructions

Apply a Kubernetes YAML manifest from a string or file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
manifestNoYAML manifest to apply
filenameNoPath to a YAML file to apply (optional - use either manifest or filename)
namespaceNoKubernetes namespacedefault
dryRunNoIf true, only validate the resource, don't actually execute the operation
forceNoIf true, immediately remove resources from API and bypass graceful deletion
contextNoKubeconfig Context to use for the command (optional - defaults to null)
Behavior2/5

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

The description does not disclose traits beyond the 'destructiveHint: true' annotation. It does not explain that 'apply' can create or modify resources, or that it may cause resource deletion if omitted from the manifest.

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?

The description is a single sentence of 9 words, highly concise with no wasted information.

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?

With 6 parameters, no output schema, and a complex operation, the description is insufficient. It lacks details on return values, prerequisites, error handling, and the distinction between manifest and filename usage.

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 coverage is 100%, so baseline is 3. The description adds no meaning beyond the schema; it only mentions 'from a string or file' without detailing parameter usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (Apply) and resource (Kubernetes YAML manifest), with source options (string or file). It distinguishes from siblings like 'kubectl_create' by implying a declarative operation, but does not explicitly contrast.

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?

The description implies use when applying manifests, but provides no guidance on when to use over siblings or when not to. No alternatives or exclusio ns are mentioned.

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