Skip to main content
Glama

pixelate_image

Convert an image into pixel art at a target square size, with colors matched to that size; returns an inline PNG without saving it to your library.

Instructions

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
imageYesBase64 source image (a data: prefix is stripped automatically). There is no URL option

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • 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"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical behavioral facts: the result is returned inline, is not persisted to the library, and therefore has no asset ID — the main source of downstream agent confusion. It adds billing semantics (repeated calls bill again) and that resize_sprite is free, useful economic context that annotations never convey.

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 sentences, front-loaded with what the tool does and what it returns, then the sibling routing, then cost. No filler; each sentence carries a distinct decision-relevant fact.

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

Completeness5/5

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

There is no output schema, and the description compensates by explaining the return form (inline PNG, no asset ID) and the billing model. With only two well-documented parameters, nothing an agent needs in order to call this correctly is missing.

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 100%, including the size enum and the note that smaller sizes give chunkier pixels and fewer colours. The description's 'target size' and 'colour count picked for that size' largely restate what the schema already documents, adding little new meaning. Baseline 3 is appropriate.

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?

Names a concrete verb and resource ('Convert an image to pixel art at a target size') and immediately scopes the output ('PNG comes back inline and is NOT saved'). It also distinguishes itself from two named siblings, so an agent can route correctly without opening either schema.

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?

Explicitly routes away to alternatives with the conditions attached: '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).' It also states the cost condition ('1 credit on every call, each call bills again'), which is the practical when-not-to-call trigger.

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