Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

clean_container

Destructive

Reclaim unused filesystem space in a running container and its named volumes without deleting the container or pruning resources.

Instructions

Reclaim unused filesystem space in one running container and its named volumes.

Requires CLI 1.4.1+. Mutates disk allocation, but does not delete the container or prune resources. The container must already be running.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "container_id": "<container_id>"
    },
    "name": "clean_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
container_idYes

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?

Annotations declare destructiveHint=true; the description adds real context beyond that by bounding the damage (disk allocation only, container survives, no pruning of resources) and stating a version prerequisite. It stops short of saying exactly what data is discarded (e.g. build cache vs. dangling layers) or whether the effect is reversible, which matters for a destructive operation.

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, front-loaded with the action and scope, then constraints. Nothing is redundant with the annotations or schema, and no sentence could be dropped without losing information.

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?

An output schema exists, so return values need not be described, and the tool is simple (one param). The preconditions and mutation scope are covered; the only meaningful omission is what specifically gets reclaimed and whether the agent should expect partial success or errors on a stopped container.

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?

One required parameter with 0% schema description coverage, so the description carries the burden. It implies a single running container is targeted and adds the 'must already be running' validity constraint, but never says whether container_id accepts a name or only an ID, nor what an invalid value returns.

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?

States a specific verb and resource: 'Reclaim unused filesystem space' scoped to 'one running container and its named volumes.' The clarifying clause 'does not delete the container or prune resources' distinguishes it from remove_container and any prune-style sibling without needing to name them.

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 preconditions: CLI 1.4.1+ and the container must already be running. The negative scoping ('does not delete the container or prune resources') implicitly tells the agent this is not the tool for removal, though it never explicitly names remove_container as the alternative for that case.

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