Skip to main content
Glama

krita_create_file_layer

DestructiveIdempotent

Create a linked PNG/JPEG layer in a Krita document from an external image file. It stays in sync with the source path and supports optional scaling to image size.

Instructions

Create a linked PNG/JPEG file layer from a configured input root. Krita watches the source; keep it available. Supports no scaling or fit to image, with Bicubic filtering. No guaranteed undo. Reuse operation_id on retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
pathYes
rootYes
document_idYes
instance_idYes
operation_idYes
parent_node_idNo
scaling_methodNoNone

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent), the description adds meaningful operational details: the layer is linked and watched, no guaranteed undo, retries should reuse operation_id, and scaling behavior is constrained. These details are not derivable from the schema and help the agent set expectations for this destructive mutation.

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 description is compact and front-loaded: three sentences with purpose first and no filler. The wording 'Supports no scaling or fit to image, with Bicubic filtering' is slightly strained, but it still packs several constraints efficiently into a short space.

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

Completeness3/5

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

The description covers the most important behavioral and parameter aspects, but it does not explain what a successful invocation returns or how to verify success/failure. With no output schema, an agent is left to infer the post-condition of the operation, although the operation_id retry instruction implies the operation is trackable.

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 coverage, the description compensates for the key tool-specific parameters: root via 'configured input root', path via 'PNG/JPEG file', scaling_method via the supported scaling options, and operation_id via the retry instruction. The phrase about scaling is slightly ambiguous against the enum, and generic IDs like instance_id/document_id remain implicit, but the core parameter meanings are covered.

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 opens with a specific verb plus resource: 'Create a linked PNG/JPEG file layer from a configured input root.' This clearly identifies the tool's purpose and distinguishes it from sibling creation tools like paint/group/vector layers, and from krita_import_image_layer by emphasizing the linked external-file behavior.

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?

It provides actionable context: Krita watches the source file and the source must remain available. It also warns that scaling/fit-to-image is not directly supported and advises reusing operation_id on retries. However, it does not explicitly name alternative tools for embedded imports or scaled placement, so the guidance stops short of a complete when-not statement.

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