Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

prune_images

Destructive

Removes unused container images to reclaim disk space; irreversible. Set remove_all to delete all unreferenced images, not just dangling ones.

Instructions

Removes unused images to reclaim disk space. WARNING: irreversible. Set remove_all=True to remove all unreferenced images (not just dangling ones).

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_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
remove_allNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety bar is partly covered, but the description adds genuinely new information: the operation is irreversible and the default scope is narrower than the opt-in scope. It does not mention whether a confirmation step or any auth is required, so it stops short of a 5.

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

Conciseness5/5

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

Three short sentences: purpose, an unmissable WARNING, then the parameter rule. Every sentence earns its place and the risk is prominent without burying the operational detail.

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

Completeness4/5

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

For a single-flag destructive tool with an output schema and destructiveHint annotation, the description covers purpose, risk, and the only parameter's behavior. Minor residual gaps (confirmation behavior, whether in-use images are protected) are acceptable given the annotations and output schema.

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?

Schema coverage is 0% for the single parameter, so the description must carry the meaning — and it does, explaining that remove_all=True broadens the target set to all unreferenced images and implying the default is dangling-only. That is the critical semantic an agent needs before invoking a destructive call.

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

Purpose4/5

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

States a specific verb and resource ('Removes unused images') plus the outcome ('reclaim disk space'), which separates it from prune_containers/prune_networks/prune_volumes by resource. It also clarifies scope: default targets dangling images, while remove_all targets all unreferenced images. It does not explicitly name a sibling to route away from, keeping it short of a 5.

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

Usage Guidelines4/5

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

Gives clear context for use (reclaiming disk space) and an explicit decision rule for the one option: set remove_all=True only if you want all unreferenced images, not just dangling ones. It lacks explicit when-not-to-use guidance or a pointer to list_images for inspection before pruning.

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