Skip to main content
Glama

gimp_bake

DestructiveIdempotent

Bake a layer's live filters into its own pixels without merging layers, preserving layer type and mask confinement; use all:true to bake every filtered layer at once.

Instructions

Headless GIMP: bake a layer's live filters into its own pixels without merging it into anything else — the layer survives as itself, just with no more re-editable filters; a text layer stays a text layer (baking never rasterizes one). A masked filter's confinement survives the bake exactly. Defaults to the selected layer, or the topmost layer if none is selected, the same as any other gimp_layer addressing. Baking clears any masked-filter refusal (gimp_canvas, gimp_resize_image, gimp_transform_canvas) that filter would otherwise trigger — it is the sanctioned way to make a masked adjustment safe to resize, rotate, or flip around. all: true bakes every ordinary layer with a live filter at once; a group layer is always skipped, even one that carries its own filter (GIMP cannot merge filters on a group item) — reported under skipped_groups_with_filters rather than silently ignored. Targeting a group directly (layer/layer_id) is refused outright. IRREVERSIBLE in this session: there is no undo, so gimp_checkpoint or gimp_save_xcf first when in doubt.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>"
    },
    "name": "gimp_bake"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoBake every layer on the image that has any live filter, instead of just one. A group layer is always skipped even when it carries its own filter (GIMP cannot merge filters on a group item) — any such group is reported under skipped_groups_with_filters rather than silently ignored.
imageYesImage id, as returned by gimp_open_document.
layerNoLayer name. Defaults to the selected layer, or the topmost layer if none is selected. Ignored when layer_id or all is given.
layer_idNoCanonical layer id. Takes priority over `layer`. Ignored when `all` is given.

Output Schema

NameRequiredDescriptionDefault
nameNo
bakedNo
layer_idNo
baked_layersNo
skipped_groups_with_filtersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds critical context the annotations cannot: there is no undo in the session, so the effect is irreversible despite idempotentHint=true. It further discloses mask-confinement preservation, group layers always being skipped and reported under skipped_groups_with_filters, and direct group targeting being refused — substantive behavior beyond structured fields.

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 most important facts are front-loaded: what baking does, then what it does not do (no merge, no rasterize), then the refusal-clearing rationale, then the danger warning. It is dense and long for a single paragraph, and the group-skip rule is restated in the schema, but nearly every clause carries real decision-relevant information.

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?

For a destructive, irreversible filtering tool with four parameters, the description covers scope, defaults, batch behavior, refusal semantics, skipped-group reporting, and the safety prerequisite. Since an output schema exists, the absence of return-value detail is not a gap, and nothing an agent needs to invoke this safely is missing.

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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains the default layer resolution ('selected layer, or the topmost layer if none is selected, the same as any other gimp_layer addressing') and frames all:true as a batch mode whose skipped groups surface in a named return field. Some of this duplicates the schema's own `all` description, which keeps it from a 5.

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?

States a specific verb and resource ('bake a layer's live filters into its own pixels') and immediately bounds the operation ('without merging it into anything else — the layer survives as itself'), which distinguishes it from any layer-merge or flatten behavior. It also clarifies a subtle boundary (text layers are not rasterized), so an agent knows exactly what transformation happens.

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?

Gives explicit when-to-use guidance: it is named as 'the sanctioned way to make a masked adjustment safe to resize, rotate, or flip around', tying it directly to the refusal paths in gimp_canvas, gimp_resize_image, and gimp_transform_canvas. It also states prerequisites and alternatives ('gimp_checkpoint or gimp_save_xcf first when in doubt') and the all-vs-single-layer selection rule, leaving little to inference.

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