Skip to main content
Glama

Agent Data Tools: Utilities

Color palette generator: harmonies and shades from one color

color_palette
Read-only

Build a colour palette from one hex colour: complementary, analogous, triadic, split-complementary and tetradic harmonies (hue rotations at the same saturation and lightness), plus six shades from light to dark, all as hex codes, with the base colour's HSL. Use for UI themes, charts, brand kits or slide decks; to check text readability on a colour use color_contrast. Example: color=#3366ff. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "color": "<color>"
    },
    "name": "color_palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesBase colour as hex, such as #3366ff or 36f

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly/destructive/openWorld, and the description reinforces rather than contradicts them ('Reads or computes only and changes nothing'). It adds genuinely non-schema information: per-call billing via x402 USDC or card key, first 10 free, failed calls free, and that repeats are charged — which explains the otherwise puzzling idempotentHint=false. Minor redundancy in restating the read-only nature keeps it from a 5.

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?

Purpose and output contents are front-loaded, then usage, then pricing. Dense and largely waste-free, but the billing sentence carries multiple clauses that could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter compute tool with no output schema, the description fully covers inputs, outputs (harmony hex lists, shades, HSL), and cost model. Nothing needed to invoke it correctly is missing.

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?

Only one parameter, and the input schema already documents it fully (100% coverage, including shorthand form like 36f). The description's 'color=#3366ff' example duplicates the schema example and adds no new syntax or constraint meaning.

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 ('Build a colour palette from one hex colour') and enumerates exactly what is produced: five named harmony types via hue rotation at fixed saturation/lightness, six shades, and the base colour's HSL. It is clearly distinguishable from the sibling color_contrast, which is named explicitly.

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

Usage Guidelines5/5

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

Gives concrete use cases (UI themes, charts, brand kits, slide decks) and an explicit exclusion pointing to the correct alternative: 'to check text readability on a colour use color_contrast'. An agent needs no inference to route between the two.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources