Skip to main content
Glama

Sync configmap from file

k8s_sync_configmap_from_file

Sync a Kubernetes ConfigMap from a local file to keep cluster configuration current. Specify the ConfigMap name, namespace, and file path to apply file-based config changes.

Instructions

Sync ConfigMap from a file.

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>",
      "file_path": "<file_path>"
    },
    "name": "k8s_sync_configmap_from_file"
  }
}

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.
file_pathYes
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.1/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, which tell the agent this is a write to a live cluster. The description adds nothing beyond that: it does not say whether an existing ConfigMap's keys are overwritten or merged, what happens on key conflicts, or whether the file must be valid YAML/JSON.

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?

The single sentence is front-loaded and free of padding, but it is under-specified rather than genuinely concise. Brevity here comes at the cost of information the agent needs.

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?

This is a mutating cluster operation with no output schema and three of four parameters undocumented. For that complexity level the description should at minimum explain overwrite semantics and the file format, neither of which is present.

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 the 'context' parameter carries a schema description (25% coverage), leaving name, namespace, and file_path undocumented. The description's mention of 'file' hints at file_path but specifies no path resolution rules, expected format, or whether namespace refers to the target or source.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description "Sync ConfigMap from a file" only restates the tool name and title, adding the word 'file' as the source. It does not clarify whether this creates a new ConfigMap, updates an existing one, or reconciles drift — distinctions that matter given siblings like k8s_create_configmap and k8s_compare_configmap_state.

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, no exclusions, and no mention of alternatives such as k8s_create_configmap for initial creation or k8s_compare_configmap_state for read-only comparison. The agent must infer the choice from the name alone.

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