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

convert_color_mode

Convert an image to RGB, grayscale, or indexed color mode, with configurable color count for indexed output.

Instructions

Convert an image to a different color mode.

Parameters:

  • mode: "RGB", "GRAY", or "INDEXED"

  • num_colors: Number of colors for INDEXED mode (default 256)

  • image_index: Target image index (default 0)

Returns status dict.

Input Schema

NameRequiredDescriptionDefault
modeYes
num_colorsNo
image_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It never says whether the conversion happens in place or on a copy, how the alpha channel or transparency is handled when converting to GRAY or INDEXED, whether the operation is undoable, or what 'status dict' contains. Only the return type is mentioned, and only in a single vague phrase.

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 definition is short, front-loads the purpose, and then uses a clean parameter list, which makes it easy to scan. The only wasteful line is 'Returns status dict.', which adds little value without saying what the status contains.

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?

Parameter documentation is solid, but for a mutation tool with no annotations and no output schema, the description leaves out behavior the agent needs: whether it mutates in place, what the 'status dict' reports, and how INDEXED quantization interacts with the existing palette. It is adequate but clearly incomplete for a write operation.

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% and the schema declares no enums, so the description does real work: it enumerates the allowed mode values (RGB, GRAY, INDEXED), explains that num_colors applies only to INDEXED mode, and clarifies the role and default of image_index. The main gap is that it doesn't say what happens to num_colors when a non-INDEXED mode is passed.

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?

States a specific verb and resource: 'Convert an image to a different color mode.' That is unambiguous about the operation. It does not distinguish itself from nearby siblings like desaturate or invert_colors, which also change pixel values, so the agent gets no explicit differentiation.

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?

No when-to-use guidance at all: nothing says when a color-mode conversion is preferred over desaturate, invert_colors, or adjust_color_balance. There is also no mention of prerequisites, such as needing an open image or an active image context, that would help the agent pick this tool correctly.

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