Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

prune_networks

Destructive

Deletes all unused networks not connected to any containers. This action is irreversible.

Instructions

Removes all networks not connected to any containers. WARNING: irreversible.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4.2/5.0
Behavior4/5

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

The destructiveHint annotation already signals a delete-like operation, and the description adds real value on top by narrowing the blast radius (only unattached networks survive) and flagging irreversibility in caps. It stops short of saying what happens on partial failure or whether the operation is idempotent, but the key risk context is present.

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?

Two short sentences, scope first and warning second, with no filler. The warning being a trailing fragment is slightly terse but appropriate for a destructive zero-arg call where the agent should see the risk immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, single-purpose prune with destructiveHint set and an output schema available for return values, the description covers everything needed to call it safely: what it removes, which resources are exempt, and that it cannot be undone.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing beyond the schema to explain; the baseline for a no-param schema is 4. The description correctly spends no words on inputs and instead spends them on scope and risk.

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

Purpose5/5

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

The description states a specific verb (removes) and resource (networks) plus a precise scope qualifier: only networks not connected to any containers. That qualifier alone separates it from sibling prunes such as prune_containers and prune_volumes without needing to inspect schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The criterion 'not connected to any containers' implicitly tells an agent when the tool is applicable, but there is no explicit when-to-use versus when-not guidance and no mention of prerequisites or a nondestructive alternative (e.g., inspect_network or delete-by-name flows). Usage is inferable, not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.