Skip to main content
Glama
drewster99

xcode-mcp-server (drewster99)

by drewster99

set_run_destination

Idempotent

Select a device or simulator as the active run destination in Xcode by providing a destination ID obtained from list_run_destinations.

Instructions

Set the active run destination (device or simulator) in Xcode.

Use list_run_destinations to get available destination IDs, then pass the desired 'id' value here to select it. Subsequent build and run operations will target this destination.

Args: project_path: Path to an Xcode project (.xcodeproj) or workspace (.xcworkspace). destination_id: The destination identifier to select. This is the 'id' field from list_run_destinations output (e.g. a simulator UDID or device UDID).

Returns: JSON with the name and id of the destination that was set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes
destination_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations confirm idempotentHint=true, and description adds effect on subsequent build/run. However, does not disclose error handling for invalid destination_id or project_path.

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?

Three sentences plus docstrings for args/returns; front-loaded purpose, no extra words.

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

Completeness5/5

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

Explains dependencies (list_run_destinations), effect on subsequent operations, and return format. Has output schema, so return explanation is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but description provides full explanations for both parameters: project_path as path to .xcodeproj/.xcworkspace, destination_id as ID from list_run_destinations with UDID example.

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?

Clearly states 'Set the active run destination' with specific verb and resource. Distinguishes from sibling tools like list_run_destinations and get_active_run_destination.

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

Usage Guidelines4/5

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

Explicitly instructs to use list_run_destinations first to get destination IDs, then pass the id here. Implies usage context before build/run operations, but no explicit when-not-to-use.

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/drewster99/xcode-mcp-server'

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