Skip to main content
Glama

paint_transform

Apply affine transforms—translate, scale, rotate, or a custom matrix—to a paint layer or selected pixels while keeping text and vector sources editable.

Instructions

Affine layer transform (document canvas fixed). matrix=[a,b,c,d,e,f], x'=ax+by+c,y'=dx+ey+f; or translate/scale/clockwise degrees about origin. resample='nearest' keeps pixel art crisp. Text/vector source remains editable. selection_only cuts/moves selected raster pixels.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "paint_transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNo
matrixNo
originNo
layer_idNoTarget layer id or unique layer name; the active layer stays unchanged. Default: active layer
resampleNobicubic
rotationNo
translateNo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)
selection_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does real work: it discloses that the canvas stays fixed, that text/vector sources remain editable (non-destructive), and that selection_only destructively cuts/moves raster pixels. It does not explain what happens when multiple transform parameters are supplied at once, nor the undo/history implications of a raster cut.

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?

Very compact and front-loaded with the purpose sentence before mechanics. The telegraphic, semicolon-chained style packs in detail without filler, though the density slightly reduces first-read clarity.

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 9-parameter tool with no annotations and no output schema, the definition covers the transform math and the two notable flags but omits parameter interaction rules and any statement of what is returned or how the new layer geometry appears. Adequate, not complete.

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 coverage is only 22%, so the description must compensate, and it does: matrix is given as [a,b,c,d,e,f] with the x'=ax+by+c, y'=dx+ey+f formulas, rotation is specified as clockwise degrees about origin, and resample and selection_only are given behavioral meaning. Gaps remain on origin's array format and on precedence between matrix, scale, translate, and rotation.

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?

States a specific verb and resource: 'Affine layer transform (document canvas fixed)', which tells an agent it warps a layer, not the canvas. That scope distinction is useful, but the description never contrasts this tool with sibling operations like paint_selection or paint_shape, so differentiation rests on the word 'layer' alone.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'resample=nearest keeps pixel art crisp' signals when that setting matters, and 'selection_only cuts/moves selected raster pixels' hints at a selection workflow. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for non-affine edits.

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