Skip to main content
Glama
xcode-analyzer-mcp

xcode-analyzer-mcp

by sunny-maeng

detect_large_files

Scan an Xcode project for large images, videos, fonts, JSON, plists, storyboards, and asset catalogs that increase app size, using size thresholds to identify files worth optimizing.

Instructions

Find large files and resources in the project that impact app size. Scans images, videos, fonts, JSON, xcassets, and other file types.

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": "detect_large_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoriesNoFile categories to scan (default: ['all'])
projectPathYesPath to the Xcode project root directory
thresholdKBNoMinimum file size in KB to report (default: 500)
checkXcassetsNoAnalyze .xcassets image sets individually (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral weight; "Find" and "Scans" imply a read-only analysis pass, and the enumerated file types set the scan scope. It does not state whether the scan is read-only, how expensive it is on large projects, or what the report contains, so gaps remain for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the purpose and followed by scope detail; nothing is wasted. The second sentence is somewhat redundant with the first but does add the concrete file-type coverage.

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 four-parameter, read-only scan tool with a fully documented schema and no output schema, the description covers purpose and scan scope adequately. It leaves the shape of the result (file list with sizes, grouped by category) unstated, which is a minor gap given there is no output schema to fall back on.

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 four parameters (categories, projectPath, thresholdKB, checkXcassets) are already documented, which sets the baseline at 3. The description's list of file types loosely echoes the categories enum but adds no new meaning such as default threshold behavior or category interaction.

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 verb and resource ("Find large files and resources") and states the intent ("impact app size"). The sibling set is entirely different in kind (retain cycles, unused imports, build time), so an agent can distinguish this without an explicit contrast sentence.

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 by the phrase "impact app size" – an agent can infer this is for size-reduction investigations, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. Nothing misleading, but nothing that routes the agent either.

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