Skip to main content
Glama

swift_package_command

Run Swift Package Manager commands in the active project directory, supporting build, test, clean, and resolve with optional arguments and configurations to streamline development workflows.

Instructions

Executes Swift Package Manager commands in the active project directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe SPM command to execute (e.g., 'build', 'test', 'clean', 'resolve')
extraArgsNoAdditional arguments to pass to the command
configurationNoBuild configuration ('debug' or 'release')
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It only mentions executing in the active project directory, but does not disclose potential side effects (e.g., modifying files, running network operations), how output/errors are returned, or whether certain commands are destructive. This is a significant gap for a command execution tool.

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?

A single, clear sentence with no unnecessary words or redundancy. The key information (executes SPM commands, location context) is front-loaded and efficient.

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?

Given the tool's complexity and the absence of annotations and output schema, the description is too sparse. It does not mention prerequisites (like a valid package in the active directory), the variety of commands supported, or behavioral side effects, making it incomplete for reliable tool invocation.

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% for all three parameters, so the schema already documents them well. The description adds no additional parameter context, hence the baseline score of 3.

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 clearly states the tool executes Swift Package Manager commands, with a specific verb and resource. However, it does not distinguish this generic tool from sibling-specific tools like build_spm_package or test_spm_package, which limits differentiation.

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?

No guidance is provided on when to use this generic command runner versus the dedicated Swift package tools. The description does not mention that this is a fallback for arbitrary commands or that it works best alongside specialized tools.

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