Skip to main content
Glama

batch_mutate

Execute batches of diagram creation, editing, and deletion operations atomically to keep Excalidraw changes consistent and avoid partial updates.

Instructions

Atomically execute a batch of creation, editing, and deletion operations.

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_mutate"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

C2.7/5.0
Behavior2/5

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

The description adds real behavioral context beyond the annotations by disclosing atomic (all-or-nothing) execution and that the batch mixes create, edit, and delete actions. However, the advertised 'deletion operations' sits awkwardly against destructiveHint=false, and there is no mention of what happens on partial failure, whether later operations can reference ids created earlier in the same batch, or how the per-operation dry_run flag behaves.

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?

A single tight sentence with no filler and the key qualifier ('atomically') front-loaded. It is under-specified rather than bloated, so the terseness costs it a point only in that nothing else anchors the reader.

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?

This is a high-complexity tool: 20 action types, dozens of optional fields, no output schema, and a non-idempotent, batch-mutating contract. A one-sentence description leaves critical gaps for an agent deciding how to construct a valid operations array or what a failure returns, which is far short of what the complexity demands.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single 'operations' parameter expands into ~50 loosely typed fields with a 20-value action enum, none of which are documented anywhere. The description only groups actions into 'creation, editing, and deletion', which gives a rough mental model but no per-action required-field meaning, id-reference rules, or ordering semantics.

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: 'Atomically execute a batch of creation, editing, and deletion operations.' The word 'batch' plus 'atomically' distinguishes it from single-object siblings such as add_frame, delete, and update_element, though it never names an alternative explicitly. It is clear what the tool does, just not fully differentiated from every sibling.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance: nothing says to prefer this over calling create_shape/update_element/delete individually, nothing mentions preview or undo in relation to it, and nothing states when it should not be used. The only implied guidance is 'atomically' suggesting all-or-nothing multi-step edits, which an agent must infer.

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