Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

palette_from_image

Extracts a color palette from a reference image and optionally applies it to an Aseprite file, helping match sprite colors to concept art, photos, or screenshots.

Instructions

Extract a palette from a reference image (concept art, photo, screenshot).

Perceptual k-means in OKLab, weighted by how much of the image each colour covers, then sorted into hue families dark to light.

Args: image_path: PNG/JPG/GIF to read colors: How many colours, 2-64 apply_to: Aseprite file whose palette to set ignore_transparent: Skip transparent pixels output_filename: Optional swatch PNG

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": {
      "image_path": "<image_path>"
    },
    "name": "palette_from_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorsNo
apply_toNo
image_pathYes
output_filenameNo
ignore_transparentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the algorithm (OKLab k-means weighted by pixel coverage, sorted by hue family dark-to-light), which helps an agent predict output quality. However, it omits that apply_to mutates an Aseprite file's palette (overwriting existing colors?), whether that is undoable, and what the tool actually returns.

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-loaded with the purpose on line one, followed by one algorithm sentence and a compact argument list. Every line adds information; only the docstring-style 'Args:' block feels slightly mechanical, but it is not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with zero annotation and schema-description coverage and no output schema, the description covers all inputs and the extraction method. The gaps are the mutation semantics of apply_to and the return shape, which an agent needs before calling a tool that writes to a project file.

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 coverage is 0%, so the description must compensate, and it does: it gives accepted formats for image_path (PNG/JPG/GIF), the valid range for colors (2-64, a constraint absent from the schema), the purpose of apply_to, and that output_filename produces an optional swatch PNG. It stops short of restating defaults or explaining what happens on an out-of-range colors value.

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 ('Extract a palette from a reference image') and scopes the input types to concept art, photo, or screenshot. It is clear what the tool does, but it never distinguishes itself from the sibling extract_palette or analyze_palette, so an agent must guess which one to pick.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of reference images and the 'apply_to' argument together suggest the extract-then-set-palette workflow. There is no explicit when-to-use, when-not-to-use, or named alternative among the closely related siblings (extract_palette, apply_palette_preset, set_palette).

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