Skip to main content
Glama

generate_color_ramp

Read-only

Generate a dark-to-light color ramp from a base color for Aseprite palettes or drawing, with evenly spaced lightness steps and optional hue shift for shadows and highlights.

Instructions

Shades of base_color from dark to light as '#rrggbb', for set_palette or drawing.

The base colour itself is one of the steps, placed where its HSL lightness falls in lightness_range (the range widens to reach it); the other steps are evenly spaced in lightness on each side and keep its saturation. With hue_shift, darker steps turn towards blue and lighter ones towards yellow, as pixel artists do for shadows and highlights. Alpha in base_color is ignored.

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": {
      "base_color": "<base_color>"
    },
    "name": "generate_color_ramp"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoNumber of colours in the ramp
hue_shiftNoDegrees the hue turns per step away from the base
base_colorYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
lightness_rangeNoLightness (0..1) of the darkest and lightest step

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With only readOnlyHint supplied, the description carries the behavioral burden well: it discloses that the base colour is itself a step positioned by HSL lightness, that lightness_range widens to reach it, that saturation is preserved, that hue_shift moves darker steps toward blue and lighter toward yellow, and that alpha in base_color is ignored. These are non-obvious algorithmic traits an agent could not infer from the schema or annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the output format, then progressively details the algorithm; each sentence supplies distinct information about spacing, hue shifting, or alpha handling. Prose is somewhat dense and the hard line breaks add no structure, but nothing is redundant.

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?

The tool has 4 parameters and an output schema, so return values need no explanation, and the description covers the algorithmic behavior thoroughly. Minor gap: it does not mention the 2-16 step bounds or ordering guarantees for edge cases, but the schema covers the limits.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains how steps, lightness_range, and hue_shift interact, and clarifies that alpha in base_color is ignored despite the '#RRGGBBAA' format being accepted. The direction convention for hue_shift and the anchor-at-base-colour rule are documented only here.

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?

Opens with a specific output ('Shades of base_color from dark to light as #rrggbb') and names its consumers ('for set_palette or drawing'), so an agent knows what is produced and where it fits. It does not explicitly differentiate itself from sibling tools like adjust_colors or get_color_stats, but the generation-vs-modification distinction is reasonably clear.

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 phrase 'for set_palette or drawing' gives clear intended usage context, routing the agent toward palette and drawing workflows. There are no explicit exclusions or when-not-to-use conditions and no named alternatives to compare against, so it stops short of the top score.

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