Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

run_container

Start a container from an image with configurable CPU, memory, ports, networking, environment variables, volumes, and command overrides to launch isolated application workloads.

Instructions

Start a container from an image with optional resource constraints, networking, ports, env vars,
volume mounts, and more. Pass a command to run via args_override.
scheme selects registry http or https explicitly; CLI 1.4.1 defaults to https.
Use shm_size to set the size of /dev/shm (e.g. "1G").

network_aliases (Apple Container 1.6.0+) gives the container extra DNS names on its
network (the "default" network when network is unset). Exact aliases need two labels
("api.test"). A leading-dot alias (".api.test") matches every name below it and must sit
below the container's own hostname or one of its exact aliases. Aliases are fixed at
creation and resolve only under a DNS domain registered with `container system dns create`.
network also accepts per-attachment options directly, e.g. "my-net,mtu=1400".

read_only_paths and masked_paths (Apple Container 1.2.1+, EXPERIMENTAL upstream) add extra
in-guest paths to the runtime's default read-only/masked lists — they only tighten isolation.
The upstream CLI also accepts a "NONE" sentinel there to clear the defaults and widen the
container's attack surface; this tool rejects that value and only supports the additive form.

Examples:
  run_container("debian", memory="4g", cpus=2, ports=["8080:8080"])
  run_container("ubuntu", rm=True, detach=False, args_override=["bash", "-c", "echo hi"])
  run_container("my-app", rosetta=True, platform="linux/amd64")
  run_container("myapp", masked_paths=["/proc/kcore"], read_only_paths=["/etc"])
  run_container("nginx", name="gateway", network_aliases=["api.test", ".api.test"])

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": {
      "image": "<image>"
    },
    "name": "run_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
rmNo
envNo
cpusNo
nameNo
userNo
imageYes
mountNo
portsNo
detachNo
labelsNo
memoryNo
schemeNo
networkNo
rosettaNo
volumesNo
workdirNo
env_fileNo
platformNo
shm_sizeNo
entrypointNo
init_imageNo
masked_pathsNo
args_overrideNo
network_aliasesNo
read_only_pathsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A3.5/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose real behavior: aliases are fixed at creation and only resolve under a DNS domain registered via `container system dns create`, read-only/masked paths only tighten isolation, and the tool deliberately rejects the upstream "NONE" sentinel that would widen the attack surface. Missing is any statement about blocking versus detach semantics beyond the schema default, or what the call returns, though an output schema exists to cover returns.

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?

Front-loaded with the core action and an examples block, which is good. But the body spends most of its length on experimental and version-specific features (network_aliases, read_only_paths/masked_paths sentinels) while common parameters like volumes and env get zero words, so the allocation is out of proportion to what an agent actually needs.

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?

With 25 parameters, zero schema description coverage and no annotations, the description should cover far more ground; roughly ten parameters remain semantically opaque. It is strong on the genuinely tricky isolation and DNS-alias behavior, and the output schema relieves it of explaining returns, but the everyday parameters still need coverage before this is complete.

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% across 25 parameters, so the description must compensate. It explains roughly a dozen (image, args_override, scheme, shm_size, network_aliases, network with per-attachment options like "my-net,mtu=1400", read_only_paths, masked_paths, plus format hints for memory "4g" and ports "8080:8080"), but leaves env, volumes, mount, workdir, user, labels, env_file, entrypoint, and init_image entirely unaddressed.

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: "Start a container from an image" with resource constraints, networking, ports, env vars and volumes. It clearly distinguishes itself from siblings like exec_in_container by implying creation-and-run, but never explicitly contrasts with start_container, which an agent could easily confuse with it.

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?

Gives situational guidance for niche cases: "Use shm_size to set the size of /dev/shm", when to set scheme, and when network_aliases apply. However, it offers no guidance on when to choose run_container over start_container, exec_in_container, or build_image, and no prerequisites or exclusions are stated.

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