Skip to main content
Glama

autopilot_test

Run Xcode tests and return structured failures with failing test and implementation source context, enabling detection of failing tests before applying fixes and repeating the cycle.

Instructions

Run xcodebuild test and return structured test failures with source context. Each failure includes the failing test method source and the related implementation code. Use this to detect failing tests, then call autopilot_apply_fixes to fix them, and repeat.

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

Input Schema

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

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?

No annotations are provided, so the description carries the full burden. It discloses that it runs xcodebuild test and returns structured failures with failing test method source and related implementation code, which is useful behavioral context. However, it does not discuss side effects, environment requirements, timeouts, or whether the test run mutates local state.

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?

The description is three sentences and front-loads the core action and return behavior. The workflow sentence about calling autopilot_apply_fixes is useful and earns its place. There is no redundant or vague wording.

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 6-parameter test tool with no output schema and no annotations, the description covers the core return shape and remediation workflow reasonably well. However, it omits meaningful parameter guidance and behavioral details that would help an agent invoke it correctly. It is adequate but has clear gaps.

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 33%, leaving parameters such as test_plan, destination, only_testing, and configuration undocumented in both schema and description. The description adds no parameter-level meaning at all. It therefore does not compensate for the low schema coverage.

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 states a specific verb and resource: run xcodebuild test and return structured test failures with source context. It also names the follow-up sibling autopilot_apply_fixes, giving workflow-level differentiation. It does not directly contrast with other test-adjacent siblings such as autopilot_build, so it stops 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 Guidelines4/5

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

It gives clear usage guidance: use this to detect failing tests, then call autopilot_apply_fixes to fix them, and repeat. This makes the intended workflow explicit and identifies the relevant alternative for remediation. It lacks explicit when-not-to-use guidance or contrast with autopilot_build.

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