Skip to main content
Glama
XC-MCP: XCode CLI wrapper

XC-MCP: XCode CLI wrapper

by conorluddy

Set Simulator Appearance/Locale

simctl-appearance
Idempotent

Controls iOS simulator appearance settings—theme, dynamic text size, locale, region, and contrast—to test UI variants and reset defaults from a terminal or MCP session.

Instructions

simctl-appearance

Control iOS simulator appearance: theme (light/dark), dynamic type size, locale, and region.

What it does

Wraps xcrun simctl ui and xcrun simctl spawn defaults write to let you switch appearance settings on a running simulator without leaving your terminal or MCP session.

Contrast

contrast: high or normal sets increase_contrast and verifies it by reading the setting back. reset also restores normal contrast.

Parameters

  • udid (string, optional): Simulator UDID. Auto-detects booted simulator if omitted.

  • theme ('light' | 'dark', optional): Switch light/dark appearance.

  • textSize (string, optional): Dynamic type size alias (XS–AX5, see table below).

  • locale (string, optional): BCP-47 language code (e.g. en, ar, de).

  • region (string, optional): ISO 3166-1 alpha-2 region code (e.g. US, SA). Requires locale.

  • bundleId (string, optional): App bundle ID — terminate + relaunch after locale change. Requires locale.

  • reset (boolean, optional): Reset theme, text size, and locale to system defaults (light / M / en_US). Incompatible with other flags.

Text Size Aliases

Alias

xcrun token

XS

extra-small

S

small

M

medium (default)

L

large

XL

extra-large

XXL

extra-extra-large

XXXL

extra-extra-extra-large

AX1

accessibility-medium

AX2

accessibility-large

AX3

accessibility-extra-large

AX4

accessibility-extra-extra-large

AX5

accessibility-extra-extra-extra-large

RTL Locales

Locales starting with ar, he, fa, ur, or yi are flagged as RTL. The response includes a [RTL layout] note and guidance to verify RTL support.

Returns

JSON response with:

  • success: overall operation success

  • udid: resolved simulator UDID

  • results: per-operation { success, message } objects (theme, textSize, locale, or reset)

  • guidance: next-step suggestions

Examples

Switch to dark mode

await simctlAppearanceTool({ theme: 'dark' })

Set large dynamic type

await simctlAppearanceTool({ textSize: 'AX3' })

Set Arabic locale (Saudi Arabia) and restart app

await simctlAppearanceTool({
  locale: 'ar',
  region: 'SA',
  bundleId: 'com.myapp.ios',
})

Combine theme and text size

await simctlAppearanceTool({ theme: 'dark', textSize: 'XL' })

Reset all appearance to defaults

await simctlAppearanceTool({ reset: true })

Validation Rules

  • At least one of theme, textSize, locale, or reset must be provided.

  • reset cannot be combined with theme, textSize, or locale.

  • region requires locale.

  • bundleId requires locale.

Important Notes

  • The simulator must be booted for commands to succeed.

  • Locale changes apply on the next cold app launch unless bundleId is provided.

  • Multiple operations can be combined in a single call (e.g., theme + textSize).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "simctl-appearance"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidNo
resetNo
themeNo
localeNo
regionNo
bundleIdNo
contrastNo
textSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.0.0
    • addedInput schema / properties / contrast
      Added value: +{
      +  "enum": [
      +    "high",
      +    "normal"
      +  ],
      +  "type": "string"
      +}
  2. Addedv4.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses non-obvious behavior: locale changes only take effect on the next cold launch unless bundleId triggers a terminate+relaunch, reset restores light/M/en_US, and contrast is verified by reading the setting back. It also states the booted-simulator prerequisite, which the annotations do not cover.

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?

Markdown headings front-load purpose, contrast, parameters, then validation and notes, so an agent can stop early. There is some redundancy: the five examples restate parameter combinations already spelled out, and the alias table's xcrun tokens are not actionable for a caller who only passes XS–AX5.

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?

With 0% schema coverage and no output schema, the description supplies everything needed: per-parameter meaning, validation constraints, error-prone prerequisites, and an explicit Returns section describing success/udid/results/guidance. Nothing required to call it correctly is missing.

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 description coverage is 0%, so the description carries the full burden and does: every one of the 8 parameters is explained, including conditional dependency rules (region/bundleId require locale, reset incompatible with other flags) and a full alias table for textSize. It also clarifies contrast's 'high'/'normal' semantics, which is undocumented in the schema.

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 opens with a specific verb+resource: 'Control iOS simulator appearance: theme (light/dark), dynamic type size, locale, and region,' and names the underlying commands (`xcrun simctl ui`, `spawn defaults write`). That scope cleanly separates it from siblings like simctl-status-bar, simctl-location, or localization-audit.

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?

It gives concrete trigger conditions (must be booted, at least one of theme/textSize/locale/reset required, region and bundleId require locale, reset is exclusive) plus worked examples. It stops short of explicitly naming sibling tools and when to prefer them (e.g., localization-audit vs. setting locale here), so it's strong context without alternatives.

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