Skip to main content
Glama

Build For Simulator

build_for_sim

Compile an Xcode project for the iOS Simulator to verify code changes build successfully. Use for simulator checks, not signed or release builds.

Instructions

Build the Xcode project for the simulator to verify it compiles.

Use when: verifying code changes. Not for: signed/release builds (use build_archive or testflight_ship). Returns: {ok, exit_code, stdout, stderr} from xcodebuild.

Input Schema

NameRequiredDescriptionDefault
schemeYesXcode scheme name to build, e.g. 'MyApp'.
projectYesPath to the .xcodeproj or .xcworkspace to build, e.g. /path/App/App.xcodeproj.
device_nameNoSimulator device name, e.g. 'iPhone 16'.iPhone 16

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.5
    • addedInput schema / properties / device_name / description
      Added value: +"Simulator device name, e.g. 'iPhone 16'."
    • addedInput schema / properties / project / description
      Added value: +"Path to the .xcodeproj or .xcworkspace to build, e.g. /path/App/App.xcodeproj."
    • addedInput schema / properties / scheme / description
      Added value: +"Xcode scheme name to build, e.g. 'MyApp'."
  2. First observedv0.1.1

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is covered. The description adds the compile-verification intent and a return shape, but says nothing about prerequisites (e.g. a booted simulator) or build artifact side effects; with annotations doing the heavy lifting, a 3 is appropriate.

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 tight lines, front-loaded with the core action, followed by routing and return info. No filler sentences.

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?

An output schema exists and annotations cover the safety profile, so the description need not explain return values; combined with the usage routing it gives the agent everything required to invoke this correctly.

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 each parameter (scheme, project, device_name) is documented in the schema itself. The description adds no parameter-level detail, so the baseline 3 applies.

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 the Xcode project for the simulator') plus the intent ('to verify it compiles'). It also names the sibling tools it is not (build_archive, testflight_ship), 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 explicit 'Use when: verifying code changes' and 'Not for: signed/release builds (use build_archive or testflight_ship)'. This is exactly the when/when-not/alternative structure that removes routing ambiguity.

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

Deploy Server

Other Tools