Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

prune_containers

Destructive

Remove all stopped containers to reclaim disk space. This action is irreversible, so use it only when those containers are no longer needed.

Instructions

Removes all stopped containers to reclaim disk space. WARNING: this is 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_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A3.9/5.0
Behavior4/5

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

The destructiveHint annotation already signals a delete operation, and the description earns credit beyond that by disclosing irreversibility and the important scope constraint that only stopped containers are affected, which means running workloads survive. It does not mention daemon prerequisites or whether the operation can be scoped/undone in any way, but with annotations covering the safety profile this is solid 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.

Conciseness5/5

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

Two sentences, zero filler, and the irreversible warning is placed prominently after the core purpose statement. Every clause carries information an agent needs before invoking.

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 zero-parameter bulk cleanup with destructiveHint set and an output schema present, the definition covers purpose, scope, and risk. A brief note on whether the call fails when no stopped containers exist would round it out, but nothing essential for correct invocation is missing.

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 the baseline is 4. The description correctly implies a no-argument bulk operation, so there is no parameter meaning an agent could misread.

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 ("Removes") and a precise resource scope ("all stopped containers") plus the reason (reclaim disk space). It is clear enough to separate from prune_images/prune_networks/prune_volumes by name, but it never explicitly contrasts itself with the single-container sibling clean_container.

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?

Usage is only implied by the scope phrase "all stopped containers to reclaim disk space" – an agent can infer that running containers are untouched and that this is a bulk cleanup. There is no explicit when-to-use, when-not-to-use, or named alternative for removing one specific container.

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