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

get_context_state

Retrieve the current GIMP context state, including colors, brush, opacity, blend mode, feathering, and antialiasing, to verify settings before drawing and detect changes made in the GIMP UI.

Instructions

Get the current GIMP context state (colors, brush, settings).

IMPORTANT: Context state can be changed by the user in GIMP UI at any time. Check context state before operations that depend on specific settings.

Returns information about:

  • Foreground and background colors (RGB/RGBA values)

  • Current brush and its properties

  • Opacity setting (0-100%)

  • Paint/blend mode

  • Feather state and radius

  • Antialiasing state

Use cases:

  • Verify colors before drawing operations

  • Check if feathering is enabled (avoid unwanted blurry edges)

  • Ensure correct opacity and blend mode

  • Detect if user changed settings in GIMP UI

Returns:

  • Dictionary containing current context state

  • Raises exception if unable to get context state

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it warns that state can be mutated externally by the user at any time, which is genuine behavioral context an agent cannot get from structured data. It also discloses the failure mode (raises an exception if the context cannot be read). It does not explicitly state it is a non-mutating read, though 'Get' implies it.

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 critical warning about user-driven state changes is well placed near the top, and the bulleted field list is scannable. However, content is duplicated: the 'Returns information about' bullets and the separate 'Returns:' section restate the same payload description, and the use-case bullets largely repeat the field list. Trimming one of those blocks would make it materially tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must describe the return value, and it does — a dictionary of the listed fields, plus the exception behavior. Combined with the schema being empty, an agent has enough to call this correctly; only the sibling differentiation and explicit read-only framing are absent.

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 is empty, so there are no parameters whose semantics need explanation. The baseline of 4 applies; nothing is added or missing on this dimension.

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 ("Get the current GIMP context state") and enumerates exactly what state is covered (colors, brush, opacity, blend mode, feather, antialiasing). It is clear what the tool does, but it never distinguishes itself from related siblings such as get_state_snapshot, get_gimp_info, or get_pixel_color, leaving the agent to infer the boundary.

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?

Provides an explicit 'Use cases' list and a strong conditional rule: check context state before operations that depend on specific settings. What is missing is the negative side — it never says when not to call it, or which alternative to use instead when the agent wants a broader snapshot or a single pixel value.

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