Skip to main content
Glama
3DCraft

3DCraft

command_batch

Destructive

Runs up to 256 commands in order and reports completed steps, failures, and feature errors, with options to stop on error or feature break.

Instructions

Runs up to 256 commands in order and returns {completed, failed, results: [{ok, result | error, broke?, ms}], featuresFailed?, ms}. failed counts the commands that returned an error; stop_on_error (default true) stops at the first. A command that succeeds but makes a feature fail is no failed step, since a later step may repair it: its entry lists the features under broke ({feature, id, error, causedBy?, repairedBy?: the step after which it no longer failed}); a query, or touching a feature that failed already, breaks nothing. The batch is judged at the end: featuresFailed lists the features that fail in the final state and that a step made fail ({step, feature, id, type, error, causedBy?, fix}), and the batch is an error (isError) when there are any. A feature a step edited (feature.edit, sketch.* on it) and left failing is listed too, even when it failed before. The judging starts again on the new document after a step that makes another document active (file.new, file.open, file.activate, instance.open, jig.edit, ...). stop_on_break: true also stops at the first step that makes a feature fail. Not atomic: steps that ran stay applied; edit.undo takes back the last applied step, once per step. terse reports {completed, failed, errors: [{step, error, ms}], last: {step, result, ms}, featuresFailed?, ms}. ms is the wall-clock milliseconds each step and the whole batch took: the only fields that differ from run to run (null where there is no clock).

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

Input Schema

NameRequiredDescriptionDefault
stepsYes
terseNoReport only the failures and the last result. Default false.
intentNoWhy you run these steps, in a short sentence of your own. Optional but asked for: the person watching sees it in the window's agent log.
stop_on_breakNoAlso stop at the first step that makes a feature fail. Default false: judged at the end (featuresFailed).
stop_on_errorNoStop at the first command that returns an error. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it declares non-atomicity ("steps that ran stay applied"), the once-per-step undo recovery path, the end-of-batch judging model including featuresFailed and isError, and the reset of judging after a document-activating step. This is exactly the mutation/reversibility context that destructiveHint=true alone does not convey.

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

Conciseness3/5

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

Front-loaded with the return shape and free of filler, but the prose is extremely dense and jargon-laden, with deeply nested parentheticals that make it hard to parse on first read. The ms/wall-clock sentence in particular is longer than its informational value warrants.

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

Completeness5/5

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

With no output schema, the description carries the full burden of describing results and does so thoroughly, including both verbose and terse shapes, error accounting, feature-failure reporting, and per-step timing. For a non-atomic, up-to-256-step mutation tool, nothing an agent needs to call it safely is missing.

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 already 80%, but the description goes further by giving the precise terse return shape, the default and stopping semantics of stop_on_error and stop_on_break, and the per-step error/broke entry structure. Only the intent parameter's audience-facing purpose is left entirely to the schema.

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?

"Runs up to 256 commands in order" is a specific verb+resource with an explicit scale/ordering constraint, and it immediately distinguishes itself from the single-command sibling command_run. The return shape is spelled out inline, so an agent knows exactly what operation is being performed.

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?

The description clearly establishes the batching context (many commands, sequential, judged at the end) and gives decision rules for stop_on_error versus stop_on_break. It never explicitly names when to prefer command_run or command_list over this batch tool, so routing guidance is implied rather than stated.

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