Skip to main content
Glama

Edit design atomically

edit_design_batch
Destructive

Apply up to 100 focused builder commands with one revision check and one save. Any invalid command discards all commands. Discover actions by domain. Scope and targets use stable IDs. Deleting an agent file with deleteAgentFile, whole-project reset/resetAllTemplates and source resetThemeBlock/resetPattern require the user’s affirmative confirmation for this named project and command.confirmed true. Targeted resetBlockFields/resetSectionFields clear inheritance overrides without extra confirmation. No automatic conflict retry.

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": {
      "projectId": "<projectId>",
      "expectedRevision": "<expectedRevision>",
      "commands": "<commands>"
    },
    "name": "edit_design_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandsYes
projectIdYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Adds substantial behavior beyond destructiveHint=true/openWorldHint=true: full-batch rollback on any invalid command, a single revision check and single save, the explicit per-project confirmation requirement with command.confirmed true, and the warning that there is no automatic conflict retry. These are exactly the traits an agent needs before issuing a destructive write.

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?

Front-loads the core contract (batch size, single revision check, single save) and then layers failure semantics and confirmation rules. Dense and telegraphic in places, but every sentence conveys a distinct operational rule.

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 destructive, non-idempotent batch tool with no output schema and no parameter descriptions, the definition covers atomicity, rollback, confirmation, and conflict handling. What a revision mismatch actually returns, and the per-action arg contract, are left implicit.

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 description coverage is 0%, so the description carries the load and does add meaning: the 100-command cap, the one-revision-check contract for expectedRevision, the domain-driven action discovery, and the confirmed flag's purpose. It remains thin on what 'args' contains per action and the exact shape of scope kinds, which the description only alludes to via 'stable IDs'.

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?

States a specific verb and resource: apply up to 100 builder commands as one atomic revision-checked save. The word 'batch' plus the atomicity framing clearly differentiates it from the per-domain edit_blocks/edit_layouts/edit_* siblings, though it never names them.

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?

Gives real routing guidance: use domain discovery to find actions, and distinguishes targeted resetBlockFields/resetSectionFields (no extra confirmation) from whole-project reset/resetAllTemplates and source resets (confirmation required). It does not say when to prefer this batch tool over the single-domain edit_* tools, which is the main missing piece.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources