Skip to main content
Glama

image_flip

Read-onlyIdempotent

Flip an image horizontally (mirror left to right) or vertically. 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>",
      "direction": "<direction>"
    },
    "name": "image_flip"
  }
}

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
qualityNo0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG
directionYesDirection: one of horizontal, vertical.
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 / direction / description
      Added value: +"Direction: one of horizontal, vertical."
    • 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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: the supported input/output formats and the notable constraint that GIFs are processed as first frame only. It omits that metadata is stripped by default and that transparent areas are filled for JPEG, but those live in the schema.

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?

Two tight sentences: the operation and its modes come first, followed by the format support list. No filler, and the most decision-relevant information is front-loaded.

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?

For a six-parameter, fully documented, non-destructive transform with no output schema, the description covers the operation, modes, and format envelope adequately. Only minor gaps remain, such as default output format behavior, which the schema already handles.

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 every parameter including direction, quality, format, stripMetadata, and backgroundColor is already documented. The description adds no parameter-level meaning beyond restating the direction options, so the baseline 3 applies.

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 ('Flip an image') and disambiguates the two modes with parenthetical explanation ('mirror left to right'). It does not, however, distinguish itself from the sibling image_rotate, which an agent could plausibly confuse with a vertical flip.

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 by the operation itself, but there is no explicit when-to-use or when-not-to-use guidance, and no pointer to image_rotate for the common 'flip vs. rotate 180' ambiguity.

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