Skip to main content
Glama

Navigate back in the app or system

back

Navigates to the previous screen via the app's navigation stack or platform system navigation; on Android, system mode also dismisses dialogs and modal screens.

Instructions

Navigate back in the app or through system navigation. The in-app mode targets the app navigation stack; system targets platform back behavior. iOS has no system back: both modes only pop the navigation stack and never close a modal or sheet, whose own Close or Cancel control does; Android's system back also closes dialogs and modal screens. On iOS, back presses the navigation bar system back button (identifier BackButton) only when exactly one hittable one is found in a readable accessibility tree, and succeeds only when the bar count, the back button count, or a back button title then changes; a back button with no title, such as the iPhone Duo's floating one, is confirmed by its bar's title instead, which must hold still before the tap, and a bar that retitles itself can be misread as a pop. Otherwise it swipes from the left edge (on an iPad whose app window cannot be resolved, only while the app fills the screen) and succeeds only when the app screen changes. Reason back_swipe_no_change: the swipe was sent and the screen did not change; details.dismissControls then lists the top-band Back, Close, Cancel, or xmark buttons (never Done or Save) as { selector, label, identifier? }, and the hint names a lone one. Press one by its selector; back returns no refs, because it expires them. Reason back_swipe_unverified: the button was pressed but the bar state did not change after the tap, or the swipe may or may not have navigated because the screen kept changing before it or could not be sampled after it. Reason back_swipe_not_dispatched, or a screen that cannot be sampled before the swipe, means nothing was sent. An app with a left-edge drawer may open the drawer instead. Times out after 90s; a caller-supplied budget extends it.

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": "back"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
udidNoApple device or simulator UDID.
deviceNoDevice name; ids go in udid or serial.
serialNoAndroid, HarmonyOS, or Vega VVD serial.
settleNoOnce the UI goes quiet, return the diff vs the pre-action tree. Best-effort; never fails the action.
sessionNoSession name.
noRecordNoDo not record this action.
platformNoDevice platform.
timeoutMsNoSettle: wait deadline in milliseconds (default 10000).
deviceTargetNoDevice form factor.
settleQuietMsNoSettle: quiet window in ms (default 500, 300 on iOS simulator; broad iOS screen swaps hold at least 1500).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.21.38
    • removedInput schema / properties / debug
      Removed value: -{
      -  "description": "Enable debug diagnostics.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / includeCost
      Removed value: -{
      -  "description": "Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / mcpOutputFormat
      Removed value: -{
      -  "description": "Result text: compact optimized (default) or the full result as JSON (larger).",
      -  "enum": [
      -    "optimized",
      -    "json"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / responseLevel
      Removed value: -{
      -  "description": "Result detail: digest (smallest) or full (largest), as JSON; default is compact text.",
      -  "enum": [
      -    "digest",
      -    "default",
      -    "full"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / settle / description
      Previous value: -"After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action."New value: +"Once the UI goes quiet, return the diff vs the pre-action tree. Best-effort; never fails the action."
    • changedInput schema / properties / settleQuietMs / description
      Previous value: -"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs."New value: +"Settle: quiet window in ms (default 500, 300 on iOS simulator; broad iOS screen swaps hold at least 1500)."
    • removedInput schema / properties / target
      Removed value: -{
      -  "description": "Alias for deviceTarget.",
      -  "enum": [
      -    "mobile",
      -    "tv",
      -    "desktop"
      -  ],
      -  "type": "string"
      -}
  2. Changed16 schema fields changedv0.21.37
    • removedInput schema / properties / androidDeviceAllowlist
      Removed value: -{
      -  "description": "Android serial allowlist used for device resolution.",
      -  "type": "string"
      -}
    • changedInput schema / properties / device / description
      Previous value: -"Device name selector (a UDID belongs in udid, a serial in serial)."New value: +"Device name; ids go in udid or serial."
    • changedInput schema / properties / deviceTarget / description
      Previous value: -"Device target form. Maps to the CLI --target flag."New value: +"Device form factor."
    • changedInput schema / properties / includeCost / description
      Previous value: -"Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged."New value: +"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text."
    • removedInput schema / properties / leaseId
      Removed value: -{
      -  "description": "Existing lease identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / mcpOutputFormat / description
      Previous value: -"MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately."New value: +"Result text: compact optimized (default) or the full result as JSON (larger)."
    • changedInput schema / properties / platform / description
      Previous value: -"Platform selector used to resolve a device."New value: +"Device platform."
    • changedInput schema / properties / responseLevel / description
      Previous value: -"Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged."New value: +"Result detail: digest (smallest) or full (largest), as JSON; default is compact text."
    • removedInput schema / properties / runId
      Removed value: -{
      -  "description": "Lease run identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / serial / description
      Previous value: -"Android, HarmonyOS, or Vega VVD serial selector."New value: +"Android, HarmonyOS, or Vega VVD serial."
    • changedInput schema / properties / session / description
      Previous value: -"Agent-device session name."New value: +"Session name."
    • changedInput schema / properties / settleQuietMs / description
      Previous value: -"Settle: quiet window in milliseconds (default 500; 300 when the settled tree comes from the iOS simulator snapshot bridge). On iOS, a broad screen replacement such as a modal dismissal is confirmed for at least 1500ms whatever window is asked for, within the timeoutMs settle deadline; a replacement from a screen the pre-action capture read as presenting nothing, such as a tab switch, gets no 1500ms confirmation and keeps the asked window."New value: +"Settle: quiet window in milliseconds (default 500; 300 on the iOS simulator snapshot bridge). On iOS, a broad replacement of a non-empty screen holds at least 1500ms within timeoutMs."
    • changedInput schema / properties / target / description
      Previous value: -"Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element."New value: +"Alias for deviceTarget."
    • removedInput schema / properties / tenant
      Removed value: -{
      -  "description": "Remote tenant identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / udid / description
      Previous value: -"Apple device or simulator UDID; the selector that pins one device when several share a name."New value: +"Apple device or simulator UDID."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "action": {
      -      "const": "back",
      -      "type": "string"
      -    },
      -    "message": {
      -      "type": "string"
      -    },
      -    "mode": {
      -      "enum": [
      -        "in-app",
      -        "system"
      -      ],
      -      "type": "string"
      -    },
      -    "settle": {
      -      "properties": {
      -        "captures": {
      -          "type": "number"
      -        },
      -        "diff": {
      -          "description": "Settled diff vs the pre-action tree (changed lines only).",
      -          "properties": {
      -            "lines": {
      -              "items": {
      -                "properties": {
      -                  "kind": {
      -                    "enum": [
      -                      "added",
      -                      "removed"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "ref": {
      -                    "description": "Plain ref body (e12) for added lines.",
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "kind",
      -                  "text"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "summary": {
      -              "properties": {
      -                "additions": {
      -                  "type": "number"
      -                },
      -                "removals": {
      -                  "type": "number"
      -                },
      -                "unchanged": {
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "additions",
      -                "removals",
      -                "unchanged"
      -              ],
      -              "type": "object"
      -            },
      -            "truncated": {
      -              "description": "Lines were capped to the response bound.",
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "summary",
      -            "lines"
      -          ],
      -          "type": "object"
      -        },
      -        "hint": {
      -          "type": "string"
      -        },
      -        "quietMs": {
      -          "type": "number"
      -        },
      -        "refs": {
      -          "items": {
      -            "properties": {
      -              "ref": {
      -                "description": "Plain ref body (e12) minted from the stored settled tree.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "ref"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "refsGeneration": {
      -          "description": "Snapshot generation of the stored settled tree; refs on added diff lines were minted from it.",
      -          "type": "number"
      -        },
      -        "settled": {
      -          "description": "Whether the UI held the quiet window before the deadline. false is advisory, not failure.",
      -          "type": "boolean"
      -        },
      -        "surfaceChange": {
      -          "description": "Present when an in-place system surface (web sign-in or Apple Pay sheet) was presented over the app, or left it.",
      -          "properties": {
      -            "disclosure": {
      -              "description": "Agent-facing sentence explaining the surface transition.",
      -              "type": "string"
      -            },
      -            "from": {
      -              "description": "Surface the pre-action baseline described: a host bundle id, or app.",
      -              "type": "string"
      -            },
      -            "to": {
      -              "description": "Surface the post-action capture describes: a host bundle id, or app.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "from",
      -            "to",
      -            "disclosure"
      -          ],
      -          "type": "object"
      -        },
      -        "tail": {
      -          "description": "Unchanged interactive refs tail: still-present, actionable elements from the settled tree, attached only when diff carries zero added-line refs (a modal-dismiss/toast-only diff).",
      -          "items": {
      -            "properties": {
      -              "label": {
      -                "type": "string"
      -              },
      -              "ref": {
      -                "description": "Plain ref body (e12) minted from the stored settled tree.",
      -                "type": "string"
      -              },
      -              "role": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "ref",
      -              "role"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "tailTruncated": {
      -          "description": "Present (true) when tail candidates exceeded the response cap.",
      -          "type": "boolean"
      -        },
      -        "timeoutMs": {
      -          "type": "number"
      -        },
      -        "waitedMs": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "settled",
      -        "waitedMs",
      -        "captures",
      -        "quietMs",
      -        "timeoutMs"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "action",
      -    "mode",
      -    "message"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changedv0.21.28
    • changedInput schema / properties / settleQuietMs / description
      Previous value: -"Settle: quiet window in milliseconds (default 500)."New value: +"Settle: quiet window in milliseconds (default 500; 300 when the settled tree comes from the iOS simulator snapshot bridge). On iOS, a broad screen replacement such as a modal dismissal is confirmed for at least 1500ms whatever window is asked for, within the timeoutMs settle deadline; a replacement from a screen the pre-action capture read as presenting nothing, such as a tab switch, gets no 1500ms confirmation and keeps the asked window."
  4. Changed1 schema field changedv0.21.2
    • addedOutput schema / properties / settle / properties / surfaceChange
      Added value: +{
      +  "description": "Present when an in-place system surface (web sign-in or Apple Pay sheet) was presented over the app, or left it.",
      +  "properties": {
      +    "disclosure": {
      +      "description": "Agent-facing sentence explaining the surface transition.",
      +      "type": "string"
      +    },
      +    "from": {
      +      "description": "Surface the pre-action baseline described: a host bundle id, or app.",
      +      "type": "string"
      +    },
      +    "to": {
      +      "description": "Surface the post-action capture describes: a host bundle id, or app.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "to",
      +    "disclosure"
      +  ],
      +  "type": "object"
      +}
  5. Changed3 schema fields changedv0.21.0
    • changedInput schema / properties / device / description
      Previous value: -"Device name selector."New value: +"Device name selector (a UDID belongs in udid, a serial in serial)."
    • changedInput schema / properties / serial / description
      Previous value: -"Android device or Vega VVD serial selector."New value: +"Android, HarmonyOS, or Vega VVD serial selector."
    • changedInput schema / properties / udid / description
      Previous value: -"iOS device UDID selector."New value: +"Apple device or simulator UDID; the selector that pins one device when several share a name."
  6. Changed8 schema fields changedv0.20.10
    • removedInput schema / properties / cwd
      Removed value: -{
      -  "description": "Working directory for command execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonAuthToken
      Removed value: -{
      -  "description": "Remote daemon auth token.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonBaseUrl
      Removed value: -{
      -  "description": "Remote daemon base URL.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosSimulatorDeviceSet
      Removed value: -{
      -  "description": "iOS simulator device-set path used for device resolution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestDerivedDataPath
      Removed value: -{
      -  "description": "Derived data path for external iOS XCTest runner execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestEnvDir
      Removed value: -{
      -  "description": "Writable directory for iOS XCTest runner env overlays.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestrunFile
      Removed value: -{
      -  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      -  "type": "string"
      -}
    • removedInput schema / properties / stateDir
      Removed value: -{
      -  "description": "Agent-device state directory.",
      -  "type": "string"
      -}
  7. Changed1 schema field changedv0.20.9
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "vega",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "harmonyos",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
  8. Changed4 schema fields changedv0.20.6
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settleQuietMs
      Added value: +{
      +  "description": "Settle: quiet window in milliseconds (default 500).",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / timeoutMs
      Added value: +{
      +  "description": "Settle: wait deadline in milliseconds (default 10000).",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / settle
      Added value: +{
      +  "properties": {
      +    "captures": {
      +      "type": "number"
      +    },
      +    "diff": {
      +      "description": "Settled diff vs the pre-action tree (changed lines only).",
      +      "properties": {
      +        "lines": {
      +          "items": {
      +            "properties": {
      +              "kind": {
      +                "enum": [
      +                  "added",
      +                  "removed"
      +                ],
      +                "type": "string"
      +              },
      +              "ref": {
      +                "description": "Plain ref body (e12) for added lines.",
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "text"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "summary": {
      +          "properties": {
      +            "additions": {
      +              "type": "number"
      +            },
      +            "removals": {
      +              "type": "number"
      +            },
      +            "unchanged": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "additions",
      +            "removals",
      +            "unchanged"
      +          ],
      +          "type": "object"
      +        },
      +        "truncated": {
      +          "description": "Lines were capped to the response bound.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "summary",
      +        "lines"
      +      ],
      +      "type": "object"
      +    },
      +    "hint": {
      +      "type": "string"
      +    },
      +    "quietMs": {
      +      "type": "number"
      +    },
      +    "refs": {
      +      "items": {
      +        "properties": {
      +          "ref": {
      +            "description": "Plain ref body (e12) minted from the stored settled tree.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "ref"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "refsGeneration": {
      +      "description": "Snapshot generation of the stored settled tree; refs on added diff lines were minted from it.",
      +      "type": "number"
      +    },
      +    "settled": {
      +      "description": "Whether the UI held the quiet window before the deadline. false is advisory, not failure.",
      +      "type": "boolean"
      +    },
      +    "tail": {
      +      "description": "Unchanged interactive refs tail: still-present, actionable elements from the settled tree, attached only when diff carries zero added-line refs (a modal-dismiss/toast-only diff).",
      +      "items": {
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "description": "Plain ref body (e12) minted from the stored settled tree.",
      +            "type": "string"
      +          },
      +          "role": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "ref",
      +          "role"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "tailTruncated": {
      +      "description": "Present (true) when tail candidates exceeded the response cap.",
      +      "type": "boolean"
      +    },
      +    "timeoutMs": {
      +      "type": "number"
      +    },
      +    "waitedMs": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "settled",
      +    "waitedMs",
      +    "captures",
      +    "quietMs",
      +    "timeoutMs"
      +  ],
      +  "type": "object"
      +}
  9. Changed3 schema fields changedv0.20.2
    • addedInput schema / properties / noRecord
      Added value: +{
      +  "description": "Do not record this action.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • changedInput schema / properties / serial / description
      Previous value: -"Android serial selector."New value: +"Android device or Vega VVD serial selector."
  10. Changed4 schema fields changedv0.17.11
    • addedInput schema / properties / includeCost
      Added value: +{
      +  "description": "Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "web",
      -  "apple"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • addedInput schema / properties / responseLevel
      Added value: +{
      +  "description": "Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.",
      +  "enum": [
      +    "digest",
      +    "default",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "action": {
      +      "const": "back",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "mode": {
      +      "enum": [
      +        "in-app",
      +        "system"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "action",
      +    "mode",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  11. Changed1 schema field changedv0.17.7
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "web",
      +  "apple"
      +]
  12. Changed5 schema fields changedv0.17.6
    • addedInput schema / properties / iosXctestDerivedDataPath
      Added value: +{
      +  "description": "Derived data path for external iOS XCTest runner execution.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestEnvDir
      Added value: +{
      +  "description": "Writable directory for iOS XCTest runner env overlays.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestrunFile
      Added value: +{
      +  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mcpOutputFormat
      Added value: +{
      +  "description": "MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.",
      +  "enum": [
      +    "optimized",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "android",
      -  "macos",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "apple"
      +]
  13. First observedv0.16.9

TDQS

A4/5.0
Behavior5/5

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

Far beyond the annotations (which only say non-readonly, non-destructive), it discloses the 90s timeout and budget extension, the iOS BackButton heuristics and confirmation conditions, the iPad/left-edge drawer caveat, and four named failure reasons including what details.dismissControls contains and that refs are expired. This is exactly the kind of behavioral context the structured fields cannot carry.

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

Conciseness2/5

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

One enormous unstructured paragraph mixes purpose, platform matrix, tap heuristics, swipe fallback, failure taxonomy, and timeout policy with no line breaks or bullets, forcing the agent to parse conditional clauses mid-sentence. The opening is front-loaded, but the size and density of the remainder work against readability rather than every sentence earning its place evenly.

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 cross-platform, device-level navigation tool with no output schema, the description covers outcomes, failure reasons, and result payload shape (details.dismissControls fields) thoroughly. What is missing is only minor: no explicit guidance on which sibling to call instead of retrying, and no clarity on which parameter the 'budget' refers to.

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 coverage is 91%, so the baseline is 3, but the description adds real meaning to the 'mode' enum that the schema only lists: in-app targets the app navigation stack while system targets platform back behavior, with different outcomes per platform. The only soft spot is the vague 'caller-supplied budget extends it', which does not clearly map to timeoutMs (documented in the schema as a settle deadline).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('Navigate back') and immediately splits it into the in-app stack vs platform system back, which lets an agent distinguish it from siblings like 'close' or 'swipe'. The core purpose is clear, but it is buried under an extremely dense follow-on paragraph, and the differentiation from 'close' is only implied through the modal/sheet example.

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 states mode selection semantics (in-app = app navigation stack, system = platform behavior), platform exclusions (iOS has no system back), and the negative case: back never closes a modal or sheet, whose own Close or Cancel control does. It also tells the agent what to do on failure (press the listed dismiss control by selector). It never names a sibling tool explicitly, which keeps it short of a 5.

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