Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

commit_container

Creates a new local image from a running or stopped container's filesystem, capturing its process as the entrypoint and command for reuse.

Instructions

Create a new local image from a container's filesystem (Apple Container 1.6.0+).

Works on running and stopped containers. The image records the container's process
as its entrypoint and command, so pass entrypoint/args_override to run_container to
run something else. An unqualified reference such as "my-snapshot:v1" is stored
under docker.io/library/.

Example:
  commit_container("myapp", "myapp-snapshot:v1")

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>",
      "reference": "<reference>"
    },
    "name": "commit_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
referenceYes
container_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the snapshot semantics, that the container's process becomes the image entrypoint and command, and the docker.io/library/ default naming behavior for unqualified references. It omits whether the filesystem is captured consistently while running and whether a version gate (1.6.0+) produces an error on older hosts, which keeps it below 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?

Front-loaded with the action and version requirement, followed by the behavioral caveat and a compact example. Every sentence adds information an agent needs; nothing is padding.

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 explained, and the description covers the main behavioral facts an agent needs to invoke it correctly. Remaining gaps are error behavior on a missing container and any authentication or daemon prerequisites, which are minor for this tool's complexity.

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 two parameters are undocumented in the schema. The positional example commit_container("myapp", "myapp-snapshot:v1") implicitly maps the first argument to container_id and the second to reference, and the naming convention note explains reference qualification, but neither parameter is described by name or format constraint.

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 gives a specific verb and resource: create a local image from a container's filesystem, which separates it from the build-oriented siblings such as build_image. It doesn't explicitly name build_image as the thing it is not, so an agent must infer the distinction, but the core purpose is unambiguous.

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?

It states the operational condition clearly, that the tool works on both running and stopped containers, and adds follow-up guidance to pass entrypoint/args_override to run_container when the recorded process isn't desired. There is no explicit when-not clause or named alternative for the image-creation path, but the context is sufficient for correct selection.

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