Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

export_container

Export a container's filesystem to a tar archive in OCI layout, including running or stopped containers. Provide a container ID and an output file path to create a portable backup.

Instructions

Export a container's filesystem as a tar archive (OCI layout). Requires an output_file path.
Works on running containers as well as stopped ones (Apple Container 1.2.1+).

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

Input Schema

NameRequiredDescriptionDefault
output_fileNo
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?

With no annotations, the description carries the full behavioral burden. It usefully discloses that stopped containers are supported and that the output is an OCI-layout tar, but says nothing about where the file is written (host path assumed but unstated), disk/size implications, permissions required, or whether the export affects container state.

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, the core action front-loaded, then the output requirement, then the running/stopped note with version caveat. No filler.

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

Completeness3/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. For a two-parameter export tool the description is adequate but leaves the output_file path semantics unstated and conflicts with the schema's required-parameter list, which is the main completeness gap.

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 coverage is 0%, so the description must compensate: it explains that output_file is the archive destination and that a path is needed, which is more than the bare schema title. However, it does not clarify the path semantics (host vs container filesystem) for output_file, and it says output_file is required while the schema marks it optional with default null — a mismatch that could cause an agent to omit it.

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: export a container's filesystem as a tar archive, with the format named (OCI layout). An agent can tell this apart from list/inspect/exec siblings, though it does not explicitly distinguish itself from the closest alternative, commit_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?

The note that it works on running as well as stopped containers (Apple Container 1.2.1+) is real usage context and implies no stop is needed first. However, there is no guidance on when to choose export_container over commit_container or copy_from_container, and no stated prerequisites or failure conditions.

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