Skip to main content
Glama

match_palette

Unify up to 12 sprites on one shared palette so separately generated game assets look like a single scene. Rebuild palettes from hex colors or a lead sprite and remap every frame to new assets.

Instructions

Free. Pixel images of size 32, 48, 64, 96, 128, 192, 256 or 384, generated in Voidless or uploaded (an HD image: resize_sprite it to a pixel size first). Puts 1-12 sprites on ONE shared palette so separately generated assets look like one scene. The palette is built from all of them as colour ramps, or given as hex colours, or led by one sprite's own colours; every frame of every sprite is remapped along the ramps so shading stays smooth. Each sprite gets a NEW asset (originals untouched).

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": {
      "ids": "<ids>"
    },
    "name": "match_palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesThe image assets to put on one palette (1-12)
leadNoOne of ids whose own colours are kept exactly; the others follow it
coloursNoSize of the SHARED palette all of them draw from (8-64, default 24). Each sprite keeps roughly its own colour count
paletteNoUse this palette instead, as hex colours like "#1a2b3c"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses that the operation is free, that every frame of every sprite is remapped along ramps (so shading stays smooth), and critically that originals are untouched and new assets are produced. This meaningfully reinforces destructiveHint=false. It does not cover what happens on failure or where new assets land.

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?

Dense but every sentence carries information, and the key scoping fact (one shared palette, new assets) is stated early. The opening "Free." and the leading size list slightly delay the main purpose, which is a minor front-loading flaw.

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?

With no output schema, the description still covers inputs, preconditions, palette modes and the output (a new asset per sprite). It is complete enough to call correctly; only the naming/location of generated assets is left implicit.

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 100%, so the baseline is 3, but the description adds real value by explaining the mutually exclusive palette modes — derived from all ids, supplied as hex, or led by one sprite's colours — which maps directly onto how `palette`, `colours` and `lead` interact. That relationship is not obvious from the schema alone.

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?

"Puts 1-12 sprites on ONE shared palette so separately generated assets look like one scene" states a specific operation with explicit scope and goal. It also distinguishes its result from in-place recolouring by noting each sprite gets a NEW asset with originals untouched, which separates it from siblings like palette_swap.

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 preconditions: accepted pixel sizes, generation in Voidless or upload, and the explicit instruction to run resize_sprite first on HD images. It also names three palette-construction modes so the agent can pick an approach. It lacks an explicit when-not-to-use note (e.g., vs. palette_swap or day_night_palettes).

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