Skip to main content
Glama

Prune networks

podman_prune_networks
Destructive

Removes unused Podman networks to free resources and eliminate stale network configurations. Use it to clean up orphaned networks after containers or stacks are deleted.

Instructions

Invoke the prune_networks 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": "podman_prune_networks"
  }
}

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.1/5.0
Behavior2/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is known from structured data. The description adds nothing beyond that: it does not say which networks are eligible for pruning, whether in-use networks are spared, or whether the action is reversible.

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?

The sentence is short and front-loaded, using only nine words, so there is no bloat. However, brevity here comes from under-specification rather than disciplined editing, so it does not earn a higher score.

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, unconfirmed-by-default operation with no output schema, the description should at minimum state what is removed and what happens to networks still in use. That context is entirely missing, leaving the annotations to carry nearly the whole burden.

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?

There is a single parameter and schema description coverage is 100%, with the confirm flag fully documented in the schema itself. Per the baseline rule for high coverage, a 3 is appropriate; the description contributes no additional parameter meaning.

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_networks operation" only restates the tool name and title in verb form; it never says what a 'network prune' actually removes (unused networks, dangling networks, etc.). An agent cannot distinguish its scope from siblings like podman_prune_system or podman_list_networks based on this text 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 mention of alternatives such as podman_prune_system (which may also prune networks) or podman_list_networks for inspection first. For a destructive operation, the total absence of routing guidance is a real risk.

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