Skip to main content
Glama

Recolour to a palette

remap_palette

Recolour an existing pixel art image so every pixel uses a colour from the given palette (e.g. PICO-8 or Game Boy). Size is kept. Returns the 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": {
      "palette": "<palette>"
    },
    "name": "remap_palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
paletteYesPalette id (e.g. pico-8, game-boy-dmg, cga-16, sweetie-16; see list_palettes) or hex colours like "#1a1c2c,#5d275d"
image_urlNoPublic http(s) URL of a PNG or JPEG (max 4 MB, 2048x2048)
image_base64NoPNG or JPEG as base64 (or a data: URL), if there is no public URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / palette / description
      Previous value: -"Palette name (pico-8, sweetie-16, endesga-32, game-boy, 1-bit) or hex colours like \"#1a1c2c,#5d275d\""New value: +"Palette id (e.g. pico-8, game-boy-dmg, cga-16, sweetie-16; see list_palettes) or hex colours like \"#1a1c2c,#5d275d\""
  2. First observed

TDQS

A3.6/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 two useful traits: size is preserved and the return value is a PNG. It says nothing about permissions, rate limits, failure modes for oversized or non-pixel-art input, whether dithering is applied, or whether the result is a new asset or an in-place replacement.

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?

Three short sentences with zero filler; the core operation is front-loaded and the two behavioral facts an agent most needs (size kept, PNG returned) follow immediately. Nothing is repeated and nothing needs re-reading.

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 three-parameter transformation tool with no annotations and no output schema, it covers the essentials: what gets changed, what is preserved, and what comes back. The remaining gap is edge-case behavior on invalid or huge inputs, which is a minor omission for a stateless image transform.

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 description coverage is 100%, so the palette, image_url, and image_base64 parameters are already fully documented and the baseline is 3. The description adds only that the palette may be a named set like PICO-8 or Game Boy, which the schema already states via 'see list_palettes'.

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 ('Recolour an existing pixel art image') plus the constraint that every pixel maps to the given palette, with PICO-8/Game Boy as concrete examples. An agent can distinguish it from extract_palette or list_palettes, but the description never explicitly contrasts itself with the closer siblings pixelate_image or upscale_pixel_art.

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 implied by 'existing pixel art image' plus a supplied palette, which suggests the tool applies a known palette rather than deriving one. There is no explicit when-to-use versus when-not, no statement about what to do if the palette is unknown (list_palettes is only referenced in the schema, not the description), and no prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources