Skip to main content
Glama

Podman system prune

podman_system_prune
Destructive

Prune unused Podman resources with podman system prune -f to reclaim disk space by removing stopped containers, unused images, networks, and build cache; confirm the destructive action when required.

Instructions

Prune unused resources via podman system prune -f.

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": "podman_system_prune"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered structurally. The description adds that it runs with '-f', implying a forced, non-interactive removal, but it does not disclose what will actually be deleted, whether volumes or build cache are included, or that the operation is irreversible. With annotation coverage the lower bar applies, so this is adequate but thin.

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

Conciseness4/5

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

One short sentence, front-loaded with the verb, with no wasted words. Brevity is appropriate for a simple tool, though the terseness contributes to the missing scope detail.

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 destructive, open-world operation with no output schema, so the description must carry the burden of telling the agent what will be removed. It never enumerates the affected resource classes or warns about irreversibility, which is a material gap for a prune-everything command.

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 coverage is 100% and the single 'confirm' parameter is fully documented in the schema, so the baseline is 3. The description's '-f' reference tangentially relates to the non-interactive confirmation path but does not add meaning beyond the schema's own explanation.

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

Purpose3/5

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

The description gives a specific verb ('prune') and a resource ('unused resources'), and it names the underlying CLI command, which helps. But 'unused resources' is vague: it never says whether that means stopped containers, dangling images, unused networks, build cache, or volumes, and it does nothing to distinguish this from the sibling-specific prunes such as podman_prune_containers or podman_prune_volumes.

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 rather than the per-resource prune siblings, no mention of prerequisites or safety context. The only hint is the '-f' flag embedded in the command string, which is not framed as usage guidance for the agent.

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