Skip to main content
Glama
htrixtec

MCP Server Kubernetes

by htrixtec

kubectl_patch

Destructive

Update fields of a Kubernetes resource using strategic merge, JSON merge, or JSON patch. Specify resource type, name, and patch data to modify configurations.

Instructions

Update field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resourceTypeYesType of resource to patch (e.g., pods, deployments, services)
nameYesName of the resource to patch
namespaceNoKubernetes namespacedefault
patchTypeNoType of patch to applystrategic
patchDataNoPatch data as a JSON object
patchFileNoPath to a file containing the patch data (alternative to patchData)
dryRunNoIf true, only validate the resource, don't actually execute the operation
contextNoKubeconfig Context to use for the command (optional - defaults to null)
Behavior3/5

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

Annotations already provide destructiveHint: true, indicating potential for state changes. The description adds that the tool uses three patch types (strategic, merge, json), which is useful but does not elaborate on side effects, reversibility, or idempotency. The description adds some value but does not fully disclose behavioral traits beyond annotations.

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?

Description is a single sentence of 14 words, front-loaded with the verb 'Update'. It is concise and avoids redundancy. However, given the tool's complexity (8 parameters, three patch types), a slightly longer description could improve clarity without becoming verbose. Still efficient.

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?

Despite 100% schema coverage and annotations, the description is too brief for a tool with 8 parameters, nested objects, an enum, and destructive behavior. It does not explain the purpose of dryRun, context, or patchFile vs patchData. The tool's complexity warrants more context than provided.

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%, so the schema already documents each parameter. The tool description adds no additional context (e.g., differences between patch types, when to use patchFile vs patchData). Baseline score of 3 is appropriate as description does not enhance parameter understanding.

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?

Description clearly states the verb 'Update' and the resource 'field(s) of a resource', specifying three patch types which differentiate it from sibling tools like kubectl_apply (full resource update) or kubectl_delete (deletion). This is a specific verb+resource combination with clear differentiation.

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?

No explicit guidance on when to use this tool versus alternatives like kubectl_apply or kubectl_create. The description does not mention scenarios, prerequisites, or when not to use it. The agent must infer usage from the tool name and context alone.

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

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