Skip to main content
Glama

ios_build

Build a scheme of an Xcode project on this Mac (for the iOS Simulator unless destination says otherwise) to check that it compiles. Runs as a background job and returns its jobId; poll ios_build_status with it. Nothing is uploaded.

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": "<project>",
      "scheme": "<scheme>"
    },
    "name": "ios_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYes
teamIdNoApple Developer team ID for signing, when the project has none (DEVELOPMENT_TEAM)
projectYes.xcodeproj or .xcworkspace path from ios_projects
deviceIdNoComputer name or id
buildNumberNoSets CURRENT_PROJECT_VERSION
destinationNoxcodebuild -destination; default generic/platform=iOS Simulator
configurationNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / scheme / minLength
      Removed value: -1
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed6 schema fields changed
    • removedInput schema / properties / action
      Removed value: -{
      -  "enum": [
      -    "build",
      -    "test",
      -    "archive",
      -    "testflight"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / buildNumber / description
      Previous value: -"Sets CURRENT_PROJECT_VERSION; testflight defaults to a UTC timestamp so every upload is new"New value: +"Sets CURRENT_PROJECT_VERSION"
    • changedInput schema / properties / destination / description
      Previous value: -"xcodebuild -destination; tests default to the newest available iPhone simulator"New value: +"xcodebuild -destination; default generic/platform=iOS Simulator"
    • removedInput schema / properties / issuerId
      Removed value: -{
      -  "description": "App Store Connect issuer ID; remembered on this Mac after the first upload",
      -  "type": "string"
      -}
    • removedInput schema / properties / keyId
      Removed value: -{
      -  "description": "App Store Connect API key ID; the key file stays in ~/.appstoreconnect/private_keys. With it, archive and testflight let Xcode update signing profiles",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "project",
      -  "scheme"
      -]New value: +[
      +  "project",
      +  "scheme"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / workSessionId
      Added value: +{
      +  "description": "Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  5. First observed

TDQS

A3.8/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 openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: asynchronous background execution, the jobId return, the default simulator destination, and that nothing is uploaded. It still omits failure behavior and signing requirements, so it is solid but not rich.

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 action and scope, then the async contract, then the no-upload reassurance. No filler and nothing buried.

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?

With no output schema, the description correctly explains the return value (jobId) and the follow-up call needed to get results. It is nearly complete for an async build tool, with only failure/error reporting left unaddressed.

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 coverage is 75%, so most parameters are already documented. The description adds meaning only for destination (defaults to generic iOS Simulator), while teamId, project, buildNumber, and workSessionId semantics live in the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource ("Build a scheme of an Xcode project on this Mac") plus the intent ("to check that it compiles"), which separates it from ios_archive and ios_test. It does not explicitly name those siblings, so differentiation is implied rather than stated.

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 operational guidance: it runs as a background job, returns a jobId, and the agent must poll ios_build_status with it. It does not say when to prefer this over ios_test or ios_archive, so the alternative-selection guidance is incomplete.

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