Skip to main content
Glama
razvanmacovei

Multi Cluster Kubernetes MCP Server

k8s_apply_resource

Apply a Kubernetes resource configuration to create or update it, similar to 'kubectl apply', across multiple clusters.

Instructions

Apply a configuration to a resource (create if it doesn't exist, update if it does). Similar to 'kubectl apply'. The content must include apiVersion, kind, and metadata with name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYes
namespaceNo
yaml_contentYes
Behavior3/5

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

Discloses core behavioral trait (declarative create/update) and required content structure. With no annotations, more details about permissions, idempotency, and error handling would improve transparency.

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 sentences convey the purpose and a key constraint with no wasteful words. Front-loaded with the primary action.

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?

Adequate for a basic apply operation given the input schema, but lacks return value description, validation details, and error behaviors. With no output schema, more context on expected outcome would be beneficial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only yaml_content receives extra meaning (must include apiVersion, kind, metadata with name). Context and namespace are left undocumented. With 0% schema coverage, the description should elaborate on all parameters.

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 applies a configuration, creating or updating resources, and mentions required fields in the content. It distinguishes from siblings like k8s_create_resource and k8s_patch_resource by using 'apply' terminology but could be more explicit about when to use this over alternatives.

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 k8s_create_resource or k8s_patch_resource. The reference to 'kubectl apply' provides some context but does not specify conditions or exclusions.

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