Skip to main content
Glama

pixelate_image

Convert an image to pixel art at a target size, with the colour count picked for that size. The PNG comes back inline and is NOT saved to the user's library, so it has no asset ID. For a messy sprite or a video use clean_up_sprite (saved, background removed); for a Voidless asset with its animations use resize_sprite (free). 1 credit on every call (each call bills again).

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": "<image>"
    },
    "name": "pixelate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOutput size in px (square, default 64): 32, 48, 64, 96, 128, 192, 256 or 384, or 512 and 1024, drawn on a real 4x grid (128 / 256 art pixels). Smaller sizes give chunkier pixels and fewer colours
imageYesThe source image: an image key from one of your assets (as get_asset lists it), a public http(s) link (a cdn.voidless.dev URL works), or base64 (a data: prefix is stripped automatically). Prefer a key or a link: a long base64 string is easy to garble

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / image / description
      Previous value: -"Base64 source image (a data: prefix is stripped automatically). There is no URL option"New value: +"The source image: an image key from one of your assets (as get_asset lists it), a public http(s) link (a cdn.voidless.dev URL works), or base64 (a data: prefix is stripped automatically). Prefer a key or a link: a long base64 string is easy to garble"
  2. Changed2 schema fields changed
    • changedInput schema / properties / image / description
      Previous value: -"Base64 source image (a data: prefix is stripped automatically)"New value: +"Base64 source image (a data: prefix is stripped automatically). There is no URL option"
    • changedInput schema / properties / size / description
      Previous value: -"Pixel size: 32, 48, 64, 96, 128, 192, 256 or 384, or 512 and 1024, drawn on a real 4x grid (128 / 256 art pixels)"New value: +"Output size in px (square, default 64): 32, 48, 64, 96, 128, 192, 256 or 384, or 512 and 1024, drawn on a real 4x grid (128 / 256 art pixels). Smaller sizes give chunkier pixels and fewer colours"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real context beyond the annotations: the PNG is returned inline, is NOT persisted to the library, and therefore has no asset ID, and each call costs 1 credit and bills again. That billing-repetition note is the key behavioural fact given idempotentHint=false. It does not describe resolution/format limits or failure modes for bad base64, but the important traits are covered.

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 tight sentences, front-loaded with what the tool does, then the output consequence, then sibling routing and cost. Every sentence carries distinct decision-relevant information with no repetition of the schema.

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 correctly supplies the return shape (inline PNG, no asset ID) and the cost model, which is what an agent needs to decide and to chain the result. Minor gap: it does not say what the response field or error surface looks like, but for a 2-parameter tool this is close to complete.

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 schema already explains the size ladder, the default, and the accepted image forms. The description only restates 'target size' and adds the colour-count linkage, which the schema also conveys ('smaller sizes give chunkier pixels and fewer colours'). Baseline 3 applies.

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 and resource ('Convert an image to pixel art at a target size') plus the derived behaviour that colour count follows size, which tells an agent exactly what the transform produces. It is immediately distinguishable from clean_up_sprite and resize_sprite, which are named in the next sentence.

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

Usage Guidelines5/5

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

Gives explicit routing: use clean_up_sprite for a messy sprite or a video (saved, background removed), use resize_sprite for a Voidless asset with animations (free). It also states the condition that makes this tool unsuitable as a library-asset producer, since the PNG is not saved.

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