Skip to main content
Glama

Build and run the app on a cloud iPhone

phone_app_run
Destructive

Cloud iPhone: Build the Xcode project in a folder for the Simulator, install and launch it, and answer with its first screen. Errors as file:line. A build past 40 s answers with a job for phone_job_status. Later calls reuse the project.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "phone_app_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoApp env: "K=V K2=V2" (kept)
gitNoAn https link to a git repository, fetched into the phone's workspace first (only what changed); path is then the project's folder inside it
refNoWith git: the branch, tag or commit; default: the default branch
nameNoWith upload: where it goes, the same name each time keeps builds incremental; default: upload
pathNoWith git or upload: the project's folder inside it (default: its root); without: the project the last phone_app_run used
cleanNoBuild from scratch
tokenNoWith git, instead of secret: a token you already hold for the private repository, used for this fetch only and never kept (github.com, gitlab.com or bitbucket.org). Never ask a person to paste one in the chat: use secret
xcodeNo27.1, beta or default (kept)
deviceNoName or UDID; default: the one in use
schemeNoDefault: the only scheme, or one named like the project
secretNoWith git: the account secret holding a token for a private repository on github.com, gitlab.com or bitbucket.org (request_secret asks the person for it)
uploadNoInstead of git: the upload phone_upload_link answered (a folder or archive sent to its link), unpacked into the phone's workspace (only what changed)
session_idNoThe phone; default: the account's running phone
permissionsNogrant (default) answers prompts; ask: iOS's prompts stay
request_keyNoRepeat a lost call with the same key
configurationNoDefault: Debug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / secret / pattern
      Previous value: -"^[A-Z_][A-Z0-9_]{0,63}$"New value: +"^[A-Za-z_][A-Za-z0-9_]{0,127}$"
  2. Changed1 schema field changed
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "With git, instead of secret: a token you already hold for the private repository, used for this fetch only and never kept (github.com, gitlab.com or bitbucket.org). Never ask a person to paste one in the chat: use secret",
      +  "pattern": "^[\\x21-\\x7e]{1,4096}$",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / upload / description
      Previous value: -"Instead of git: the sha256 of a .tar.gz or .zip put to phone_upload_link's link, unpacked into the phone's workspace (only what changed)"New value: +"Instead of git: the upload phone_upload_link answered (a folder or archive sent to its link), unpacked into the phone's workspace (only what changed)"
    • changedInput schema / properties / upload / pattern
      Previous value: -"^[a-f0-9]{64}$"New value: +"^(up_[a-f0-9]{32}|[a-f0-9]{64})$"
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety bar is partly met; the description adds genuinely new traits: long builds return a job handle rather than blocking, errors are reported as file:line, and subsequent calls reuse the project incrementally. It does not explain what the destructive aspect actually overwrites (e.g. whether the workspace or device state is reset), which is the main remaining gap.

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?

Three short sentences, each front-loaded with a distinct fact (what it does, how errors surface, async job behavior, incremental reuse) with no filler. Telegraphic but dense and scannable.

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 a 16-parameter, no-output-schema, open-world tool, the description covers the core flow, the async escalation path, error format and state reuse, while the schema carries full per-parameter meaning. It could say more about the destructive implications given destructiveHint=true, but nothing needed to invoke it correctly is missing.

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 100% and all 16 parameters are individually documented in the schema, so the baseline of 3 applies. The description adds almost nothing parameter-level beyond the implied reuse of the last project when path is omitted.

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?

Names a specific verb chain and resource: build an Xcode project for the Simulator, install and launch it, and return its first screen. That distinguishes it cleanly from phone_tests_run (tests) and phone_app_control (control of a running app) without those being named.

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?

Gives a clear usage context (build+run a project in a folder) and routes long builds to phone_job_status after 40 s. It also notes later calls reuse the project, which tells the agent this is re-callable incrementally. It stops short of explicit when-not-to-use guidance versus phone_tests_run or phone_app_control.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources