Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Build an iOS app

build_app

Build an iOS app from its source in the cloud (Xcode on a Mac, from any OS) and, with phone_id, install and open it on an iPhone or iPad in the same call. Source: git_url + ref (token for a private repository: used once, never stored), source_url (a link to a .tar.gz or .zip), or source_base64 (a .tar.gz up to 10 MB: tar czf - . | base64). XcodeGen (project.yml), CocoaPods, Swift packages, React Native and Expo projects are prepared by themselves. A failed build answers its compiler errors as file:line: message: fix them and call again. Waits up to 50 s; still building: call again with build_id. $0.05 per build-minute, billed per second.

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": "build_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoBranch, tag or commit (default: the default branch)
pathNoThe folder holding the Xcode project, inside the repository or archive, e.g. "ios"
taskNoOptional: what you are trying to do, in one line, e.g. "test the sign-up flow of my Android app". Helps us build what agents need; never shown publicly.
modelNoWith phone_id "new": iphone (default) or ipad
tokenNoA read-only token for a private repository; used once for the clone, never stored or logged
tuistNotrue for a Tuist project
schemeNoXcode scheme (default: the project's first shared scheme)
git_urlNohttps URL of the repository, e.g. https://github.com/you/app
projectNoPath of the .xcodeproj, when there are several
build_idNoAn earlier build (bld_…): wait for it and get its result, instead of starting a new one
phone_idNoInstall and open the app on this iPhone or iPad when built, or "new" to create one
platformNoios (default); android is recorded as a request
xcodegenNotrue or the spec path: generate with XcodeGen first (a project.yml at the top is used by itself)
workspaceNoPath of the .xcworkspace (CocoaPods projects build from it)
source_urlNoA link that downloads the source archive (.tar.gz, .tar or .zip) without a login, e.g. presigned
configurationNoDebug (default) or Release
source_base64NoThe source as a base64 .tar.gz (or .zip), up to 10 MB: tar czf - -C MyApp . | base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare a non-read-only, non-destructive, open-world operation. The description adds the material traits an agent needs: a 50 s wait ceiling with a re-poll path via build_id, per-build-minute cost of $0.05 billed per second, the compiler-error return format, the 10 MB source cap, and the security guarantee that a token is used once and never stored.

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?

Dense but front-loaded: the core action and the device-install option come first, followed by source modes, then failure/polling behavior, then pricing. Nearly every clause carries operational information, though the paragraph is long enough that the cost and polling details could be easier to scan.

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 17-parameter, zero-required-parameter tool with no output schema, the description covers the highest-risk aspects well: source selection, timeout/polling, failure semantics, cost, and credentials. Gaps are minor, notably that it never hints at what a successful response contains (build id, artifact, installed app reference) and does not explain lesser-used parameters like platform 'android is recorded as a request' or model/tuist.

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%, so the baseline is 3 and every parameter is already documented. The description adds grouping value by presenting git_url + ref, source_url, and source_base64 as alternative source modes and by clarifying that XcodeGen, CocoaPods, Swift packages, React Native and Expo projects self-configure, but it does not resolve the remaining choices among path, project, workspace, scheme, xcodegen, or tuist.

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?

States a specific verb and resource ('Build an iOS app from its source in the cloud'), the execution environment (Xcode on a Mac, from any OS), and the extra effect when phone_id is supplied (install and open on a device). An agent can distinguish it from install_app or preview_app without opening the 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?

Gives clear when-to-use signals: three mutually exclusive source modes (git_url + ref, source_url, source_base64), and the build_id path for continuing an existing build instead of starting a new one. It also tells the agent what to do after a failure (fix file:line errors and call again) and after the 50 s timeout (re-call with build_id). It stops short of explicitly naming sibling alternatives such as install_app for already-built apps.

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.