Skip to main content
Glama

palette

Extracts dominant colors from an image as hex codes with each color's share, ignoring transparent pixels; supports 1-16 colors and an optional swatch preview.

Instructions

Dominant colors of an image as hex codes with their share of the picture (most common first). Transparent pixels are ignored. count is 1-16. preview=true returns a swatch strip.

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": {
      "path": "<path>"
    },
    "name": "palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
countNo
previewNo
allow_hugeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 load and does disclose useful traits: output ordering, that transparent pixels are excluded, the count range, and what preview changes. It omits the read-only nature, any performance/size caveats, and leaves allow_huge completely unexplained despite it plainly being a behavior-altering flag.

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?

Three compact sentences, front-loaded with what is returned and in what order, followed by the two behavioral notes and parameter hints. Nothing is padded and no sentence is redundant.

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

Completeness3/5

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

For a no-annotation, no-output-schema tool with four parameters, key gaps remain: the format of the reported 'share' (percent vs fraction), what the return looks like beyond the preview case, and the purpose of allow_huge. The essentials for a basic call are present, but an agent would have to guess on the undocumented flag and the response shape.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain all four parameters, and it only covers two: count (range 1-16) and preview (returns a swatch strip). path and especially allow_huge receive no meaning at all, leaving the highest-risk parameter undocumented in both schema and prose.

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?

Names the exact resource and output form (dominant colors of an image as hex codes with shares, most common first), which is unmistakably different from convert, image_info, or resize_flip. It stops short of a verb-led statement and never explicitly contrasts itself with siblings, but an agent can pick it correctly from the name plus description.

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 only implied: the reader infers you call this when you need a color palette rather than metadata (image_info) or a reformat (convert). There is no explicit when-to-use, no prerequisite for what kinds of images/paths are accepted, and no stated alternative for palette-adjacent work.

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