Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

run_machine

Execute a command inside a container machine, booting it when needed. Omit the machine name to use the default environment.

Instructions

Run a command in a container machine (booting it if necessary). If name is omitted,
the default machine is used.
Example: run_machine(["uname", "-a"], name="dev")

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": {
      "command": "<command>"
    },
    "name": "run_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo
nameNo
rootNo
userNo
detachNo
commandYes
workdirNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

B3.1/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 burden and does disclose a real side effect: the machine is booted if necessary. It says nothing about privilege (root/user), detached execution semantics, environment injection, working directory, timeouts, or output capture, leaving the behavioral profile mostly undisclosed.

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?

Two short sentences plus a compact example, front-loaded with the core action. The example earns its place by showing the array-of-strings command shape, though the positional-plus-keyword mix is slightly non-obvious.

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

Completeness2/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 covered, but for a 7-parameter execution tool with no annotations and no schema descriptions, the definition is thin — most parameters and the privilege/detach semantics are undocumented.

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

Parameters2/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 for 7 parameters. It explains only `name` (default machine) and `command` (via the example); env, root, user, detach, and workdir get no meaning at all, and `root` vs `user` interaction is a notable omission.

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: run a command inside a container machine, with the boot-if-needed nuance. It reads clearly against siblings like exec_in_container or run_container, though the description never explicitly says how it differs from those.

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?

Offers one concrete usage rule — omit `name` to target the default machine — and an example call. It gives no guidance on when to prefer this over run_container/exec_in_container or when a machine should already exist rather than being booted.

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