Skip to main content
Glama

Prune containers

k8s_prune_containers
Destructive

Remove unused Kubernetes containers to reclaim resources and reduce clutter in a cluster context. Confirm the destructive prune operation explicitly when running it.

Instructions

Invoke the prune_containers operation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_prune_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already state destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the description is not obliged to repeat the safety profile, but it adds nothing beyond them — no indication of which containers get removed, whether running containers are spared, or whether the action is irreversible. It does not contradict the annotations, but it contributes no behavioral context of its own.

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?

The single sentence is short but content-free; it is under-specification rather than effective conciseness. Nothing is front-loaded because there is nothing informative to front-load.

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 operation with no output schema, an agent needs to know scope and effect, and the description supplies neither. The annotations and schema cover safety and confirm semantics, which mitigates the gap, but the core behavior remains unexplained.

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

Parameters3/5

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

Schema description coverage is 100%, with both confirm and context fully documented in the schema, so the schema carries the semantics. The description adds no meaning beyond that baseline.

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 prune_containers operation" restates the tool name without adding meaning; it is a tautology rather than an explanation of what pruning containers does. It also gives no differentiation from siblings such as docker_prune_containers, podman_prune_containers, or k8s_prune_images, so an agent cannot tell which one to pick from this text.

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 prerequisites, and no exclusion or alternative named. The sibling set contains many near-identical prune tools, and the description offers nothing to select between 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