Skip to main content
Glama
aseprite-claude-connector

aseprite-claude-connector

sort_palette

Reorder palette swatches by luminance, hue, or saturation to organize RGB sprite colors; use on indexed sprites only if you intend to change displayed colors since indices are not remapped.

Instructions

Reorder palette swatches by luminance (default), hue, or saturation. Intended for RGB sprites' swatch organization — on an INDEXED sprite this changes which color each pixel shows (indices aren't remapped). One undo step.

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": "sort_palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoluminance
fileNo
ascendingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations are only a title, so the description carries the full burden and does well: it discloses that the operation mutates swatch order, that on INDEXED sprites it has a destructive visual side effect, and that it constitutes exactly one undo step. It omits what is returned and what happens when no palette/file is given.

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?

Two tight sentences, front-loaded with the action and sort keys, followed by the critical caveat. No filler, though the caveat is embedded mid-sentence rather than given its own emphasis.

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 3-parameter mutation tool with no annotations, no output schema, and 0% schema coverage, the description covers the hazard and the sort modes well but leaves the target (`file`) and direction (`ascending`) undefined and gives no hint of the result shape. An agent can call it correctly only by guessing those two parameters.

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 0%, so the description must compensate. It fully documents the `by` parameter's allowed values and default, but says nothing about `ascending` (direction) or `file` (which palette is targeted, defaulting to null), leaving two of three parameters unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Reorder') and resource ('palette swatches'), then enumerates the exact sort keys (luminance, hue, saturation) with the default named. An agent knows precisely what the operation does without inspecting the schema.

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 a clear intended context (RGB sprites' swatch organization) and an explicit warning case (INDEXED sprites, where indices aren't remapped so pixel colors change). It does not name an alternative tool or state a hard 'do not use' rule, so it stops short of a 5.

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