Skip to main content
Glama

Generate Palette Swatch Image

palette_swatch
Read-only

Generate a clean, text-free PNG swatch image from hex colours. Returns a URL to the PNG. Use for Midjourney --sref style references or design mood boards. Supports photo-proportional weights from palette extraction, equal distribution, grid layout, a true smooth LCh-interpolated gradient (no hard colour edges, best for mood/atmosphere/colour-grade references rather than literal composition), and 13 fixed design ratios (6310, 7020, triptych, quad, filmstrip, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hNoOutput height in pixels (default 630)
wNoOutput width in pixels (default 1200)
hexesYesComma-separated hex values e.g. #d4a829,#1a5c6e,#0a0a0b
layoutNophoto | equal | grid | gradient | filmstrip | 6310 | 7020 | 5030 | 8010 | 5050 | 6040 | triptych | quad | 55-25-20 | quint | 70-10-20 | 40-30-20-10 | 33-33-24-10. gradient is a true smooth perceptual blend with no hard edges, unlike every other layout here.
weightsNoComma-separated proportional weights from k-means extraction. Used only when layout=photo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.5/5.0
Behavior4/5

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

The readOnlyHint annotation already signals a safe, non-mutating operation. The description adds meaningful behavior beyond this: it promises a 'clean, text-free' output, specifies the return format ('URL to the PNG'), and highlights a key differentiator of the gradient layout ('true smooth LCh-interpolated gradient with no hard edges'). These details help the agent set expectations and choose layouts appropriately, though it does not cover every possible edge case (e.g., size limits or error handling).

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 sentences, each earning its place. The first states the core action and output, the second gives the two primary use cases, and the third enumerates supported layouts with a key differentiator. No filler or redundant phrasing. Information density is high but still readable.

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?

Despite having 5 parameters and a moderately complex set of layouts, the description is complete for an agent to invoke the tool correctly. It covers the purpose, return type, primary use cases, and layout-specific behavior. The existence of an output schema and fully-described input schema reduces the need for additional detail, and the description fills the remaining gaps (like the gradient's subtlety and the weights' role).

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?

The input schema provides 100% coverage of parameters, so the baseline is 3. The description adds value by explaining that 'photo-proportional weights' come from palette extraction and are used specifically for the photo layout, and it stresses that the gradient layout is a smooth perceptual blend unlike the others. These semantic hints go beyond the schema's terse property descriptions, clarifying how parameters interplay.

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 opens with a specific verb and object: 'Generate a clean, text-free PNG swatch image from hex colours.' It immediately states the deliverable (a URL to the PNG) and explicitly names two distinct use cases (Midjourney --sref style references and design mood boards). This clearly differentiates the tool from siblings like palette_gradient or palette_export, as it focuses on swatch image generation for style references.

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 provides explicit 'when to use' guidance: 'Use for Midjourney --sref style references or design mood boards.' It also gives a nuanced recommendation for the gradient layout: 'best for mood/atmosphere/colour-grade references rather than literal composition.' While it does not explicitly name alternative sibling tools, the use cases and layout-specific guidance are sufficient to steer an agent. The absence of explicit exclusions (e.g., 'do not use for...') keeps it from a 5.

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.

TDQS

A3.6/5.0
Disambiguation2/5

Several tool clusters perform near-identical functions: extract_image_colours, image_palette and palette_extract all extract dominant colours from images; colour_passport, colour_dna, colour_metrics and colour_cultural_risk all profile a single hex; and at least six compound 'complete package' tools (agent_brief, archive_report_brief, brand_report, design_session, image_brief, session_brief) overlap heavily in scope. The descriptions try to differentiate -- some even point to tool_guide for routing -- but the volume and similarity of clusters makes misselection likely.

Naming Consistency4/5

The vast majority of tools follow a clear domain_prefix_suffix pattern (colour_, palette_, archive_, brand_, accessibility_, project_) and within families naming is very disciplined (brand_guideline_specify/select/pdf/claims/status, project_get/list/versions/delete). However, a handful of outliers invert the order (extract_image_colours, ingest_image, render_colour_result, query_hex) and some descriptions reference tools that don't exist as endpoints (palette_from_concept, match_paint_system, get_colour_metrics).

Tool Count1/5

88 tools is far beyond any reasonable single-server surface, even for a platform spanning archives, branding, interiors and accessibility. The sheer number forces agents into a massive decision space, and many tools exist purely as convenience wrappers that replace chains of 3-6 other tools, suggesting aggressive consolidation was needed.

Completeness4/5

The surface covers an unusually broad domain -- archive search, colour science, palettes, branding, interiors, accessibility, image extraction, projects, and PDF/Word/Excel exports -- with very few dead ends for end-user workflows. Minor gaps: several compound-tool descriptions reference tools that no longer exist, and valid archive names are only discoverable via error messages rather than a dedicated listing endpoint.

Resources