Skip to main content
Glama

gimp_create_document

Create a new empty GIMP image with set width, height, color mode, and background fill. Returns an image ID and layer list so other GIMP tools can edit it like an opened file.

Instructions

Headless GIMP: create a new, empty image from scratch — not from a file (that is gimp_open_document). width/height, mode (rgb/grayscale, default rgb), fill for the single background layer (white/black/transparent, default white), optional precision (16/32-bit, same promotion gimp_open_document's own precision does) and name. Returns the exact same shape gimp_open_document does (image id, dimensions, base type, precision, layer list), so every other gimp_* tool treats it identically to an opened file.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "gimp_create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fillNoThe single background layer's initial content.white
modeNoThe new image's base color mode.rgb
nameNoThe background layer's name. Defaults to 'Background'.
widthYesCanvas width, in pixels.
heightYesCanvas height, in pixels.
precisionNoPromote bit depth at creation, same as gimp_open_document's own `precision` — use this ahead of an aggressive tone move to avoid visible banding. Omit for ordinary 8-bit. The megapixel cap this tool enforces scales down with bit depth (a 16-bit request costs 2x the memory of the same pixel count at 8-bit, 32-bit float 4x): 250 MP at 8-bit, 125 MP at 16-bit, 60 MP at 32-bit — the same per-side 30000px limit applies at every depth.

Output Schema

NameRequiredDescriptionDefault
imageNo
widthNo
heightNo
layersNo
base_typeNo
precisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the output shape matches gimp_open_document (image id, dimensions, base type, precision, layer list) so downstream gimp_* tools treat the result identically, plus the default single background layer and precision-promotion semantics. It does not restate the safety hints, which is correct.

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 with the core distinction (create vs. open) and dense but purposeful in its em-dash clauses; nothing is filler. It is a single long sentence, though, which slightly reduces scannability for an agent parsing options.

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?

An output schema exists, yet the description still usefully tells the agent that the return shape is interchangeable with gimp_open_document, which is the key interoperability fact. With 2 required params, clear defaults, and enum coverage, an agent has everything needed to call this correctly.

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 100% and enum/default values are already documented per parameter, so the bar is the baseline 3. The description reinforces defaults (rgb/white) and links `precision` to gimp_open_document's behavior, but the megapixel-cap and per-side limit details live in the schema, not the prose, so little is added.

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 ('create a new, empty image from scratch') and immediately negates the most confusable sibling ('not from a file (that is gimp_open_document)'). An agent can distinguish this from gimp_open_document without opening either schema.

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?

Explicitly names the alternative (gimp_open_document) and the condition that selects it (starting from a file vs. from scratch). It also gives a forward-looking usage cue for `precision` ('use this ahead of an aggressive tone move to avoid visible banding'), which tells the agent when the optional parameter matters.

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