Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EXPO_MCP_PORTNoWebSocket port the phone connects to (match the `<AgentBridge port>` prop in your app).8347

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
app_statusA

Check whether the Expo / React Native app is connected and on which device. Call this first in every session. Waits up to about 6 s for the app to (re)connect. Returns one line per connected app: name, platform and OS version, Expo Go or dev build, window size and Expo SDK; the active one is marked with *. If nothing is connected it returns setup steps (add to the app, same Wi-Fi or adb reverse) instead of failing. Read-only.

app_snapshotA

Read the current screen as a compact text outline: buttons, inputs (with values), switches, text and lists, indented by nesting, each actionable element tagged with a ref like [e3] and its testID. This is the cheapest way to see the app and the source of refs for app_tap, app_type, app_scroll and app_toggle. Use it instead of app_screenshot unless you need pixels, and instead of app_layout unless you need positions. Read-only.

app_layoutA

List elements on the current screen with their position and size in dp (window coordinates), font size and scroll content height, one per line: role "label" [ref] x,y wxh fsN. Use it to check layout: overlaps, alignment, text that is too small, content cut off. For acting on the screen app_snapshot is cheaper. Read-only.

app_screenshotA

Take a JPEG screenshot of the app (needs react-native-view-shot in the app). Use it only for visual questions (colours, images, spacing, how it looks); app_snapshot is far cheaper for finding and acting on elements. Returns the image, or with saveTo writes the file on this computer and returns only its path (no image tokens; overwrites an existing file). fullScroll stitches the whole scroll view into one tall image. Read-only for the app.

app_batchA

Run up to 30 actions in order in one call: the fastest way to fill a form or walk a known flow. Each step is {action, ...the same arguments as that tool}, where action is "tap", "type", "scroll", "toggle", "navigate", "wait" or "dismiss_keyboard". Example: [{action:"type", testID:"email", value:"a@b.co"}, {action:"tap", text:"Sign in"}, {action:"wait", text:"Welcome"}]. Stops at the first failing step and says which. Steps can submit forms or trigger app actions, same as the single tools. Returns a confirmation (screen reported once, at the end), what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_tapA

Press a button or other pressable element by calling its onPress (or onLongPress), like a finger tap. Pick the element with exactly one of ref, testID or text. The press runs the app's own handler, which may submit, delete or send data, so check what a button does before pressing anything irreversible. For switches use app_toggle; for text fields use app_type. Returns a confirmation, what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_typeA

Set the text of a TextInput, firing onChangeText like real typing (no keyboard needed). Replaces the current text unless append=true. Pick the element with exactly one of ref, testID or text. (text matches the placeholder or label.) submit=true also fires onSubmitEditing, which may submit the form. Returns a confirmation, what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_scrollA

Scroll a ScrollView, FlatList or SectionList to reveal more content. Without a target it scrolls the first scrollable view on screen. "down"/"up"/"left"/"right" move by one page (about 70% of the screen); "top"/"bottom" jump to the start or end. Only moves the view, changes no data. Returns a confirmation, what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_toggleA

Change a Switch by calling its onValueChange: flips it, or sets it to value when given (setting a value is idempotent). Pick the element with exactly one of ref, testID or text. The app's handler runs, so the setting may be saved immediately. For buttons use app_tap. Returns a confirmation, what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_navigateA

Jump straight to a screen: an expo-router path like "/settings" or "/product/42" (needs router passed to ), or a full deep link "myapp://…". Pushes the screen onto the stack; replace=true swaps the current one. Faster than tapping through menus; changes no data. Returns a confirmation, what changed on screen (+ added, - removed lines), and any new JS errors or failed network requests the action caused.

app_waitA

Wait until some text or a testID appears on screen, or disappears with gone=true (spinners, loading states, toasts). Cheaper than polling app_snapshot. Give text or testID. Read-only. Returns how long it took and the screen; returns an error if the timeout passes first.

app_dismiss_keyboardA

Hide the on-screen keyboard (Keyboard.dismiss). Use it after app_type when the keyboard covers a button you need to tap or a screenshot should show the full screen. Typed text is kept and nothing is submitted; to submit a field use app_type with submit=true instead. Inside app_batch use the step {action:"dismiss_keyboard"}. Returns a confirmation.

app_logsA

Read console output and JavaScript errors captured inside the app (the last 300 entries, each cut to 2000 chars), one per line: time LEVEL message, then a cursor. Use it to debug crashes, red screens and unexpected behaviour; for failed API calls use app_network. Action tools already report new errors they cause, so call this for the full context. Pass that cursor as since next time to see only new entries. Read-only unless clear=true, which empties the captured logs and network requests (the app itself is unaffected).

app_networkA

List HTTP requests the app made through fetch or XMLHttpRequest (the last 150), one per line: time METHOD url -> status or error, duration; optionally with truncated request and response bodies. Ends with a cursor for since. Use it to debug failing API calls, slow requests or wrong payloads; for JavaScript errors and console output use app_logs. Read-only. Requests made by native modules outside fetch/XHR (e.g. image loading) are not captured.

app_evalA

Run JavaScript inside the running app and return the result as JSON (promises are awaited). Pass an expression ("RN.Dimensions.get('window')") or statements ending with return. bridge (the agent bridge) and RN (react-native) are in scope. Development builds only; the app can turn it off with allowEval={false}. The code runs with the app's full access, so it can change app state or storage: prefer the other tools and use this for inspection.

app_reloadA

Reload the app's JavaScript bundle, like pressing r in Metro, and wait up to 90 s for it to reconnect. Use after changing code when Fast Refresh did not pick it up. In-memory state (form input, navigation stack) is reset; stored data is kept. Returns "Reloaded and reconnected" or why it did not happen.

device_keyA

Press a hardware or system key on an Android phone or emulator through adb (needs USB debugging or wireless debugging; iOS is not supported). Keys: volume_up, volume_down, mute, back, home, app_switch, enter, tab, delete, power, menu, escape. "back" is the Android back button, "home" leaves the app (it keeps running), "power" turns the screen off. Nothing is deleted. Returns a confirmation.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 17 tools

Disambiguation5/5

Tools are cleanly separated by purpose: inspection (app_snapshot, app_layout, app_screenshot), interaction (app_tap, app_type, app_scroll, app_toggle), lifecycle (app_status, app_reload), and debugging (app_logs, app_network, app_eval). Descriptions explicitly recommend one tool over another (e.g. snapshot vs screenshot vs layout), so an agent can reliably choose the right tool.

Naming Consistency4/5

All tools use snake_case, and 16 of 17 share the app_ prefix with consistent noun/verb suffixes. device_key is a deliberate outlier for device-level hardware keys, which is a minor deviation from an otherwise predictable convention.

Tool Count4/5

17 tools is slightly above the ideal 3-15 range, but each tool has a distinct role across inspection, interaction, batching, debugging, and lifecycle management. The set is well-scoped with no obviously redundant tools.

Completeness4/5

The surface covers connection, screen inspection, interaction, waiting, batch flows, debugging, eval, and reload, so core app-automation workflows are supported. Minor gaps include no explicit gesture/swipe beyond scroll views, no iOS hardware key support, and no dedicated back-navigation action outside Android.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues