Skip to main content
Glama

batch_execute

Execute up to 100 Moho operations atomically in one IPC round-trip, Undo step, and UI refresh; stop on first error to keep edits consistent.

Instructions

Execute up to 100 Moho Studio MCP operations atomically inside one IPC round-trip, one Undo step, and one coalesced UI refresh.

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": {
      "operations": "<operations>"
    },
    "name": "batch_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes
stopOnErrorNoAbort remaining ops on first failure (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavioral traits: atomic execution, one Undo step, one coalesced UI refresh, one IPC round-trip, and a 100-operation ceiling. However, it leaves the crucial failure semantics ambiguous—'atomically' suggests all-or-nothing while the stopOnError parameter implies possible partial completion—and says nothing about the return value mapping results back to operations.

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?

A single front-loaded sentence with no filler; every clause (operation count limit, atomicity, IPC, Undo, UI refresh) carries distinct information an agent needs.

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 two-parameter tool with no annotations and no output schema, the definition covers the execution model well but omits the two things an agent most needs: what a successful call returns and whether earlier operations persist when a later one fails under the default stopOnError.

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 coverage is 50%: 'method' and 'stopOnError' are documented in the schema, while the nested 'params' object is not. The description contributes one genuinely new constraint not present in the schema (the 100-operation cap) but adds no detail about how params should be shaped per method.

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 specific verb and resource ('Execute ... Moho Studio MCP operations') and adds distinguishing scope (batch of up to 100, atomic, single round-trip). An agent can grasp that this is a batch wrapper rather than a single-domain mutation tool, though it never names a sibling such as lua_execute to sharpen the contrast.

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 only implied through the atomicity/turn-efficiency framing, which suggests reaching for this when several operations should share one Undo step. There is no explicit when-not guidance, no mention of alternatives for scripting or single operations, and no advice on structuring the operations array.

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