Skip to main content
Glama

Inside an app

inspect_app

Inspect web views, React Native targets, and iPhone accessibility elements when screen reading cannot reach them; list pages/elements, click, evaluate JS, reload, or press by name.

Instructions

Reach inside an app where read_screen cannot: a web view, React Native, or an iPhone with no runner. Web view of a debuggable app: web_pages, web_elements (the DOM, at tap coordinates), web_click (selector: CSS), web_eval (js); page: id or part of a title or URL. Metro: rn_targets, rn_logs (the JS console for ms), rn_reload. The iPhone's accessibility service: ax_list, ax_press (name). Returns the listing, or what was done.

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

Input Schema

NameRequiredDescriptionDefault
jsNo
msNo
appNo
nameNo
pageNo
metroNolocalhost:8081
actionYes
targetNo
selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A4/5.0
Behavior3/5

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

Only openWorldHint is declared, so the description carries most of the burden; it does add value by stating environment prerequisites (debuggable app, Metro endpoint, accessibility service) and a return contract ("Returns the listing, or what was done"). However it does not disclose that web_click and ax_press mutate UI state, that rn_reload restarts the bundle, or any permission/auth requirements — significant omissions for a tool with mutating actions.

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?

Front-loaded with the differentiator and then organized as a compact environment→action→parameter mapping with no filler. The telegraphic style (e.g. "rn_logs (the JS console for ms)") is efficient but borders on cryptic for the parenthetical parameter hints.

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

Completeness3/5

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

For a 9-parameter action-switch tool with no output schema and only an openWorldHint annotation, the description covers action routing and most parameter meaning but not per-action return shapes ("the listing, or what was done" is vague for nine distinct actions) or the two undocumented parameters. Adequate to call correctly in the common path, incomplete for edge cases.

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?

With 0% schema description coverage across 9 parameters, the description compensates well: it defines js, selector (CSS), page (id or part of a title or URL), ms (console log capture window), metro (defaulted endpoint), and name (for ax_press), and maps each action string to its behavior. It leaves app and target unexplained, which is the main gap given the schema provides no help for them.

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?

"Reach inside an app where read_screen cannot: a web view, React Native, or an iPhone with no runner" names the resource (app internals) and the exact scope, then enumerates the concrete sub-operations (DOM inspection, JS eval, Metro targets/logs, accessibility service). It explicitly positions itself against sibling read_screen, so an agent can separate the two without opening either schema.

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 an explicit use condition ("where read_screen cannot") plus a routing table by environment: web view of a debuggable app → web_*, Metro → rn_*, iPhone with no runner → ax_*. What's missing is an explicit when-not for cases where read_screen is the better choice (in-app/native UI with a runner accessible) and any fallback ordering when several environments are present.

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