Skip to main content
Glama

Run container

k8s_run_container

Runs a Kubernetes container from a specified image with optional name, ports, environment variables, volumes, labels, and command, enabling agents to deploy workloads on demand.

Instructions

Invoke the run_container operation.

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": {
      "image": "<image>"
    },
    "name": "k8s_run_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
imageYes
portsNo
detachNo
labelsNo
commandNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
volumesNo
environmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.6/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 description only needs to add context such as cluster effects, detach semantics, or permission needs. Instead it adds nothing beyond a restatement of the operation name. It does not contradict the annotations, but it also contributes no behavioral signal.

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

Conciseness2/5

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

One short sentence with no padding, but it is under-specified rather than concise. Nothing about it is front-loaded because there is nothing to front-load.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a nine-parameter resource-creation tool with no output schema and minimal annotations. The description provides none of the information needed to invoke it correctly, so it falls far short of the complexity of the tool.

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?

Nine parameters, and only the context parameter carries a schema description at 11% coverage. The description does not explain image, ports, detach, labels, command, volumes, or environment, so most parameters are undocumented in both schema and description.

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?

"Invoke the run_container operation" restates the name and title without saying what the operation does. It never mentions containers, Kubernetes pods, or how it differs from the docker_run_container/podman_run_container siblings, so an agent cannot distinguish it from siblings on the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/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 prerequisites, and no named alternative. The sibling list shows three near-identical run_container tools across docker, podman, and k8s, and the description gives no basis for choosing among them.

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