Skip to main content
Glama

Batch Commands

mobile_batch_commands
Destructive

Run multiple mobile automation steps in one call to fill forms or execute multi-step flows without repeated round-trips.

Instructions

Run multiple tools in sequence in a single call, e.g. click, type, click, type. Use this to fill forms or perform multi-step flows without round-trips. The device argument is applied to every step unless a step provides its own. Tools allowed as steps: mobile_list_available_devices, mobile_login_to_cloud_provider, mobile_list_remote_devices, mobile_allocate_remote_device, mobile_release_remote_device, mobile_list_apps, mobile_get_foreground_app, mobile_launch_app, mobile_terminate_app, mobile_clear_app_data, mobile_install_app, mobile_uninstall_app, mobile_get_screen_size, mobile_click_on_screen_at_coordinates, mobile_double_tap_on_screen, mobile_drag_on_screen, mobile_long_press_on_screen_at_coordinates, mobile_list_elements_on_screen, mobile_press_button, mobile_open_url, mobile_swipe_on_screen, mobile_type_keys, mobile_save_screenshot, mobile_take_screenshot, mobile_set_orientation, mobile_fold_device, mobile_set_location, mobile_clipboard, mobile_get_device_logs, mobile_get_orientation, mobile_start_screen_recording, mobile_stop_screen_recording, mobile_list_crashes, mobile_get_crash. A step named "delay" with arguments {"milliseconds": N} (up to 10000) waits before the next step, e.g. for an animation or a page load to finish before looking at the screen.

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": {
      "device": "<device>",
      "steps": "<steps>"
    },
    "name": "mobile_batch_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesTools to run, in order
deviceYesThe device identifier to use. Use mobile_list_available_devices to find which devices are available to you.
stopOnErrorNoStop at the first failing step. Defaults to true
listElementsAtEndNoRun mobile_list_elements_on_screen after the last step and include its result. Defaults to false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered; the description adds the genuinely non-obvious rules: device inheritance across steps unless a step overrides it, the closed allowlist of step tools, and the delay step with its 10000ms ceiling. It does not disclose the return shape or how a mid-sequence failure is reported per step, which matters for a batch executor with no output schema.

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?

The definition is front-loaded: purpose, then use case, then inheritance rule, then the allowlist and delay behavior. The 32-tool enumeration is long but carries functional weight since it constrains valid input; it could have been compressed by pointing to the sibling catalog instead of listing every name.

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 destructive, open-world batch executor with no output schema, the description should say what comes back — per-step results, error attribution, whether a failed step still returns earlier results. It covers inputs and allowed steps thoroughly but leaves the result contract entirely unstated, which is the main gap for this complexity level.

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 device, steps, stopOnError, and listElementsAtEnd are already documented at baseline. The one real addition is the inheritance rule — the top-level device is applied to every step unless that step supplies its own — which the schema does not convey; otherwise the prose adds little beyond the structured fields.

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?

The description opens with a specific verb and resource: 'Run multiple tools in sequence in a single call', immediately clarified with a concrete example ('click, type, click, type'). That framing makes it unmistakably the orchestrator among a catalog of single-action mobile_* siblings.

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 the intended use case ('fill forms or perform multi-step flows without round-trips') and enumerates exactly which tools are legal as steps, which is real selection guidance. It stops short of stating when NOT to use it, e.g. when each step depends on inspecting the prior result, leaving that inference to the agent.

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