Skip to main content
Glama

k8s__diff_resource

Compare current Kubernetes resource state against the last-applied-configuration annotation to detect drift.

Instructions

Compare current resource state against last-applied-configuration annotation to show drift

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesResource name
namespaceNoNamespace (default: default)
resourceTypeYesResource type: deployment, service, configmap, statefulset, daemonset
Behavior2/5

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

No annotations exist, so the description carries full burden. It states the tool compares to show drift but does not disclose whether it is read-only, what happens if annotation is missing, or other behavioral traits like return format or authentication requirements.

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?

The description is a single sentence, concise and to the point. However, it could be slightly improved by front-loading the core action.

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?

The description lacks details on output format, expected drift representation, prerequisites, and error cases. Given no output schema and a diff operation, this is insufficient for an agent to fully understand the tool's behavior.

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 baseline is 3. The description adds context about the comparison target (last-applied-configuration) but does not enhance parameter-specific meaning beyond the schema's simple descriptions.

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 the tool compares current resource state against last-applied-configuration to show drift, which is specific and distinguishes from sibling tools like k8s__describe_resource.

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 usage for drift detection but does not provide explicit when-to-use or when-not-to-use guidance, nor does it mention alternatives or prerequisites like the resource having the last-applied annotation.

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/NotHarshhaa/devops-mcp'

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