Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

copy_from_container

Copies a file or folder from inside a container out to a host path within your home directory. Extracts container logs, artifacts, or configs onto the Mac host for review.

Instructions

Copy a file or folder out of a container onto the host.

``source`` is the path inside the container. The host ``dest`` path must be
within your home directory.
Example: copy_from_container("web", "/var/log/app.log", "~/logs/app.log")

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>",
      "source": "<source>",
      "dest": "<dest>"
    },
    "name": "copy_from_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
destYes
sourceYes
container_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does add a genuine operational constraint — the host dest path must lie within the home directory — which an agent could not infer from the bare schema. However, it is silent on overwrite behavior when dest exists, whether folders are copied recursively, and what happens if the source path is missing or the container is stopped.

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?

The purpose is front-loaded in the first sentence, followed by two short constraint notes and a single concrete example that resolves argument order and path style. Nothing is redundant and no sentence could be removed without losing information.

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?

With an output schema present, the description needn't explain return values, and it covers all three required parameters plus the key sandbox constraint. For a mutation-style file transfer with no annotations, though, a note on overwrite semantics and failure modes would make it fully self-sufficient.

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

Parameters4/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, and it largely does: source is defined as the in-container path, dest as a host path restricted to the home directory, and the worked example ties container_id to a concrete value ("web") showing a container name is accepted. It never states whether container_id also accepts an ID, which leaves one ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb plus direction: "Copy a file or folder out of a container onto the host." That directionality (container → host) cleanly separates it from copy_to_container, so an agent can pick the right sibling without opening either schema.

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?

The use context is unambiguous because the direction of transfer is stated explicitly, and the home-directory restriction on dest tells the agent when a call will be rejected. It stops short of naming copy_to_container as the inverse alternative or saying what to do when the destination already exists, so it is clear context without explicit exclusions.

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