Skip to main content
Glama

rotate_flip

Rotate images clockwise by specified degrees and flip horizontally or vertically; applies EXIF orientation first to fix sideways photos and save corrected output.

Instructions

Rotate clockwise by degrees (90/180/270 are exact and lossless; other angles enlarge the canvas and fill corners with background, transparent by default) and/or flip ('horizontal' = mirror left-right, 'vertical' = upside down).

EXIF orientation is always applied first, so degrees=0 with no flip simply fixes a photo that shows sideways in some viewers (auto-orient) and removes the stale tag. Output: photo.rotated.jpg unless output= is given; never overwrites unless overwrite=true.

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": {
      "path": "<path>"
    },
    "name": "rotate_flip"
  }
}

Input Schema

NameRequiredDescriptionDefault
flipNonone
pathYes
outputNo
degreesNo
previewNo
qualityNo
overwriteNo
allow_hugeNo
backgroundNo
keep_metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that non-orthogonal angles enlarge the canvas and fill corners with `background`, that EXIF orientation is applied first and the stale tag removed, the default output filename, and that nothing is overwritten unless `overwrite=true`. It omits what `preview` does (write vs dry-run), quality re-encoding effects, and any error/permission behavior for a mutation tool.

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?

Three short blocks: operation semantics first, then the EXIF caveat, then output/naming behavior. Front-loaded and free of filler, though the parenthetical about lossless angles is dense and could be split for scanability.

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 10-parameter mutation tool with no annotations and no output schema, the description covers core transform semantics well but leaves several meaningful flags (preview, quality, allow_huge, keep_metadata) unexplained, and gives no sense of the return value. Adequate for the main path, incomplete for the full parameter surface.

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

Parameters3/5

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

Schema description coverage is 0% across 10 parameters, so the description must compensate and only partly does: it explains `degrees`, `flip` values, `background`, `output`, and `overwrite`. It says nothing about `path`, `preview`, `quality`, `allow_huge`, or `keep_metadata`, leaving half the parameters with no meaning anywhere.

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 specific verbs and resources: rotate clockwise by `degrees` and/or flip horizontally/vertically, plus EXIF auto-orient. An agent immediately knows this is the rotation/mirroring tool rather than resize/crop/convert. It stops short of naming a sibling, so differentiation is inferred from the operation names.

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?

The EXIF sentence effectively documents a useful non-obvious usage case (degrees=0 with no flip as a pure auto-orient/fix-sideways action), and the output/overwrite sentence sets expectations. However, there is no explicit when-to-use-this-vs-alternative guidance, and combos like rotate+flip in one call versus two calls are left implicit.

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