Skip to main content
Glama

change_directory

Set the active directory for relative path operations in Xcode projects. Specify a path to change the working directory, supporting absolute, relative, and home (~) paths.

Instructions

Changes the active directory for relative path operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryPathYesPath to the directory to set as active. Supports absolute paths, paths relative to the current active directory, and ~ for home directory.
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It states the primary effect but omits side effects such as validation behavior, persistence across calls, interaction with the directory stack, or failure modes. This is a state-changing operation, so more transparency is expected.

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 with zero wasted words. It clearly communicates the core action and effect, achieving maximum brevity without losing meaning.

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?

The tool is simple (one parameter, no output schema), and the description covers the primary function. However, given the sibling tools for directory navigation, it omits context about how this relates to push_directory/pop_directory and whether the change is persistent or scoped. This leaves a minimal but acceptable level of completeness.

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 description covers 100% of the parameter, providing detailed guidance on accepted path forms (absolute, relative, ~). The description itself adds no parameter information, but the schema carries the burden. Baseline 3 applies.

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 uses a specific verb ('Changes') and resource ('active directory') with a clear scope ('for relative path operations'). This distinguishes it from siblings like get_current_directory (read) and push_directory/pop_directory (stack-based navigation), making its purpose unambiguous.

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 description implies usage for setting the base directory for subsequent relative path operations, but it does not explicitly state when to prefer this over push_directory/pop_directory or provide exclusions. No alternative tools are mentioned, leaving the agent to infer the context.

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