Skip to main content
Glama

autopilot_cache_clean

Clear Xcode caches that xcodebuild clean misses by scope: project DerivedData, module cache, SPM cache, index store, or all.

Instructions

Selectively clear Xcode caches that xcodebuild clean does not cover. Use 'project' to remove DerivedData for this project, 'module_cache' for ModuleCache.noindex, 'spm' for SPM fetch cache and SourcePackages, 'index' for the Index store, or 'all' for everything.

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>",
      "scope": "<scope>"
    },
    "name": "autopilot_cache_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes
project_pathYesAbsolute path to .xcodeproj or .xcworkspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/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 behavioral burden; it does disclose that this is a destructive cache-clearing operation and that it targets artifacts xcodebuild clean leaves behind. It does not state irreversibility, whether the project must be closed, or permission requirements, which are material for a delete operation.

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?

Two tight sentences with zero filler; the differentiator against xcodebuild clean is front-loaded and the scope mapping follows immediately. Every clause earns its place.

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 two-parameter destructive tool with no annotations and no output schema, the scope semantics are well covered but safety context is thin: no warning that cleared caches must be rebuilt, no prerequisites, and no routing versus the sibling clean tool.

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

Parameters4/5

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

Schema coverage is 50% (project_path is documented in the schema), but the description compensates by mapping each enum value to concrete artifacts: DerivedData, ModuleCache.noindex, SPM fetch cache and SourcePackages, and the Index store. That adds meaning beyond the bare enum labels, though it does not clarify path expectations for project_path.

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 ('Selectively clear Xcode caches') and scopes it against the built-in 'xcodebuild clean,' which tells an agent exactly what class of operation this is. It does not explicitly differentiate itself from the sibling autopilot_clean, so it falls short of a 5.

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 description explains what each scope value selects, which is genuine how-to-use guidance for the required parameter. However, it gives no guidance on when to choose this tool over the sibling autopilot_clean, nor any preconditions or when-not-to-use cases.

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