Skip to main content
Glama

create_layer

Create paint, vector, group, fill, filter, clone, or file layers and masks in Krita; the new layer becomes active and can be placed in a group or above a sibling.

Instructions

Create a layer or mask; it becomes the active layer. type: paintlayer (fill = optional solid colour), vectorlayer, grouplayer, filllayer (fill = colour, or pattern = pattern resource name) - a non-destructive colour/pattern layer, filterlayer (filter + filter_params) - non-destructive adjustment of everything below, clonelayer (source = layer to mirror live), filelayer (path = image in the workspace, kept as a live link), filllayer with generator = seexpr | screentone | gradient | multigrid and generator_config, e.g. seexpr {"script": "$c = noise(10*$u, 10*$v); [$c, $c*0.8, 1-$c]"} (procedural textures), screentone {"pattern": 0, "shape": 0, "frequency_x": 30, "rotation": 45, "foreground_color": "#000000", "background_color": "#ffffff"} (manga tones), gradient {"shape": "radial", "start_position_x": 50, "start_position_y": 50, "end_position_x": 100, "end_position_y": 50} (uses the user's fg/bg colours), filtermask (filter + filter_params) / transparencymask - attached to parent (default: active layer), limited to the current selection if there is one. parent = group layer id/name (or the layer a mask attaches to); above = sibling to stack over.

Input Schema

NameRequiredDescriptionDefault
fillNo
nameNoLayer
pathNo
typeNopaintlayer
aboveNo
filterNo
parentNo
sourceNo
patternNo
generatorNo
filter_paramsNo
generator_configNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/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 well: it discloses the side effect that the new layer becomes active, that fill/filter layers are non-destructive, that clonelayers and filelayers stay live-linked, that masks attach to parent (defaulting to the active layer), and that creation is clipped to the current selection. It omits failure conditions (no open document, invalid filter name) and whether the operation is undoable.

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 core purpose is front-loaded and the length is defensible given 12 undocumented parameters, but the body is a dense run-on enumeration with dangling fragments ('type:', 'parent = ...; above = sibling to stack over.'). Bullet-per-type formatting would preserve the same content with far better scanability.

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?

For a 12-parameter creation tool with no annotations and no output schema, the description covers nearly everything an agent needs to construct a valid call, including nested config shapes. The remaining gap is return behavior — it never says what comes back (e.g. the new layer's id/name), which matters since no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 12 parameters, so the description must compensate and largely does: fill, path, parent, above, filter, filter_params, source, pattern, generator, generator_config, and type each get concrete meaning, including worked generator_config examples for seexpr, screentone, and gradient. Only 'name' (default 'Layer') is left to obvious inference.

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 up front ('Create a layer or mask') and then enumerates every creatable type (paintlayer, vectorlayer, grouplayer, filllayer, filterlayer, clonelayer, filelayer, filtermask, transparencymask). This makes it unmistakable versus siblings like update_layer, duplicate_layer, or delete_layer, and the 'becomes the active layer' clause fixes the resulting state.

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?

Guidance is embedded per type: filllayer for non-destructive colour/pattern, filterlayer for non-destructive adjustment of everything below, clonelayer for live mirroring, filelayer for a live-linked image, plus the selection caveat and the parent default of 'active layer'. It never names a sibling to use instead (e.g. update_layer for modifying an existing layer), so the when-not path is left implicit.

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