Skip to main content
Glama

sim_action

Destructive

Do one thing on an iOS simulator (the running one, or udid): boot or shutdown (with udid), tap (x, y), swipe (x, y to toX, toY), type text into the focused field (any language), home, open_url (a link or deep link), launch an app by bundleId, or install an .app (appPath, inside the folders BCD may use; build one with ios_build). x and y are fractions of sim_screenshot's image. Take a sim_screenshot after to see the result. Needs ui permission; launch also needs process, and install process and read, since a simulator app runs as a program on this Mac.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "sim_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
toXNo
toYNo
urlNo
textNo
udidNo
actionYes
appPathNo
bundleIdNo
deviceIdNoComputer name or id
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / properties / appPath / maxLength
      Removed value: -4096
    • removedInput schema / properties / bundleId / maxLength
      Removed value: -200
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / text / maxLength
      Removed value: -2000
    • removedInput schema / properties / text / minLength
      Removed value: -1
    • removedInput schema / properties / udid / maxLength
      Removed value: -40
    • removedInput schema / properties / url / maxLength
      Removed value: -2000
    • removedInput schema / properties / url / minLength
      Removed value: -1
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint, openWorldHint and non-readOnly, and the description adds real context beyond them: required permissions (ui; process for launch; process and read for install), the reason (a simulator app runs as a program on this Mac), and the constraint that appPath must live in folders BCD may use. It does not describe failure modes or what happens to a running app on shutdown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single long sentence that packs the action list, coordinate semantics, follow-up guidance and permission requirements into one run-on stream. The action enumeration is usefully front-loaded, but breaking permissions and the screenshot follow-up into separate sentences would make it easier to scan without adding length.

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

Completeness4/5

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

For a 12-parameter mutation tool with no output schema, the description covers the action enum, coordinate meaning, required permissions and the natural verification step (sim_screenshot). The main gap is that deviceId ('Computer name or id') and workSessionId are never addressed in prose, so the agent must infer how to target a specific workstation or session.

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

Parameters4/5

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

Schema description coverage is only 17%, so the description must compensate, and it largely does: x/y are fractions of sim_screenshot's image (also implying toX/toY for swipe), text targets the focused field and supports any language, url accepts links or deep links, bundleId selects the app for launch, appPath is the install target and its location is restricted. Only deviceId and workSessionId are left unexplained.

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?

States a concrete verb ('do one thing') on a specific resource (an iOS simulator, running one or by udid) and enumerates every supported action: boot, shutdown, tap, swipe, type, home, open_url, launch, install. This distinguishes it clearly from siblings like sim_screenshot and ios_build, both of which it names.

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?

Gives explicit workflow guidance: take a sim_screenshot after to see the result, and build an .app with ios_build before installing. It also notes boot/shutdown need a udid, which is when-to-use context. It stops short of stating when-not-to-use cases, such as preferring app_press or app_type for in-app UI.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources