Skip to main content
Glama

Swift app audit context

swift_app_audit
Read-onlyIdempotent

Collect Swift and SwiftUI audit references from WWDC sessions, HIG, tutorials, and Swift Evolution to diagnose platform, feature, or symptom issues and return source-grounded findings.

Instructions

Collect Swift and SwiftUI application audit references from indexed WWDC sessions, Human Interface Guidelines, tutorials, and Swift Evolution proposals. Return relevant documentation and findings for the supplied focus, platform, feature, or symptom.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "swift_app_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
focusNoAudit focus area.general
limitNo
formatNoResponse formatmarkdown
featureNoFeature/screen/workflow being audited.
symptomNoObserved bug, performance issue, warning, or failure mode.
year_minNoPrefer WWDC sessions from this year or newer.
platformsNoTarget Apple platforms.
frameworksNoFrameworks or APIs, e.g. SwiftUI, SwiftData, AppKit, StoreKit.
include_evolutionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.3
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / feature / maxLength
      Added value: +500
    • addedInput schema / properties / symptom / maxLength
      Added value: +500
    • addedInput schema / properties / year_min / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / year_min / minimum
      Added value: +-9007199254740991
  2. First observedv0.2.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that content is drawn from an 'indexed' corpus and that output is 'documentation and findings', but says nothing about how results are ranked or merged across the four sources, how the default limit of 20 is applied per-source or overall, or what happens when a focus yields no matches.

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 sentences with the source inventory front-loaded before the input mapping, and no filler or restatement of the title. It is efficient, though the second sentence is a compressed list of four input concepts that could be slightly easier to scan.

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 9-parameter, no-output-schema, multi-source aggregation tool, the description is adequate but thin: it explains where content comes from and what inputs steer it, yet leaves the caller without guidance on result composition, cross-source merging, or when empty/default parameters are appropriate. The absence of an output schema raises the burden slightly, though the format parameter partially compensates.

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 78%, near the threshold where the schema carries the burden, so 3 is the baseline. The description does add useful framing by naming focus/platform/feature/symptom as the four audit dimensions an agent can combine, but it never mentions limit, format, year_min, include_evolution, or frameworks, leaving five of nine parameters explained only by 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?

States a specific verb ('Collect ... audit references') and enumerates the four source corpora it draws from (WWDC sessions, HIG, tutorials, Swift Evolution), which distinguishes it from single-source siblings like apple_hig_search or wwdc_search. It stops short of naming those siblings explicitly, so an agent must infer the differentiation from the source list rather than being told.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The second sentence describes what inputs drive the lookup ('the supplied focus, platform, feature, or symptom'), not when to choose this tool over alternatives. With ~40 sibling tools including apple_search_all, wwdc_search, and apple_cross_references, an agent gets no signal about why it would pick this aggregated audit tool instead of a broad search or a single-source lookup.

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