Skip to main content
Glama

generate_ramp

Generate a shading ramp from a base color by adjusting lightness, hue, and saturation across the ramp. Optionally apply the ramp to a sprite's palette.

Instructions

Generate a shading ramp from a base colour (dark -> light).

Produces `steps` colours by varying lightness across `light_range`, optionally
rotating hue by `hue_shift` total degrees across the ramp (classic pixel-art
hue shifting: cool shadows / warm highlights) and scaling saturation by
`saturation_shift` percent across the ramp.

Args:
    filename: If set with apply, write the ramp into that sprite's palette.
    apply: "none" (just return), "append" (add to palette), or "replace".

Returns the ramp as a list of "#RRGGBB" colours (darkest first).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNonone
stepsNo
filenameNo
hue_shiftNo
base_colorYes
light_rangeNo
saturation_shiftNo
Behavior4/5

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

With no annotations, the description fully discloses the behavior: it generates colors, optionally modifies a sprite's palette via apply/filename, and returns a list of colors. It explains hue shifting and saturation scaling clearly. No mention of error handling or side effects, but the core behavior is well 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?

The description is concise: a two-sentence overview followed by a structured Args section. Every sentence adds value without redundancy. It is front-loaded with the core purpose and parameter effects.

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 annotations and no output schema, the description adequately covers purpose, parameters, and return format. It could include more detail on error handling or edge cases (e.g., what happens if apply is set without filename), but for a generation tool this is sufficient for an AI agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (no parameter descriptions in schema), so the description must compensate completely. It does so by documenting each of the 7 parameters: base_color, steps, light_range, hue_shift, saturation_shift, apply (with values 'none', 'append', 'replace'), and filename. Defaults and meanings are all explained.

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 defines the tool as generating a shading ramp from a base color with dark-to-light progression. It includes specific technical details (lightness variation, optional hue rotation and saturation scaling) that differentiate it from any sibling tools, none of which perform ramp generation.

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 how to use each parameter and the two modes (just return or apply to palette). It implicitly covers when to use the tool (when a shading ramp is needed) but does not explicitly list alternatives or case exclusions. The guidance is clear enough for most use cases.

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/MalloyTheDev/aseprite-mcp'

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