Skip to main content
Glama

batch_commands

Execute up to 25 allowed commands in order on one iOS device; each step uses the highest approval policy and returns its outcome without rollback.

Instructions

Run up to 25 allowed commands in order on one device. The batch uses the highest approval policy among its steps and returns each outcome without rollback.

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": {
      "commands": "<commands>"
    },
    "name": "batch_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandsYes
device_idNo
timeout_msNo
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Goes meaningfully beyond annotations by disclosing that the batch inherits the highest approval policy of its steps and that there is no rollback, with each outcome returned separately. It leaves ambiguous what happens to remaining steps after a failure, and does not say whether approval prompts occur once up front or mid-batch.

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?

Two dense sentences with zero filler; the ordering guarantee, size cap, and no-rollback warning are all front-loaded before any lower-priority detail.

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 composite tool spanning ~40 embedded command types with no output schema, the definition is thin: return shape is only gestured at ('returns each outcome'), the meaning of 'allowed' is unstated, and error-propagation behavior is undefined. It conveys the essentials to call the tool but not enough to predict its behavior on partial failure.

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?

With 0% schema description coverage, the description must compensate; it partially does by confirming the 25-item cap and the single-device constraint. However, 'stop_on_error' — arguably the most consequential parameter given 'without rollback' — and top-level 'timeout_ms' are never explained, so failure control semantics are left to guesswork.

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 ('Run ... commands in order'), a hard scope limit ('up to 25'), and a device scoping rule ('on one device'). This immediately distinguishes it from every single-command sibling in the catalog.

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?

The batching context is implied by the name and description, but there is no explicit when-to-use vs. when-to-call-individually guidance. It never says whether outputs of one step can be referenced by later steps, which is the main reason an agent would or would not choose batched execution.

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