Skip to main content
Glama

Rotate / flip image

image_rotate
Read-onlyIdempotent

Rotate images by any angle and flip them horizontally or vertically, with EXIF orientation correction to fix sideways phone photos before saving as JPEG, PNG, WebP, or AVIF.

Instructions

Rotate an image clockwise by 90, 180, 270 or any angle (the canvas grows to fit; new corners get background), and/or flip it horizontally (mirror) or vertically. Flips apply after the rotation, as seen on screen. EXIF orientation is applied first (autoOrient, default on), so with angle 0 this simply "fixes" sideways phone photos. Output JPEG/PNG/WebP/AVIF ("keep" = same as input), name -rotated.. Web version: https://s3eidat.github.io/photo-filters/

Input Schema

NameRequiredDescriptionDefault
angleNoClockwise rotation in degrees (negative = counter-clockwise). Default 90.
imageYesThe image: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI).
formatNoOutput format. Default keep (JPEG/PNG/WebP stay, others become PNG).keep
outputNoWhere to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set).
qualityNoQuality 1-100 for JPEG / WebP / AVIF (ignored for PNG). Default 92, same as the website.
autoOrientNoApply the EXIF Orientation tag first (what browsers show). Default true.
backgroundNoFill for the corners uncovered by a non-right-angle rotation. Default transparent (white in JPEG).#00000000
flipVerticalNoMirror top-bottom (after rotating).
returnBase64NoAlso return the output as base64 in the result (only for small files). Default false.
flipHorizontalNoMirror left-right (after rotating).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true, but the description describes writing an output file: 'Where to write the result' and naming it '<name>-rotated.<ext>'. That is a filesystem mutation and contradicts the read-only annotation, so the score is 1 despite otherwise detailed behavioral context about canvas growth, flip order, and EXIF handling.

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 one front-loaded paragraph with no repetition and is appropriately dense for a 10-parameter image tool. The website link is marginal for an agent, but the rest is efficient and well ordered.

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?

It covers operation semantics, ordering of EXIF/flip/rotate, output formats, output naming, and background behavior. With no output schema, it still leaves the exact return object structure unstated, but for a file-producing image tool it is mostly 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 description coverage is 100%, so the baseline is 3. The description adds useful meaning beyond the schema: the flip applies after rotation as seen on screen, EXIF orientation is applied first, non-right-angle rotations grow the canvas, and uncovered corners use the background fill. It does not discuss quality or returnBase64, but the schema already covers those.

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 states a specific verb and resource: rotate and/or flip an image. It also captures the full operation scope, including arbitrary angles, horizontal/vertical flips, EXIF orientation handling, and output formats, so an agent can distinguish it from image_resize, image_crop, and pdf_rotate.

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 gives clear usage context, including that angle 0 fixes sideways phone photos via EXIF auto-orientation, that flips apply after rotation, and that 'keep' preserves the input format. It does not explicitly say when not to use this tool or name a sibling alternative, so it falls short of a 5.

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

Deploy Server

Other Tools