Skip to main content
Glama

autopilot_resolve_spm

Resolve Swift Package Manager dependencies via xcodebuild and return structured errors such as version conflicts, clone failures, and Swift version mismatches to diagnose builds failing on missing packages.

Instructions

Run xcodebuild -resolvePackageDependencies and return structured SPM errors (version conflicts, clone failures, Swift version mismatches). Use this when a build fails due to missing or unresolvable packages.

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

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

A4/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 burden: it discloses the invocation and the error categories returned (version conflicts, clone failures, Swift version mismatches). It omits important behavior for a dependency-resolution step — that it performs network fetches, writes/updates package resolution state on disk, and may be slow — so mutation and side-effect profile remain undisclosed.

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 operation is stated first, then the usage trigger. Every clause earns its place.

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?

For a two-parameter resolution tool the description covers what it does and why to call it, and enumerates the error categories the agent will receive. Since no output schema exists, the exact return shape (error object fields, success signal) is left unspecified, which is a modest gap for a tool whose value is its structured output.

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 100%; both parameters (project_path, scheme) are documented in the schema with types and meanings. The description adds no additional parameter semantics, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the exact underlying command (xcodebuild -resolvePackageDependencies) and what it produces (structured SPM errors of specific kinds), so the verb+resource is unambiguous. It is clearly distinguishable from siblings like autopilot_build or autopilot_test, which perform builds/tests rather than package resolution.

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 an explicit trigger condition: 'Use this when a build fails due to missing or unresolvable packages.' That is a clear when-to-use, but it does not name the alternative tool (e.g. autopilot_build or autopilot_apply_fixes) or state when not to use it.

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