Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

get_bounds

Measure the bounding box of non-transparent pixels per frame to check animation alignment, ground contact, and empty frames.

Instructions

Report where the drawn pixels are in each frame: their bounding box.

Use while animating to measure instead of eyeballing: that rise and fall frames mirror each other, that the feet stay on the ground line, that a character never leaves the canvas.

Args: filename: Aseprite file to read layer_name: Measure only this layer (or group); "" measures all visible layers together frames: Frames to measure, 1-based: "3", "1-4" or "1,3,6-8"; "" measures every frame

Returns: JSON with one entry per frame: x, y, width, height of the non-transparent pixels, or "empty": true for a blank frame.

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": {
      "filename": "<filename>"
    },
    "name": "get_bounds"
  }
}

Input Schema

NameRequiredDescriptionDefault
framesNo
filenameYes
layer_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/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 defines the measurement as non-transparent pixels, explains that empty strings broaden scope to all visible layers or all frames, and documents the return shape including the 'empty: true' blank-frame case. It omits error conditions (missing file, nonexistent layer/frame) and does not state explicitly that it is read-only.

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?

Front-loads a one-sentence definition, then rationale, then Args, then Returns. The illustrative clauses about rise/fall frames and ground lines are short and make the measurement intent concrete rather than padding.

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?

No output schema exists, and the description supplies the return structure, so the agent knows what comes back. No annotations exist either, and the read-only nature and failure modes are left implicit, which is the main remaining gap for a 3-parameter read tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does fully: it explains what each of the three parameters means and adds the critical 1-based frame range syntax ('3', '1-4', '1,3,6-8') plus the meaning of the empty-string default for both string parameters.

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 concrete verb and resource: report the bounding box of drawn pixels per frame. That is clearly distinct from value-reading siblings like get_pixel_color or get_pixels_rect and from compare_frames, though it never names an alternative outright.

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 a real usage context ('use while animating to measure instead of eyeballing') with concrete motivating cases such as feet on the ground line and characters not leaving the canvas. It stops short of stating when not to use it or which sibling to prefer for other measurement tasks.

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

Deploy Server

Other Tools