Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

stop_container

Destructive

Terminate a running container by ID, either gracefully or forcefully, to shut down workloads or free resources.

Instructions

Gracefully or forcefully terminate 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": "stop_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

A3.5/5.0
Behavior3/5

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

Annotations only supply destructiveHint=true, so the description carries most of the burden. It discloses a non-obvious version-specific limitation around cluster nodes, which is real added context, but says nothing about signal sent, graceful-shutdown timeout, escalation behavior, or what state the container is left in after termination.

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?

The core action is front-loaded in a single tight sentence, with the caveat isolated in its own paragraph. The parenthetical list of unaffected commands is slightly heavy but is informative rather than filler.

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 no explanation, and the tool has only two parameters, one of them required and obvious. The definition covers the action, the force distinction, and a relevant environment caveat; only the semantics of force and post-stop state remain thin, which is a minor gap for a low-complexity tool.

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?

Schema description coverage is 0%, so the description must compensate. It maps the graceful/forceful distinction onto the 'force' flag, which is the only non-obvious parameter, but never states what force actually does (SIGKILL vs SIGTERM, timeout bypass). 'container_id' is self-evident from its name.

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 ('terminate a container') and even distinguishes two modes of termination (graceful vs forceful). The resource itself separates it from stop_machine/stop_system siblings, though it never names an alternative tool explicitly, 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 Guidelines3/5

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

The second paragraph is a genuine applicability caveat: it tells the agent that stop reports named cluster nodes as not found on Apple Container 1.7.1+, which is a when-not-to-use signal. However, there is no guidance on when to use stop_container versus remove_container or a kill-style operation, and no prerequisite or state requirements are given.

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