Skip to main content
Glama

Remove container

k8s_remove_container
Destructive

Remove a Kubernetes container by ID, optionally forcing deletion and confirming the destructive action, to clean up workloads in a specified or default context.

Instructions

Invoke the remove_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": {
      "container_id": "<container_id>"
    },
    "name": "k8s_remove_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
container_idYes

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 destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that — no statement about what is destroyed, whether dependent resources are affected, or how force behaves. With annotations doing all the work, this is a minimal but non-contradictory entry.

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 sentence, but it is empty rather than concise — it conveys no information beyond the tool name. Brevity here reflects under-specification, not efficiency.

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 destructive, open-world mutation with four parameters and no output schema, the definition should explain the required identifier, the meaning of force versus confirm, and the effect of removal. Nearly all of that is absent, leaving the annotations to carry the entire burden.

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 coverage is only 50%: confirm and context have descriptions, but container_id and force are undocumented in both schema and description. The description compensates for none of this gap, giving no hint of what force does or what container_id format is expected.

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 a tautology: "Invoke the remove_container operation" restates the name and title without specifying the resource acted on (a Kubernetes container) or the effect of removal. It never differentiates itself from the numerous sibling remove tools (docker_remove_container, podman_remove_container, k8s_remove_image, k8s_stop_container).

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 mention of prerequisites (does the container need to be stopped first?), and no reference to alternatives such as k8s_stop_container. The agent must infer everything 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