Skip to main content
Glama

krita_action

Executes a specified Krita command on the active document or layer without opening dialogs, covering selection, layer, image, animation, and view operations.

Instructions

Run one of Krita's own commands on the active document/layer (curated, no dialogs): selection: select_all, deselect, reselect, invert_selection, select_opaque(_add|_subtract|_intersect), copy_selection_to_new_layer, cut_selection_to_new_layer, clear_selection_pixels, fill_with_foreground, fill_with_background, fill_with_pattern, selection_to_vector_shape layers: convert_to_paint_layer, convert_to_animated_layer, convert_group_to_animated, convert_to_transparency_mask, convert_to_selection_mask, alpha_into_mask, flatten_layer, isolate_layer, isolate_group, rotate_layer_90_cw|90_ccw|180, mirror_all_layers_horizontally|vertically image: rotate_image_90_cw|90_ccw|180, trim_to_image, trim_to_layer, trim_to_selection, duplicate_image_as_new_document, create_snapshot animation: next_frame, previous_frame, next_keyframe, previous_keyframe, first_frame, last_frame, toggle_onion_skin, play_pause, stop_playback view: zoom_to_fit, zoom_to_100, zoom_in, zoom_out, mirror_view, rotate_view_left|right, reset_view, toggle_wrap_around, toggle_grid, toggle_pixel_grid, toggle_guides, toggle_rulers, toggle_selection_display, toggle_canvas_only

Input Schema

NameRequiredDescriptionDefault
nameYes
layerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses the execution model (native Krita command, no dialogs, acts on the active document/layer), but it does not flag that several listed commands are destructive or irreversible in effect (flatten_layer, clear_selection_pixels, trim_to_image, cut_selection_to_new_layer), nor does it mention error behavior for unknown names or whether operations land in undo history.

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 one-sentence preamble is front-loaded and the enumeration is grouped into labeled categories, so scanning is easy. Length is justified because it is the only source of the allowed command values, though the compressed alternative-syntax notation adds avoidable parsing burden.

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?

For a two-parameter command dispatcher with no output schema and no annotations, the description covers the input value domain well but leaves the agent guessing on several practical points: the meaning of the optional layer argument, return content, and failure modes. It is adequate but not sufficient to invoke confidently in edge cases.

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?

Schema description coverage is 0% and the 'name' field has no enum, so the description is doing real work by supplying the entire allowed value domain, grouped by category. It falls short on the 'layer' parameter, which is never explained (whether it overrides the active layer and what 'null' means), and the pipe/underscore notation such as 'select_opaque(_add|_subtract|_intersect)' and 'rotate_layer_90_cw|90_ccw|180' must be decoded by the agent rather than listed as literal values.

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 states a specific verb and resource: 'Run one of Krita's own commands on the active document/layer (curated, no dialogs)', and then enumerates the exact command set by category. It never distinguishes this from overlapping siblings such as rotate_image, flip, flatten_image, view_control, fill_selection or set_selection, so an agent cannot tell which surface is authoritative for a given operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance. The word 'curated' hints that only a subset of Krita commands is exposed, but nothing tells the agent whether to prefer this tool or the dedicated sibling (for example rotate_image, flip, or view_control) for the same effect, or what to do when a command is not in the list.

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