Skip to main content
Glama

Create configmap

k8s_create_configmap

Create a Kubernetes ConfigMap from key-value data or a file in a chosen namespace and context, making configuration available to your workloads.

Instructions

Create a ConfigMap.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the write/cluster-facing nature is known. The description adds nothing beyond them — no mention of namespace defaulting, overwrite behavior on an existing name, or what from_file does to the resulting object.

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?

A single short sentence with no wasted words, but its brevity comes from under-specification rather than efficiency. It is front-loaded by default yet carries no substantive 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 five-parameter mutation tool with 20% schema coverage and no output schema, the description should explain the data/from_file distinction and namespace behavior. None of that is present, so the definition is well short of what an agent needs to invoke it correctly.

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

Parameters1/5

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

Schema description coverage is only 20% across five parameters, so the description carries most of the burden — and it explains none of them. It says nothing about data vs. from_file, namespace defaulting, or the context parameter, leaving name as the only parameter an agent could reasonably infer.

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 is 'Create a ConfigMap.' — a verb plus resource that only restates the tool name and title. It gives no distinguishing detail against siblings such as k8s_sync_configmap_from_file or k8s_create_secret, so an agent learns nothing it did not already know from the name.

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 guidance on when to use this tool versus alternatives like k8s_sync_configmap_from_file or k8s_compare_configmap_state, and no stated preconditions. The only implied usage is 'you want a ConfigMap', which the name already conveys.

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