Skip to main content
Glama

Extract Colours from Image

extract_image_colours
Read-only

Extract dominant colours from a photograph using Colour Memory's proprietary k-means++ algorithm. Requires either a public image_url, or an image_id. If you only have a raw uploaded file with no public URL (e.g. a local file path or a ChatGPT file attachment without a usable download_url), call ingest_image first to get an image_id, then pass that image_id here. Returns hex values with proportional weights. Optionally matches colours against the archive with style_context for coherent cultural naming. Use this before image_brief when you have an uploaded photograph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNoNumber of colours to extract (3-12, default 6)
imageNoImage file attachment from ChatGPT
analyseNoIf true, match colours against archive and return names
image_idNoEphemeral image_id returned by ingest_image. Use this if you only have a local file path or raw file attachment with no public URL.
image_urlNoPublic URL of image
grey_card_hexNoHex from a grey/white card for white balance
style_contextNoe.g. English cottage garden, Victorian, Japanese

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.4/5.0
Behavior4/5

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

The description discloses that it uses a 'proprietary k-means++ algorithm', returns 'hex values with proportional weights', and clarifies that image_id is ephemeral (returned by ingest_image). The readOnlyHint annotation already covers the non-mutating guarantee, so the bar is lower, and the description adds meaningful context beyond that (algorithm, return format, optional archive matching). It could add pagination/limit behavior or error cases but is solid.

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?

The description is a single focused paragraph with clear logical flow: primary function → input prerequisites → fallback workflow → output → optional feature → sequencing. Every sentence earns its place with no filler. It's slightly dense, which is why it doesn't get a 5, but there is zero waste.

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?

Given the output schema exists (so return values are documented there), the complexity is well covered: it handles the dual-input scenario (URL vs upload), the ingest_image fallback, optional analysis features, and the relationship to sibling tools. The 7-parameter tool with nested objects is fully addressed. Genuinely complete.

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 fully documents all 7 parameters. The description adds value by explaining the relationship between image_url/image_id (that image_id comes from ingest_image and is ephemeral), and the style_context's purpose for coherent cultural naming (also present in schema). The description reinforces but doesn't go far beyond the schema's own parameter descriptions, so baseline 3 is appropriate.

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 states the tool extracts dominant colours from a photograph using a specific algorithm (k-means++), distinguishes it from siblings by mentioning the ingest_image prerequisite workflow, and positions it relative to image_brief ('Use this before image_brief'). The verb+resource is specific and the tool's role in a multi-step pipeline is clear.

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?

The description explicitly explains when to use this tool vs alternatives: it requires a public image_url OR image_id, and explicitly instructs calling ingest_image first if the user only has a raw file with no public URL. It also names the alternative (image_brief) and states sequencing ('Use this before image_brief'). This is exemplary usage guidance.

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.7/5.0
Disambiguation2/5

Multiple tool clusters have unclear boundaries: colour_passport, colour_dna, colour_metrics, and colour_cultural_risk overlap heavily; palette_extract, extract_image_colours, image_palette, and ingest_image cover similar image-colour extraction territory; and compound tools like design_session, image_brief, session_brief, and archive_report_brief duplicate chains of component tools. The descriptions are detailed and occasionally state 'use this instead of X', but an agent still faces many near-duplicate choices.

Naming Consistency3/5

Names are consistently snake_case and often use domain prefixes (colour_, palette_, archive_, brand_, accessibility_), but verb placement is mixed: some are verb_noun (extract_image_colours, query_hex, style_match), others are noun_verb (colour_dna, palette_generate, brand_audit), and a few standalone names (ui_states, tool_guide, meta_capabilities) don't fit either pattern. The convention is readable but not uniform.

Tool Count1/5

At 88 tools, this is far beyond the reasonable well-scoped range and exceeds the 50+ extreme mismatch threshold. Many tools are compound wrappers that consolidate chains of simpler tools, adding redundancy and cognitive load rather than genuine coverage.

Completeness5/5

For the apparent domain, the tool surface is extremely comprehensive: colour extraction, analysis, naming, accessibility, cultural/provenance research, palette generation, brand systems, interior design, ecommerce copy, image briefs, project lifecycle, exports, and diagnostic tools are all present. Persistent objects have list/get/versions/delete/export support, so there are no obvious dead ends.

Resources