Skip to main content
Glama

Prune networks

k8s_prune_networks
Destructive

Prune unused Kubernetes networks to free resources and keep cluster networking clean. Confirm the destructive operation when the client cannot answer prompts.

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

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

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

Annotations already disclose destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds nothing beyond that: it does not clarify whether unused networks are deleted, whether in-use networks are spared, whether the action is reversible, or what the response contains. With annotations carrying the whole burden, a low score is warranted for zero added context.

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 under-specified rather than concise; it occupies the space where the actual behavior should be explained. There is no front-loaded statement of effect, only a restatement of the identifier.

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 destructive, open-world mutation with no output schema, and the description supplies no information about scope, impact, or result. An agent could not determine from this text alone whether invoking it is safe in a given situation, which is exactly what a destructive tool's description must establish.

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%, and both parameters (confirm, context) carry self-explanatory descriptions, so the baseline of 3 applies. The description itself contributes no additional meaning about the confirmation prompt or context pool resolution.

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 prune_networks operation" merely restates the tool name and title. It never says what pruning a network actually does, which networks are eligible for removal, or how k8s_prune_networks differs from the docker_ and podman_ variants listed as siblings.

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 stated prerequisite, and no mention of when to prefer k8s_list_networks or the docker/podman equivalents. The only routing signal available to an agent is the tool name itself.

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