Skip to main content
Glama
xcode-analyzer-mcp

xcode-analyzer-mcp

by sunny-maeng

analyze_dependency_tree

Analyze SPM and CocoaPods dependency trees to reveal direct and transitive dependencies, version details, and tree structure from an Xcode project path.

Instructions

Analyze SPM (Package.resolved) and CocoaPods (Podfile.lock) dependency trees. Shows direct and transitive dependencies, version info, and tree structure.

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": {
      "projectPath": "<projectPath>"
    },
    "name": "analyze_dependency_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectPathYesPath to the Xcode project root directory
packageManagerNoPackage manager to analyze (default: auto-detect)
showTransitiveNoShow transitive dependency tree (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses that it reads manifest/lock files and that auto-detection of the package manager is the default, but it does not state that the operation is read-only, nor what happens when the lockfile is missing or ambiguous.

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 sentences, zero filler, with the concrete file formats front-loaded followed by the output contents. Every sentence 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 simple three-parameter read-oriented analysis tool with no output schema, the definition covers formats, scope, and output shape adequately. Only edge-case behavior on missing or conflicting lockfiles is left implicit.

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 all three parameters are already documented, which sets the baseline at 3. The description adds a little context by tying SPM/CocoaPods to their lockfile formats and by mentioning transitive output, but adds no defaults or format details beyond the schema.

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?

Names a specific verb (Analyze) and concrete resources (SPM Package.resolved and CocoaPods Podfile.lock), and states what the result contains (direct/transitive deps, versions, tree structure). It does not explicitly contrast itself with siblings such as analyze_circular_dependencies, 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 Guidelines3/5

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

The scope is clear enough to imply when to use it (inspecting dependency trees for either package manager), but there is no explicit when/when-not guidance and no pointer to alternatives like analyze_circular_dependencies for overlapping dependency questions.

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