Skip to main content
Glama

paint_batch

Run a sequence of painting actions atomically as one undo step, with rollback on error and support for inline or file-based action plans.

Instructions

Atomic synchronous sequence, one undo step. Scene and brush changes roll back together on error. No filesystem actions or nested batches. Each action: {tool,arguments[,store]} (store inside arguments is accepted too); {"$ref":"name.key"} reuses a stored result (e.g. a new layer's id). Inline up to 256 actions, or actions_file = path to .json/.jsonl with up to 20000 actions (generate big plans with a script; coordinates never pass through the chat). results: compact (ids + union bbox; per-action results only up to 64 actions), full, none. Warnings of any action are always summarized.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "paint_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsNo
resultsNocompact
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)
actions_fileNo
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: atomicity, single undo step, rollback of scene and brush changes together on error. It also discloses result verbosity modes with the 64-action cutoff for per-action results and that warnings are always summarized. Remaining gaps are permissions/auth behavior and what happens on partial failure of an inline vs file 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?

Very dense but front-loaded: atomicity and rollback first, then input shape, then sizing, then output verbosity. Every clause conveys a distinct constraint, and the telegraphic style ('results: compact (ids + union bbox...)') is efficient rather than vague. No filler sentences.

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 5-parameter orchestrator with no output schema and thin schema coverage, the description covers the essentials an agent needs to call it correctly, including the return-value shape through the results modes. It is incomplete only around document_id/expected_revision and the precedence when both actions and actions_file are supplied.

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 only 20%, so the description must compensate, and it largely does: it explains the action object shape {tool, arguments[, store]}, the $ref reuse mechanism with a concrete layer-id example, the size limits for actions vs actions_file, and the three results modes. document_id and expected_revision are never mentioned, leaving the two concurrency-control parameters undocumented in both places.

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 opens with a precise characterization: a batch executor running many paint tool actions as an 'atomic synchronous sequence, one undo step,' and it names the child tools it drives via the enum. An agent can tell this is composition/sequencing rather than a single drawing primitive. It stops short of explicitly contrasting itself with calling the individual paint_* tools one by one.

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?

It gives concrete when-to-use context (big plans generated by a script so coordinates never pass through chat) and a clear exclusion boundary ('no filesystem actions or nested batches'). It also implicitly routes large workloads to actions_file via the 256 vs 20000 limit. What's missing is an explicit statement of when a plain single-tool call is preferable, and whether actions and actions_file are mutually exclusive.

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