Skip to main content
Glama

autopilot_build

Build Xcode projects and return structured compile errors and warnings with source code context, enabling targeted fixes.

Instructions

Run xcodebuild and return structured errors and warnings WITH source code context (±50 lines around each error). Use this to get all the information needed to generate fixes. After calling this tool, analyze the errors and call autopilot_apply_fixes with your fixes.

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

Input Schema

NameRequiredDescriptionDefault
schemeYesBuild scheme name
destinationNo
project_pathYesAbsolute path to .xcodeproj or .xcworkspace
configurationNoDebug
include_warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does disclose the return shape, namely structured errors plus warnings plus source context, and it implies warnings appear only when include_warnings is set. However, it says nothing about build duration, side effects on the derived data or build artifacts, failure behavior when the build fails to launch, or permissions, so a mutation-capable build tool is only partly disclosed.

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, front-loaded with the core action and output guarantee, then the follow-up instruction. No filler, no restated title, and every sentence carries information the agent needs.

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

Completeness3/5

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

There is no output schema and no annotations, so the description must cover more ground, and it does handle the return-value story well by describing errors, warnings and source context. It is still thin on parameter meaning and on build side effects, which is a real gap for a five-parameter tool at 40% schema coverage.

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

Parameters2/5

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

Schema description coverage is only 40%: scheme, project_path, destination, configuration and include_warnings are present, but destination, configuration and include_warnings have empty schema descriptions. The text mentions warnings only by implication and says nothing about destination defaults or the Debug configuration default, so it fails to compensate for the documented gaps. An agent gets almost no semantic help on three of five parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource (run xcodebuild) and highlights a distinctive output trait: structured errors and warnings with ±50 lines of source context around each error. That implicitly separates it from the sibling autopilot_tuist_build, but it never names the alternative, so an agent has to infer which build tool to pick. Clear purpose without explicit sibling differentiation.

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?

It gives a concrete workflow: call this tool, analyze the errors, then call autopilot_apply_fixes with the fixes. That explicit next-step hand-off to a named sibling is strong guidance. It stops short of saying when NOT to use it, for example when the project uses Tuist or when only a clean is needed, so no exclusions are stated.

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