Skip to main content
Glama
sanjaypsachdev

OpenShift MCP Server

oc_patch

Apply targeted updates to OpenShift resources using strategic merge, JSON merge, or JSON patch operations, with dry-run and force options.

Instructions

Patch OpenShift resources with strategic merge, JSON merge, or JSON patch operations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the resource to patch
forceNoForce the patch operation, ignoring conflicts
patchYesPatch content as JSON string or YAML. For strategic merge patch (default), provide the fields to update. For JSON patch, use RFC 6902 format.
dryRunNoPerform a dry run without making actual changes
contextNoOpenShift context to use (optional)
namespaceNoNamespace/project for the resource (not required for cluster-scoped resources)default
patchTypeNoType of patch operationstrategic
subresourceNoSubresource to patch (e.g., status, scale)
fieldManagerNoField manager name for server-side apply trackingmcp-openshift-client
resourceTypeYesType of resource to patch (pod, deployment, service, route, configmap, secret, etc.)
recordHistoryNoRecord the patch operation in the resource annotation for rollback purposes
Behavior2/5

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

There are no annotations, so the description bears full responsibility for behavioral disclosure. It states that the tool patches resources, implying modification, but does not disclose that it mutates existing resources, may require specific permissions, can be dangerous with force, or that dryRun is available. Deeper behavioral context is absent.

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, front-loaded sentence that directly states the purpose. It contains no redundant words and efficiently conveys the core functionality.

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 11 parameters, no annotations, and no output schema, the description is too sparse to give a complete picture. It lacks information about return values, side effects, error scenarios, or practical examples, leaving the agent to infer most behavioral context from the schema alone.

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?

Input schema coverage is 100%, so the baseline is 3. The description adds a little value by explicitly naming the three patch types, which maps to the patchType parameter, but it does not add syntax or usage details beyond what the schema already documents.

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 tool's action ('Patch') and resource scope ('OpenShift resources'), and names the three patch operation types (strategic merge, JSON merge, JSON patch). It is specific enough to distinguish from create/delete/scale, but does not explicitly contrast with sibling tools like oc_apply, which also modifies resources.

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 provides no guidance on when to use this tool versus alternatives such as oc_apply, oc_create, or oc_scale. There is no mention of prerequisites, typical use cases, or when to choose a specific patch type.

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/sanjaypsachdev/mcp-server-openshift'

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