Skip to main content
Glama

batch

Execute multiple device commands in a single request, reducing round-trip overhead. Specify steps with structured inputs and set a failure stop policy.

Instructions

Execute multiple commands in one daemon request Times out after 90s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outNoOptional output path for command artifacts.
udidNoiOS device UDID selector.
debugNoEnable debug diagnostics.
runIdNoLease run identifier.
stepsYesStructured batch steps. Each step uses a command name and the same input object as that command tool.
deviceNoDevice name selector.
serialNoAndroid device or Vega VVD serial selector.
targetNoAlias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.
tenantNoRemote tenant identifier.
leaseIdNoExisting lease identifier.
onErrorNoBatch failure policy.
sessionNoAgent-device session name.
maxStepsNoMaximum number of steps accepted for this batch.
platformNoPlatform selector used to resolve a device.
includeCostNoInclude per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.
deviceTargetNoDevice target form. Maps to the CLI --target flag.
responseLevelNoResponse verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.
mcpOutputFormatNoMCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.
androidDeviceAllowlistNoAndroid serial allowlist used for device resolution.
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does usefully disclose the 90-second timeout, but it says nothing about whether steps run sequentially, what happens on partial failure, how output from multiple steps is aggregated, or whether the batch request has side effects beyond the nested commands. This is a significant gap for a tool that can execute arbitrary combinations of mutating commands.

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 description is extremely short and every part earns its place: it states the core purpose and the critical timeout constraint. The lack of punctuation and the abrupt sentence break slightly hurt readability, but there is no wasted content.

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

Completeness2/5

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

Given that this is a complex orchestrator with 19 parameters, no output schema, no annotations, and 55 sibling tools, the description is not complete enough. It omits operational context such as batch execution semantics, failure policy behavior, cost implications, and response shape expectations. The schema documents parameters, but the description does not provide the high-level behavior needed to fully understand the tool.

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 the input schema already documents all parameters thoroughly, including steps, selectors, responseLevel, and mcpOutputFormat. The description adds no parameter-level detail, but the schema does the heavy lifting, making the baseline score of 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear verb and resource: 'Execute multiple commands in one daemon request.' It conveys that this is a batching/orchestration tool rather than a single command, which distinguishes it from the many sibling command tools like click, screenshot, or install. However, 'daemon request' is somewhat jargon-heavy and the exact relationship to the sibling tools is only implied.

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

Usage Guidelines3/5

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

Usage is implied: use this tool when you need to execute multiple commands in one request. There is no explicit statement about when not to use it, no guidance on choosing it over individual command tools, and no discussion of failure handling beyond the schema's onError parameter. A brief mention of preferring individual tools for single commands would have made this clearer.

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/callstack/agent-device'

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