Skip to main content
Glama
MobAI-App

MobAI MCP Server

Official
by MobAI-App

execute_dsl

Execute a batch of DSL commands on a mobile device to perform actions like tap, type, swipe, observe, launch apps, and assertions, enabling full device automation.

Instructions

Execute a batch of DSL commands on a device. This is the primary tool for all device interaction — tap, type, swipe, observe, launch apps, assertions, web automation, and more.

You MUST read the MCP resource mobai://reference/device-automation to learn how to control devices before using this tool.

Input: JSON string with "version": "0.2" and "steps" array. Example: {"version":"0.2","steps":[ {"action":"open_app","bundle_id":"com.apple.Preferences"}, {"action":"tap","predicate":{"text_contains":"Wi-Fi"}}, {"action":"wait_for","predicate":{"type":"switch"},"timeout_ms":3000} ]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idYesDevice ID
commandsYesDSL script as JSON string with version and steps
Behavior2/5

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

With no annotations provided, the description carries full responsibility. It gives an example but fails to disclose behavioral traits such as destructiveness, error handling, rate limits, or side effects. The agent lacks crucial safety and failure information.

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

Conciseness5/5

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

The description is concise and well-structured: a clear purpose sentence, a necessary instruction to read a resource, and an illustrative example. Every sentence earns its place without redundancy.

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 complex tool with no output schema, the description adequately explains input format and points to a resource for complete usage. It could mention return behavior, but the reference compensates. The example helps ground the DSL syntax.

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 100%, and the description adds value by explaining the 'commands' parameter as a DSL script with 'version' and 'steps' and providing a concrete example. This goes beyond the schema's brief descriptions, aiding understanding.

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 clearly states that the tool executes a batch of DSL commands for device interaction, listing specific actions like tap, type, swipe, etc. It distinguishes itself from siblings, which focus on debugging, installation, or queries, making the purpose unambiguous.

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 explicitly says it is the primary tool for device interaction and instructs to read a resource before using. However, it does not mention when not to use or provide alternatives, though no sibling tool serves the same purpose, so the guidance is strong for this context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MobAI-App/mobai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server