Skip to main content
Glama

session_set_defaults

Set default parameters for iOS build and simulator tools, applying to the active profile or a specified profile that becomes active.

Instructions

[XcodeBuildMCP] Set session defaults for the active profile, or for a specified profile and make it active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoDefault environment variables to pass to launched apps.
archNo
schemeNo
persistNoPersist provided defaults to .xcodebuildmcp/config.yaml
profileNoSet defaults for this named profile and make it active for the current session.
bundleIdNoDefault bundle ID for launch/stop/log tools when working on a single app.
deviceIdNo
platformNoDefault device platform for device tools (e.g. iOS, watchOS).
extraArgsNoDefault extra xcodebuild arguments for tools that accept extraArgs.
projectPathNoxcodeproj path (xor workspacePath)
simulatorIdNoMachine-local simulator UDID, materialized from simulatorName when one is set; UDIDs are not portable across machines.
useLatestOSNo
configurationNoBuild configuration for Xcode and SwiftPM tools (e.g. 'Debug' or 'Release').
simulatorNameNoCanonical, machine-portable simulator selector (safe to share via SCM); the background refresh re-resolves it to this machine’s UDID.
workspacePathNoxcworkspace path (xor projectPath)
derivedDataPathNoDefault DerivedData path for Xcode build/test/clean tools.
preferXcodebuildNoPrefer xcodebuild over incremental builds for Xcode build/test/clean tools.
suppressWarningsNo
createIfNotExistsNoCreate the named profile if it does not exist. Defaults to false.
simulatorPlatformNoCached platform derived from the selected simulator’s runtime; must be cleared/recomputed whenever the simulator selector changes.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the side effect of making a specified profile active, but does not explain whether unspecified settings are merged or replaced, what 'session defaults' entail, or any safety or persistence implications beyond the schema's persist parameter. This is a significant gap for a mutation tool.

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?

The description is a single concise sentence with no wasted words, but it lacks structured detail given the tool's complexity (20 parameters). It is efficient but could benefit from a more structured breakdown of key behavior or parameters.

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?

This is a complex tool with 20 parameters and no output schema. The description does not explain the concept of session defaults, how profiles work, the effect on other tools, or what the tool returns. It is too minimal for the complexity, making it incomplete for an agent to fully understand when and how to use it.

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 75%, so the schema provides decent parameter documentation. However, the description adds no parameter-specific meaning, and several parameters (arch, scheme, deviceId, useLatestOS, suppressWarnings) lack descriptions in the schema. The description does not compensate for these gaps, so a baseline 3 is justified.

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 a specific action: 'Set session defaults' for the active profile or a specified profile. It distinguishes from the sibling tool 'session_show_defaults' by focusing on setting rather than showing, making the 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 by mentioning setting defaults for either the active profile or a specified profile, but it does not explicitly state when to use this tool over alternatives or provide context on prerequisites or expected workflow. The guidance is minimal, so a score of 3 is appropriate.

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/atz-dsampath/rn-sim-mcp'

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