Skip to main content
Glama

batch

Run multiple single-step sprite operations in one call and return results in order. The sprite saves once at the end; if any operation fails, nothing is saved and the error names the failing step.

Instructions

Run several single-step tools on one sprite in one go and return their results in order.

The ops run in a single Aseprite process and are saved once at the end. If any op fails, nothing is saved and the error names the failing op. create_sprite and other multi-step tools are not accepted. One call takes at most 1000 ops by default.

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": {
      "path": "<path>",
      "ops": "<ops>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesTools to run, in order, as {tool, args}
pathYesSprite file. Relative paths resolve against the server root.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 well: it discloses atomicity ("if any op fails, nothing is saved"), single-process execution with one save at the end, error naming the failing op, and a default cap of 1000 ops. It stops short of describing partial-result or return-payload behavior beyond "results in order."

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?

Three short sentences, front-loaded with purpose and followed by execution semantics and constraints; no filler. The hard line breaks are cosmetic only and readability remains good.

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 meta-tool with an output schema and fully documented parameters, the description covers atomicity, error behavior, and op limits well. The main remaining gap is that the set of batchable tools is never enumerated or linked, forcing the agent to infer membership from "single-step."

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 100% and the schema already documents path, ops, and the BatchItem {tool, args} shape including that args excludes the path. The description adds only the default 1000-op cap as extra meaning for the ops parameter, which is modest added value over a fully documented schema.

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?

"Run several single-step tools on one sprite in one go and return their results in order" states a specific verb (run), resource (single-step tools on one sprite), and return ordering. It distinguishes itself from multi-step siblings by explicitly rejecting create_sprite, though the boundary of "single-step" is left to inference besides the resize_sprite example.

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 clear exclusion guidance ("create_sprite and other multi-step tools are not accepted") and implies the positive case (many ops on one sprite in one call), but never states explicitly when a caller should prefer batch over invoking the individual tools sequentially.

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