Skip to main content
Glama

iphone_workspace

Destructive

Run shell commands in ~/workspace on a paired iPhone to read, edit, and test in one run, with optional background jobs and receipt tracking.

Instructions

Run shell in ~/workspace on the paired iPhone. Combine read, edit and test in one run. For work that must survive switching apps, use background with a visible title and 1–10 sequential scripts (60s each); requires iSH Workspace on iOS 26 and one foreground Start tap. For a short batch, pass waitMs (up to 40000) to receive the final exitCode/output in the same call; zero returns immediately. If still awaiting, query receipt with the same UUID and environment continued. Each app has separate files. Never replay uncertain work.

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": {
      "action": "<action>"
    },
    "name": "iphone_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
titleNo
actionYes
scriptNo
waitMsNo
requestIdNo
environmentNo
queueUntilOpenMsNoReturn immediately and wait up to this many milliseconds for iSH Workspace to open. Only for background; use receipt or cancel_wait with the same requestId. Host restart clears pending waits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive, openWorld, and non-idempotent behavior; the description adds real operational context on top — 60s per script, a 1–10 step cap, `waitMs` capping at 40000 with zero returning immediately, and the warning 'Never replay uncertain work.' It stops short of saying what the shell can damage or what output looks like without `waitMs`, so not a full 5.

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?

Six tight sentences, front-loaded with the core action and then ordered by decision (background vs. short batch vs. receipt). A couple of fragments — 'Each app has separate files' and 'Never replay uncertain work' — lack a clear referent and cost a bit of clarity.

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?

For an 8-parameter, non-idempotent, destructive tool with no output schema, the description covers the main lifecycle (run → wait → receipt) and prerequisites well. It is weaker on what a plain `run` returns without `waitMs` and on the `status`/`cancel_wait` paths, which an agent may need to recover.

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 only 13% (just `queueUntilOpenMs` is documented), so the description does meaningful lifting: `steps` as 1–10 sequential scripts, `title` as a visible title, `requestId` as the UUID reused for `receipt`, and `environment: continued`. But `script`, `status`, and `cancel_wait` are never explained, leaving some parameters opaque.

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?

Opens with a specific verb and resource: 'Run shell in ~/workspace on the paired iPhone,' and clarifies scope by saying read/edit/test can be combined in one run. An agent can immediately distinguish this from the receipt/status sibling actions referenced later in the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit branching guidance: use `background` when work must survive app switching, pass `waitMs` for a short batch, and query `receipt` with the same UUID when still awaiting. It also states the prerequisites (iSH Workspace on iOS 26, one foreground Start tap) that gate the call.

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