Skip to main content
Glama

Compare configmap state

k8s_compare_configmap_state

Compare a Kubernetes ConfigMap's current data against expected values to detect drift and verify configuration state.

Instructions

Compare ConfigMap state with expected data.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "namespace": "<namespace>",
      "expected_data": "<expected_data>"
    },
    "name": "k8s_compare_configmap_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceYes
expected_dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, and the description adds nothing about what a comparison actually does — whether it returns a diff, a boolean, or raises on mismatch, and whether the live object is mutated. There is also a mild tension between 'Compare' (which reads like a read) and readOnlyHint=false, though that annotation is not a positive claim of mutation, so it is not a hard contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with the key noun phrase front-loaded and no filler, so it is structurally clean. However, the brevity comes at the cost of under-specification rather than earning its place through density of useful 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?

For a four-parameter tool with a nested free-form object and no output schema, the definition leaves the agent guessing about return shape (diff vs boolean), mismatch semantics, and whether extra live keys are tolerated. Given no output schema, the description needed to carry more of that burden than one sentence.

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?

Schema description coverage is only 25% (only 'context' is documented), and the description adds no meaning for the other three parameters. Most critically, it never explains whether 'expected_data' must match the ConfigMap exactly or is a partial subset — a distinction that completely changes how an agent builds the call.

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 names a specific verb ('Compare') and resource ('ConfigMap state') and states the comparison target ('expected data'), so an agent can tell it is a verification/diff operation rather than a create or sync. It does not differentiate itself from adjacent tools such as the state-hash or sync tools, and 'state' versus 'expected data' is slightly muddled about what exactly is compared.

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?

There is no when-to-use guidance: nothing says whether this is for pre-flight validation, drift detection, or CI assertions, and no alternative tool is named for the adjacent 'just fetch the live ConfigMap' case. No prerequisites (target namespace/context must exist, cluster reachability) are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools