Skip to main content
Glama

Reload app

reload_app

Triggers a Metro/JavaScript reload on React Native dev-client builds via the RELOAD_APP_ACTION broadcast to apply JS edits; if the app doesn't visibly reload, open the dev menu and tap Reload.

Instructions

Best-effort: trigger a Metro/JS reload on a React Native dev-client build via the classic .RELOAD_APP_ACTION broadcast. Only works on debug builds of classic (non-bridgeless) RN architectures that register the receiver — on newer RN/Expo dev clients it may silently no-op with no error. If the app doesn't visibly reload, use open_dev_menu then tap_on_text("Reload") instead. PREREQUISITE: the app must be able to reach Metro at all — run adb_reverse {device_port: 8081} first, or a reload lands you back on the EMBEDDED bundle and your edits still won't appear (app_state tells you which bundle the running process is actually serving).

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": {
      "package": "<package>"
    },
    "name": "reload_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
packageYesApplication package name (e.g. com.example.app).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false and openWorldHint=false; the description adds substantial context beyond that: best-effort semantics, silent no-op on newer RN/Expo dev clients, and the trap where a reload without adb_reverse lands on the embedded bundle. It doesn't spell out whether the broadcast is scoped to the given package's receiver beyond the action name, but the failure modes are unusually well disclosed.

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 core action and the best-effort caveat, then prerequisite. It is dense and every sentence carries information, though the long parenthetical sentence about Metro reachability is slightly harder to parse than it needs to be.

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?

For a two-parameter, no-output tool this is complete: it covers what the tool does, when it silently fails, what to do instead, and the prerequisite that determines whether the reload is meaningful. An agent has everything needed to call it correctly or route around 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 100%, so both serial and package are already documented in the schema. The description adds related context (Metro port 8081 via adb_reverse, app_state for bundle inspection) but nothing that further clarifies these two parameters themselves, so the baseline 3 applies.

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 specific verb and resource: trigger a Metro/JS reload on a React Native dev-client build via the RELOAD_APP_ACTION broadcast. It immediately distinguishes itself from siblings by naming open_dev_menu and tap_on_text as the fallback path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when it works (debug builds, classic non-bridgeless architecture with a registered receiver) and when it fails silently. It names the concrete alternative (open_dev_menu then tap_on_text("Reload")) and the prerequisite step (adb_reverse {device_port: 8081}).

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