Skip to main content
Glama
gimp-mcp-studio
by Onru-Labs

get_pixel_color

Retrieves the RGB, hex, and alpha color values of a single pixel at specified coordinates, optionally from a chosen image layer.

Instructions

Get the color of a single pixel.

Parameters:

  • x, y: Pixel coordinates

  • image_index: Target image index (default 0)

  • layer_name: Layer to sample from; defaults to active layer

Returns: {color_hex, color_rgb: [r, g, b], alpha}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
layer_nameNo
image_indexNo

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 supplied, the description carries the full burden; it does disclose useful defaults (image_index 0, layer_name falls back to the active layer) and the exact return shape {color_hex, color_rgb, alpha}. However it says nothing about out-of-bounds coordinates, missing layers, color-mode differences, or whether sampling is affected by selection/visibility.

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?

Front-loaded purpose sentence followed by a compact Parameters block and a Returns line; every element earns its place. Minor loss for not labeling the coordinate system in the x,y bullet.

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 simple four-parameter read tool the description is largely sufficient, and it compensates for the absent output schema by spelling out the return object. It still omits error/failure behavior for invalid coordinates or layers, which matters because there are no annotations to fall back on.

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?

Schema description coverage is 0% (properties carry only bare titles like 'X' and 'Layer Name'), yet the description explains all four parameters, including the non-obvious fallback semantics of layer_name and the default of image_index. Only the coordinate origin/space is left unstated.

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?

The description opens with a specific verb and resource: 'Get the color of a single pixel.' That is unambiguous and clearly distinct from the other sampling/inspection siblings such as get_histogram or get_image_metadata. It stops short of naming an alternative or scoping when a single pixel vs a region is appropriate, so it is clear but not sibling-differentiated.

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

Usage Guidelines2/5

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

There is no guidance on when to use this rather than get_histogram, select_by_color, or get_image_metadata, and no stated preconditions (e.g., an image must be open, the layer must exist). The only implied usage comes from the parameter list itself.

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