Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

remove_container

Destructive

Delete a container and clean up its associated resources; use the force option to bypass prompts when necessary.

Instructions

Clean up container resources by removing a container.

In Apple Container 1.7.1+, `container list` hides `cluster` nodes even with `--all`,
and `start`, `stop`, `kill`, and `delete` report named cluster nodes as not found
(`inspect`, `logs`, `exec`, `stats`, and `clean` continue to work on named cluster
nodes).

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

Input Schema

NameRequiredDescriptionDefault
forceNo
container_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

C2.8/5.0
Behavior3/5

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

The destructiveHint=true annotation already signals this is a mutation, and the description adds a version-specific caveat about Apple Container 1.7.1+ where cluster nodes are hidden from `container list` and rejected by `delete`. That is real added context, but it is phrased in terms of sibling CLI verbs rather than this tool, and it never says what is destroyed (container only? associated volumes/network?), whether the operation is reversible, or what happens if the container is running.

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

Conciseness3/5

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

The first sentence is tight and front-loaded, but the second is a dense changelog-style parenthetical listing five unrelated CLI verbs that the agent cannot act on. Roughly half the text is spent on a version quirk instead of the tool's own contract.

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

Completeness2/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 explained, but for a destructive, single-required-parameter tool with zero schema description coverage the definition is thin. Missing are the effect of `force`, behavior on running containers, and whether removal cascades to dependent resources.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden for two parameters, yet it never mentions `force` at all nor explains whether `container_id` accepts a name, an ID, or both. The only related hint is the note that named cluster nodes are reported as not found, which is oblique rather than instructive.

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?

The description names a specific verb and resource ('removing a container') and frames it as cleanup of container resources, so an agent knows the basic operation. It does not, however, contrast itself with close siblings such as stop_container, clean_container, or remove_volume, leaving the boundary between 'remove' and 'clean' implicit.

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 statement of when to use this tool versus alternatives, no prerequisite (must the container be stopped first?), and no guidance on when the force option is appropriate. The second paragraph describes a version-specific quirk rather than telling the agent when this tool is the right choice.

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