Skip to main content
Glama

image_rotate

Read-onlyIdempotent

Rotate an image clockwise by 90, 180 or 270 degrees (no other angles). Reads and writes JPEG, PNG, WebP, AVIF, GIF (first frame), TIFF

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": {
      "fileBase64": "<fileBase64>",
      "degrees": "<degrees>"
    },
    "name": "image_rotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNopng, jpeg (or jpg), webp, avif, gif, tiff, bmp or ico; image/... types also work. Default: the same format as the input
degreesYesClockwise rotation: 90, 180 or 270.
qualityNo0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG
fileBase64YesThe input file as a base64 string, without a data: prefix.
stripMetadataNoRemove EXIF/GPS/colour-profile data. Default true
backgroundColorNoFill for transparent areas (always used for JPEG), e.g. '#ffffff' or 'white'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / degrees / description
      Added value: +"Clockwise rotation: 90, 180 or 270."
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
  2. Changed5 schema fields changed
    • addedInput schema / properties / backgroundColor
      Added value: +{
      +  "description": "Fill for transparent areas (always used for JPEG), e.g. '#ffffff' or 'white'",
      +  "type": "string"
      +}
    • addedInput schema / properties / format / description
      Added value: +"png, jpeg (or jpg), webp, avif, gif, tiff, bmp or ico; image/... types also work. Default: the same format as the input"
    • removedInput schema / properties / format / enum
      Removed value: -[
      -  "image/png",
      -  "image/jpeg"
      -]
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / stripMetadata
      Added value: +{
      +  "description": "Remove EXIF/GPS/colour-profile data. Default true",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, closed-world). The description adds real behavioral detail beyond them: the 270-degree cap, the exact set of supported formats, and the fact that only the first frame of an animated GIF survives. It does not say what the response contains (base64 string vs. binary), which is the one remaining gap.

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?

Two short sentences with zero filler, and the angle restriction is front-loaded right after the core action. The format list is dense but earns its place by bounding what the tool accepts.

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?

With a fully described six-parameter schema and complete annotations, the description only needs to add constraints and quirks, which it does. The only missing piece is the return shape (no output schema exists), which the agent must guess at.

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 100%, so quality, stripMetadata, backgroundColor, and fileBase64 are already well documented in the schema; baseline is 3. The description adds only the angle constraint, and its format list (JPEG, PNG, WebP, AVIF, GIF, TIFF) actually omits bmp and ico that the schema's format parameter permits, so it adds no net 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 and resource (rotate an image clockwise) with hard constraints (only 90/180/270) and an explicit format list including the GIF first-frame limitation. An agent can immediately tell this apart from sibling transforms like image_flip or 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 Guidelines3/5

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

The description constrains input (angles, formats) but gives no explicit when-to-use versus alternatives such as image_flip, image_convert, or pdf_rotate. Usage is implied by the tool name and constraints rather than stated, leaving the agent to infer that this is the only rotation path for raster images.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources