Skip to main content
Glama

generate_palette

Create a color palette from a seed hex using local HSL harmonies (analogous, complementary, triadic, mono). Get named colors and a :root CSS snippet for UI theming.

Instructions

Generate a color palette from a seed hex using local HSL harmonies (analogous, complementary, triadic, mono). Returns named colors and a :root CSS snippet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedYesSeed color as #RGB or #RRGGBB
countNoNumber of colors 3–12 (default: 6)
harmonyNoHarmony mode (default: analogous)analogous

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/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 that generation is 'local' and HSL-based (implying offline, deterministic computation) and what the output contains (named colors plus a :root CSS snippet). It says nothing about behavior on an invalid hex seed, whether the same seed always yields the same palette, or the count/harmony interaction.

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 tightly packed sentences: the first front-loads the core action and method, the second covers the return. No filler, no repetition of the tool name.

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?

There is no output schema, but the description compensates by naming the return shape (named colors and a :root CSS snippet). For a simple three-parameter generator that is largely complete; only edge-case behavior on bad input is left unspecified.

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 description coverage is 100%, so the schema already documents seed format, count range/default, and harmony values. The description repeats the harmony mode names and mentions the hex seed but adds no semantics beyond the schema (e.g. how count interacts with the harmony set). Baseline 3 applies.

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?

States a specific verb and resource ('Generate a color palette from a seed hex'), names the algorithm ('local HSL harmonies') and enumerates the supported modes. The siblings (search_tools, check_contrast) are functionally unrelated, so the agent can route to this tool without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose — you call it when you need a palette derived from a seed color — but there is no explicit guidance on when to prefer it over alternatives (e.g. check_contrast for accessibility validation) or when not to use it. No prerequisites or exclusions are stated.

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

Deploy Server

Other Tools