Skip to main content
Glama

image_tools_palette

Pull the main colours out of an image: hex and RGB with each colour's share, the dominant and average colour, whether the image is dark, a swatch PNG, a .gpl palette file and CSS variables. Price: $0.01 USDC via x402, charged only on success. Part of Image tools: Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image..

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "image_tools_palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoImage file as base64 (PNG, JPEG, WebP, AVIF, GIF, TIFF or SVG).
colorsNo
imageUrlNoLink to the image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With zero annotations, the description carries the full burden, and it does disclose two valuable traits: a $0.01 USDC x402 charge and that billing occurs only on success. It does not cover error behavior, size/format limits, or the fact that at least one image source must be supplied while no parameter is marked required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and dense with useful output detail, and the pricing sentence is short. The trailing 'Part of Image tools: ...' catalog blurb is boilerplate that spends several lines on unrelated capabilities and pushes the total well past what this tool needs.

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?

With no output schema, the description does a good job enumerating return artifacts, which is the main thing an agent needs. However, it is silent on the one tunable input (palette size) and on the requirement to pass image or imageUrl, leaving real gaps for a tool with no annotations.

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 coverage is 67%, with the 'colors' parameter carrying only default/min/max and no prose. The description never mentions that the palette size is configurable (2-32), and it does not resolve the image-vs-imageUrl ambiguity or state that one of them is needed. It adds no meaning beyond the schema fragments that exist.

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?

A precise verb-plus-resource ('pull the main colours out of an image') followed by an explicit enumeration of what is returned: hex/RGB, share, dominant and average colour, dark/light flag, swatch PNG, .gpl file, CSS variables. That makes it unmistakably distinct from siblings like convert or diff even without naming them.

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 by the output list (design tokens, palette extraction). There is no statement of when to choose this over image_tools_inspect or image_tools_convert, no prerequisites, and no exclusions. The pricing note tells the agent there is a cost but not the threshold at which it is worth paying.

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