Skip to main content
Glama

krita_generate_diffusion

DestructiveIdempotent

Run the active Krita canvas through a local AI Diffusion model, respecting selection. Use strength under 1 to refine existing content; poll generation separately before pixels apply.

Instructions

Submit one image through the active document's existing AI Diffusion model and local backend. Inherits canvas selection, regions and controls; strength below 1 refines the canvas. Reuse operation_id on retries. Poll generation_id separately; completion does not automatically apply pixels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
strengthNo
style_idNo
document_idYes
instance_idYes
operation_idYes
negative_promptNo
positive_promptYes

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already mark the operation as mutating, idempotent, and potentially destructive; the description adds genuinely useful behavioral context: asynchronous generation, retry semantics via operation_id, inheritance of canvas selection/regions/controls, and non-automatic pixel application. No contradiction with the annotations is present.

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 dense sentences front-load the action and then deliver the most important operational caveats in priority order. Every sentence contributes meaningful information without padding.

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

Completeness2/5

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

For an 8-parameter asynchronous tool with no output schema, the description omits return-value details, such as where generation_id comes from and how it is obtained. It covers the high-level lifecycle well, but the missing parameter semantics and output information leave significant gaps for correct invocation.

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

Parameters2/5

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

With 0% schema description coverage, the description must compensate for missing parameter meaning, but it only explains strength and operation_id. positive_prompt, negative_prompt, seed, style_id, instance_id, and document_id are left without semantic guidance beyond their names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies a concrete action—submitting an image through the active document's existing AI Diffusion model—and a specific resource, while clarifying that completion does not apply pixels, which helps separate it from apply/get sibling tools. It is slightly less explicit about the returned generation, but the core purpose is clear.

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 operational guidance: reuse operation_id on retries, poll generation_id separately, and remember that completion does not auto-apply pixels, implying a separate apply step is needed. It doesn't explicitly name sibling alternatives or when-not-to-use conditions, but the context is clear.

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