Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IPHONE_USE_HOMENoSet to an absolute path before setup to use a different data directory.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Use iphone_usb for input and iphone_screen for screenshots of the enrolled USB iPhone. For Pinky semantic navigation use ensure_tab or phone_batch when available. Use iphone_workspace for commands in the paired iSH environment. Respect device approval, pause and handoff. Consult the matching receipt after an uncertain action.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
iphone_usbA

Control the enrolled, unlocked iPhone over paired USB. Observe returns native PNG pixels, image size and observationId. Tap/hold points:[[x,y]], swipe:[start,end], pinch:[start1,end1,start2,end2], all in returned image pixels. Mutations need a fresh UUID requestId; except launch, also supply latest observationId. Use type for printable ASCII in a visibly focused field, or paste for Unicode only when replacing the iPhone clipboard is intended. key sends a named key. Launch takes an installed bundle ID. Inspect the returned screen to verify the goal. Never repeat uncertain input; receipt reads the same requestId.

iphone_screenA

Read the paired iPhone screen as actual image pixels. Omit observationId for a fresh PNG. Supply the returned observationId to retrieve the same pixels, without another device capture. Use iphone_usb for input.

pinkyC

Prefer action:ensure_tab for a requested selected tab: expected:{app,selectedTab}, intent, fresh requestId. One call reads the current screen, taps a unique ref only if needed, and verifies. For an authorized request to open the app, set openApp:true. Include connectTask only if the request also authorizes acquiring a new Pinky session when one is missing. The app must be an exact package or bundle ID. This combines setup, launch if needed, and verification in one call. Never repeat uncertain input. For a known ordered list of named tabs use navigate_tabs with tabs:[labels], expected:{app}, intent and a fresh requestId. Each selection is verified on the device. For explicit action sequences use phone_batch. Persistent Pinky MCP connection. tools lists the current approved phone tool schemas. call uses exact tool/arguments and a fresh requestId UUID; receipt queries a previous request without replay. Same requestId never resends, including after restart. status does not launch a process; close releases this bridge. Native screenshots are returned directly. Pinky retains all device leases, approvals and takeover rules. phone_task_* autonomous AI tools are disabled; Codex decides each action. Discover tools once per session, reuse returned screens and references; never replay uncertain input. Reuse the screen returned by each action; do not add phone_observe routinely. Prefer phone_batch only for already confirmed deterministic navigation; stop partial batches and never resend completed steps. Short settle_ms may defer waiting to the next call and is not a guaranteed speedup. expected verifies a narrow app/selected-tab goal without another observe; trace retrieves local latency boundaries.

iphone_receiptB

Read a background workspace job result without dispatching any action.

iphone_workspaceA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation2/5

pinky overlaps heavily with the other tools: it reads the current screen, taps, verifies, batches navigation, and exposes its own receipt/status/close, all of which collide with iphone_usb, iphone_screen, and iphone_receipt. There are also two receipt paths (iphone_receipt and pinky's receipt action) and no clear rule telling the agent when to use pinky's ensure_tab versus an iphone_usb tap followed by iphone_screen verification. iphone_workspace and iphone_receipt are reasonably distinct, but the meta-tool blurs most boundaries.

Naming Consistency3/5

Four tools share a tidy domain_noun pattern (iphone_usb, iphone_screen, iphone_receipt, iphone_workspace), but the most powerful tool is named 'pinky' with no relation to the convention. The names are readable, yet the outlier breaks the predictable mapping an agent would otherwise rely on, and pinky hides many distinct actions behind sub-mode strings.

Tool Count4/5

Five tools is a good, agent-friendly size for phone control rather than an explosion of per-action endpoints. However, the distribution is lopsided: pinky alone bundles session setup, tab navigation, tool discovery, batch dispatch, receipts, status and close, so the effective surface is much larger than the count suggests.

Completeness4/5

The core lifecycle is covered: connect/discover, observe native pixels, act via tap/swipe/type/key/launch, run shell and background jobs, and retrieve async results via receipts. Gaps are minor — no app inventory or install/uninstall, no explicit USB bridge teardown outside pinky close, and no device/session status tool separate from the monolith.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues