Skip to main content
Glama

shade

Darken or lighten pixels in pixel art by stepping along palette ramps or snapping to nearest color. Operates on layer or selected region.

Instructions

Darken or lighten existing pixels. A pixel whose color is part of a ramp steps along that ramp; otherwise it snaps to the nearest palette color in that direction. mode 'ramp' only moves ramp colors, 'nearest' ignores ramps, 'auto' (default) does ramp-then-nearest. Operates on the whole layer unless a region is given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoDefault auto
frameNoFrame index, 0-based (default: active frame)
layerNoLayer id or name (default: active layer)
stepsNoHow many shades to move (default 1)
doc_idYesDocument id
regionNoRegion: exactly one of 'rect', 'pixels', or 'selection'
renderNoInclude a render of the change (default true)
directionYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses operation on whole layer unless region given, the ramp/nearest snapping logic, and mode defaults. This is detailed, though could mention undo implications.

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?

Two sentences pack in the main verb, behavior details, mode explanations, and region note. No wasted words; front-loaded and efficient.

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?

Given 8 parameters including nested region objects and no output schema, the description covers the core behavior, default values, and region usage. It is sufficient for an experienced user.

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 high (88%), and the description adds meaning beyond the schema by explaining mode behavior, default auto, and region structure. It complements the schema well.

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?

The description clearly states it darkens or lightens pixels, explains ramp vs nearest behavior, and specifies the three modes. This is specific and distinguishes from sibling tools like replace_color or set_pixels.

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 explains the three modes and default behavior, providing clear context on when each mode applies. However, it does not explicitly compare to alternatives or state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ehm-93/pixel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server