Skip to main content
Glama

Rotate image

gimp_rotate_image
Destructive

Rotate an entire GIMP image by 90, 180, or 270 degrees clockwise, including canvas, layers, selection, and paths, in one lossless undo step.

Instructions

Rotate the whole image (canvas, layers, selection, paths) by 90, 180 or 270 degrees clockwise. Lossless. One undo step.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>",
      "angle": "<angle>"
    },
    "name": "gimp_rotate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
angleYes
imageYesImage id from gimp_status, e.g. 'image:1@a1b2c3d4'.

Output Schema

NameRequiredDescriptionDefault
idNo
dirtyYes
imageYes
widthYes
heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the description's job is to add nuance — and it does: 'Lossless' and 'One undo step' tell the agent the mutation is reversible and quality-preserving, which materially lowers the risk calculus. It doesn't cover prerequisites (does the image need to be open/active?) but the added context is substantive.

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 short sentences, zero filler, with the operation and its scope front-loaded and the two risk-relevant facts (lossless, one undo step) trailing. Every clause carries information an agent needs.

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?

An output schema exists so return values need no explanation, and annotations cover the safety profile; the description fills the remaining gaps (affected regions, direction, reversibility). Only marginal items like whether the image must already be open are unstated.

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 50%: the image id is documented in-schema, but the angle enum carries no direction semantics. The description supplies 'clockwise', which is the missing half — without it, an agent cannot know whether 90 means clockwise or counter-clockwise. It adds real meaning beyond the schema.

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?

States a specific verb (rotate), an explicit scope (the whole image) and enumerates exactly what is affected (canvas, layers, selection, paths). The scope wording cleanly separates it from sibling gimp_rotate_layer, which by name alone would rotate only a layer.

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 'whole image' framing gives a clear selection signal against the layer-level rotate sibling and the other transform tools (crop, resize, flip). It stops short of an explicit when-to-use/when-not-to-use statement naming an alternative, but the context is unambiguous.

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