Skip to main content
Glama

build_and_run

Destructive

Build an Xcode project or workspace from an approved folder, install the app on a selected device, and review stage results and the build log.

Instructions

Build an Xcode project or workspace from an approved folder and install the resulting app on the selected device. Review the stage results and build log.

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

Input Schema

NameRequiredDescriptionDefault
launchNo
schemeYes
device_idNo
timeout_msNo
project_pathYes
configurationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the agent knows this is a mutating, non-idempotent, open-world operation. The description adds value by explaining the two-stage build-then-install behavior and the availability of a build log, but it omits failure handling, overwrite behavior on the device, and whether the install replaces an existing app.

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?

Two short sentences with the core action front-loaded and no filler. The closing 'Review the stage results and build log' is slightly ambiguous as an imperative but still contributes a useful outcome hint.

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

Completeness2/5

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

For a six-parameter, destructive, non-idempotent build tool with zero schema coverage and no output schema, the description is too thin. It does not explain scheme vs. configuration, the meaning of launch, the timeout bound, or what a failed build returns, which an agent would need to invoke this correctly.

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 0% across six parameters, so the description must carry the burden and largely does not. It vaguely references 'approved folder' (project_path) and 'selected device' (device_id) but says nothing about scheme, configuration (Debug/Release), launch, or timeout_ms, leaving four of six parameters with no semantic help anywhere.

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 compound action: build an Xcode project/workspace and install the resulting app on a device, plus review stage results and build log. Clear verb+resource. However, it does not differentiate from siblings like install_app or launch_app, whose behavior overlaps with the install/launch portion of this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'from an approved folder' implies a precondition (the path must be pre-approved), and 'Review the stage results and build log' hints at post-invocation behavior. But there is no explicit when-to-use vs. install_app/launch_app, nor any stated exclusion or ordering guidance.

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