Skip to main content
Glama

autopilot_clean

Removes derived data for an Xcode project by running xcodebuild clean with a specified scheme and project path, clearing stale build artifacts before rebuilding.

Instructions

Run xcodebuild clean to remove derived data for the project.

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_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYesBuild scheme name
project_pathYesAbsolute path to .xcodeproj or .xcworkspace

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 supplied, the description carries the full behavioral burden, and it does usefully disclose that this is a destructive cleanup that removes derived data. However, it says nothing about scope (whether cleanup is per-project or global), whether the operation requires an existing build directory, whether it can fail on a nonexistent scheme, or what the result looks like.

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?

A single, front-loaded sentence with no hedging or filler; the operation and its outcome are stated immediately.

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?

For a simple two-parameter tool with a fully annotated schema and no output schema, this is close to adequate, but it leaves open the scope and failure behavior of the clean operation, and gives no differentiation from the cache-cleaning sibling.

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%, so both required parameters (project_path and scheme) are already documented with their expected formats. The description adds no additional meaning about how these are used, such as whether scheme must exist in the project, so baseline 3 applies.

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 action and mechanism (run xcodebuild clean) tied to a specific effect (remove derived data for the project). That is concrete enough to distinguish it from builds and tests, though it never differentiates itself from the close sibling autopilot_cache_clean, which an agent could easily confuse it with.

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?

Usage is only implied: the stated effect (removing derived data) suggests calling it before a fresh build, but there is no explicit 'use when' condition, no prerequisite about running a build first, and no routing away from autopilot_cache_clean when the intent is to clear caches rather than derived data.

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