Skip to main content
Glama

image_transform

Apply crop, resize, rotate, flip, grayscale, and format conversion to an image from a file path or URL, then save the result to disk. Specify only the needed operations and output options.

Instructions

Transform an image: crop, resize, rotate, flip, grayscale, and/or convert format.

Operations apply in order: crop -> resize -> rotate -> flip -> grayscale. Only the operations you specify are applied. The result is written to disk.

Args: source: Local file path or direct http(s) URL to an image. output_path: Where to save. Defaults to ~/Downloads/openmedia/. resize_width: Target width in px (0 = derive from height, keep aspect). resize_height: Target height in px (0 = derive from width, keep aspect). crop: "x,y,width,height" crop box in pixels. rotate: Degrees counter-clockwise (expands canvas). flip: "horizontal" or "vertical". grayscale: Convert to grayscale. output_format: Target format: png, jpeg, webp, bmp, tiff, gif (default: keep). quality: Quality for lossy formats (default 90). return_preview: Also return a small preview of the result to the model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cropNo
flipNo
rotateNo
sourceYes
qualityNo
grayscaleNo
output_pathNo
resize_widthNo
output_formatNo
resize_heightNo
return_previewNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals operation ordering, default output path (~/Downloads/openmedia/), that the result is written to disk, that rotate expands canvas, and that return_preview optionally returns a preview to the model. It does not detail error handling or file overwrite behavior, but the key behavioral traits are covered for a safe default. Slight gap on edge cases but overall strong.

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?

The description is well-structured and front-loaded with the operation order and key behavior. It uses a clear Args list for parameters, avoiding prose. Each sentence earns its place: the intro states purpose, the next explains order and application, then the Args block covers all parameters with concise definitions. No redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (11 parameters, no schema descriptions, no annotations, no output schema), the description is remarkably complete. It explains every parameter's meaning, defaults, operation order, default output path, and optional preview. The only minor omissions are error handling and file overwrite policy, but these are not essential for a basic agent to invoke the tool correctly. The description provides everything needed for correct usage.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain all 11 parameters, and it does. Each parameter (source, output_path, resize_width, resize_height, crop, rotate, flip, grayscale, output_format, quality, return_preview) has a clear meaning, including units, defaults, and allowed values (e.g., crop format, flip options). This fully compensates for the lack of schema descriptions.

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 explicitly states the tool transforms images with a list of operations: crop, resize, rotate, flip, grayscale, and format conversion. It makes the resource (image) and action (transform) clear, distinguishing it from other media tools like audio_convert or video_clip. The operation order is even specified, leaving no ambiguity about what the tool does.

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 description implies usage context by listing image-specific transformations and noting that only specified operations apply. It doesn't explicitly name alternatives or when not to use it, but sibling tools are clearly for different media (audio/video) or separate purposes (image_info, image_view), making misselection unlikely. Clear context but no explicit exclusions, so a 4 is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Builderstar/openmedia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server