Skip to main content
Glama

adjust_palette_color

Adjust a palette color by modifying its hue, saturation, or lightness in HSL space. Edit in place or add a new variant to avoid manual hex computation.

Instructions

Nudge a palette color in HSL space: darken/lighten via lightness, shift saturation or hue. Saves the model from hand-computing hex. Edits in place (all pixels using it update), or appends a fresh variant with as_new.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hueNoRotate hue, degrees
nameNo
indexYesPalette index
as_newNoAppend a new entry instead of editing in place (default false)
doc_idYesDocument id
renderNoInclude a render of the change (default true)
lightnessNoAdd to lightness, -1..1 (negative darkens)
saturationNoAdd to saturation, -1..1
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses mutation effects ('all pixels using it update') and the alternative behavior (append with as_new). It does not mention authorization or rate limits, but for a palette adjustment tool the disclosure is adequate.

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 with no fluff. First sentence defines the core action and parameters, second sentence explains the behavioral modes. 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 no output schema and many sibling tools, the description covers parameters, behavior, and side effects. It could mention the return value (e.g., success confirmation), but this is not critical for a mutation tool. Overall, it is complete enough for the agent to use correctly.

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 88% (7 of 8 parameters described in schema). The description adds value by explaining HSL adjustments (darken/lighten via lightness, shift saturation/hue) and the as_new behavior. It also provides the convenience context of saving hand-computing hex, which aids understanding beyond the schema.

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 the tool nudges a palette color in HSL space (darken/lighten via lightness, shift saturation or hue). It distinguishes itself from sibling tools like set_palette_color (sets specific color) and add_palette_color (adds new entry) by specifying it adjusts in place or appends with as_new.

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?

The description explains when to use this tool (nudging in HSL space) and mentions two modes (edit in place or append). It does not explicitly state when not to use it or compare to alternatives, but the sibling context implies differentiation, and the behavior is clear.

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