Skip to main content
Glama

build_app

Destructive

Builds an Xcode project or workspace scheme for a connected iPhone or iPad and installs the app by default, returning the bundle ID and .app path or compiler errors.

Instructions

Build an Xcode project or workspace scheme for the device and (by default) install it, replacing the installed copy. Pass project or workspace. Use it when starting from source; use install_app for an already built .app or .ipa, and launch_app afterwards, because this doesn't launch. Signing uses the project's own settings, and Xcode may update provisioning profiles. Returns the bundle ID and .app path, or the compiler errors (up to 15 lines). Can take minutes; the build is stopped after 20.

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": {
      "scheme": "<scheme>"
    },
    "name": "build_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
schemeYesXcode scheme that builds the app
installNoInstall after building (default true)
projectNoPath to .xcodeproj
workspaceNoPath to .xcworkspace
configurationNoDefault: Debug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / scheme / description
      Added value: +"Xcode scheme that builds the app"
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint and openWorldHint, but the description adds material context they cannot express: the installed copy is replaced, signing uses the project's own settings, Xcode may mutate provisioning profiles, output is bundle ID plus .app path or up to 15 lines of compiler errors, and the build is aborted after 20 minutes. That is exactly the behavioral disclosure a long-running mutating build tool needs.

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?

Front-loaded with the action and default behavior, then flowing into routing, side effects, return values, and duration. It is dense but nearly every clause carries decision-relevant information; only the parenthetical '(by default)' slightly duplicates the install parameter's own description.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, non-idempotent, destructive build tool with no output schema, the description covers inputs, side effects, signing/provisioning consequences, return values, failure output, and expected duration. Nothing an agent needs to call it safely and correctly is missing.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description raises it by stating 'Pass project or workspace' (a mutual-exclusion constraint the schema cannot encode) and confirming install defaults to true. It does not cover device resolution or configuration, but those are already fully documented in the schema.

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 Xcode project or workspace scheme for the device') and immediately clarifies the default follow-on action (installs, replacing the installed copy). It explicitly contrasts itself with install_app and launch_app, so an agent can route without opening any schema.

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 an explicit when-to-use rule ('use it when starting from source'), names the alternative for the built-artifact case (install_app), and prescribes the follow-up tool (launch_app, with the reason: this doesn't launch). No inference is required from the agent.

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