Skip to main content
Glama

krita_import_image_layer

DestructiveIdempotent

Import a PNG or JPEG image from a configured input root into a Krita document as a new paint layer at a precise pixel offset.

Instructions

Import a bounded PNG or JPEG under a configured input root as a new paint layer at an explicit pixel offset. Image must fit the supported RGBA/U8/sRGB destination; no guaranteed undo transaction. Reuse operation_id on retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
nameYes
pathYes
rootYes
document_idYes
instance_idYes
operation_idYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that there is 'no guaranteed undo transaction' and that 'operation_id' must be reused on retries. It also adds the RGBA/U8/sRGB destination constraint. These are important behavioral traits not inferable from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no filler: the primary action is front-loaded, and each subsequent sentence adds a necessary constraint or retry behavior. Every sentence earns its place.

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 an 8-parameter import operation with no output schema, the description covers the key constraints: file type, root, offset, format compatibility, undo behavior, and idempotency. It omits return value details and active-layer side effects, but these are likely secondary given the operation's clear import semantics.

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?

With 0% schema description coverage, the description compensates by explaining 'root' (configured input root), 'path' (bounded PNG/JPEG), 'x/y' (explicit pixel offset), and 'operation_id' (reuse on retries). It does not explain instance_id or document_id, but these are common identifiers across sibling tools and are less critical.

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?

The description states a specific verb ('Import') with a specific resource ('a bounded PNG or JPEG under a configured input root') and a clear destination ('as a new paint layer at an explicit pixel offset'). This precisely distinguishes it from sibling tools like krita_create_paint_layer (blank layer) or krita_create_file_layer (file layer) without requiring schema inspection.

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?

The description gives clear operational context: import a bounded image file into a paint layer, with constraints on fit and idempotent retry behavior. It does not explicitly name alternative tools or provide when-not-to-use guidance, but the purpose is specific enough that an agent can infer when to select it.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fanzhuyifan/krita6-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server