Skip to main content
Glama

generate_swift_docs

Generate Swift Package documentation with DocC, saving to a specified directory. Optionally open in browser or prepare for static hosting.

Instructions

Generates documentation for a Swift Package using DocC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputPathYesDirectory where the generated documentation will be saved
openInBrowserNoOpen the generated documentation in a browser after generation (default: false)
hostingBasePathNoBase path for hosting the documentation (e.g., '/docs')
transformForStaticHostingNoTransform the documentation for static hosting (default: true)
Behavior2/5

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

With no annotations provided, the description must fully disclose behavior. It only states the basic action and method, without mentioning potential side effects, output format, required environment, or failure modes. This is minimal disclosure for a generation tool that likely creates files.

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 a single, front-loaded sentence that says exactly what the tool does with no redundant words or filler. It is concise and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having a well-documented schema, the description lacks essential context about prerequisites, expected behavior, or return values. With no annotations and no output schema, the agent has to infer too much about how to invoke and interpret this tool in real workflows.

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?

The schema covers all 4 parameters with descriptions, so the baseline is 3. The description adds no additional parameter semantics beyond the schema, but since schema coverage is 100%, this is acceptable.

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?

The description clearly states the verb ('Generates') and specific resource ('documentation for a Swift Package using DocC'). It distinguishes itself from sibling tools like build_spm_package and test_swift_package, which perform other operations on Swift packages.

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 description provides no explicit guidance on when to use this tool versus alternatives. While it is the only documentation-generation tool among the siblings, it does not state prerequisites or situational context, such as needing an initialized Swift package or Xcode.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r-huijts/xcode-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server