Skip to main content
Glama

Edit image

image_edit

Edit images: resize, compress, convert, strip metadata, or remove background. Returns real output dimensions and byte size.

Instructions

Resize, compress, convert (jpeg, png, webp), strip metadata (EXIF, GPS, XMP) or remove the background from an image. strip_metadata never re-encodes pixels. remove_background downloads a 4.4MB model once per machine and always writes PNG. Returns the real output dimensions and byte size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opYes
outNo
pathYesAbsolute path of the source image. Relative paths are refused
widthNoresize: give width or height alone to keep the aspect ratio
formatNoconvert: target format. Others: default keeps the source format
heightNo
qualityNocompress, convert, resize: 1-100. Default 85 (compress 75)
backgroundNoremove_background: fill colour behind the subject, for example #ffffff. Default transparent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4/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 burden and does well: it discloses that strip_metadata never re-encodes pixels (lossless), that remove_background triggers a one-time 4.4MB model download and always emits PNG, and what the tool returns. It does not say whether the source file is overwritten or how `out` defaults, which keeps it short of a 5.

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?

Four tight sentences, front-loaded with the operation taxonomy, then the highest-value caveats (lossless strip, model download, PNG output, return values). No filler.

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?

No output schema exists, and the description compensates by describing the return values (real dimensions and byte size). Operations and key side effects are covered; minor gaps remain around overwrite behavior and how `out` interacts with the source path for an 8-parameter mutation tool.

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 coverage is 63%, with the schema itself already documenting width, height, format, quality, and background. The description adds no parameter-level detail beyond restating the formats and the ops, so it neither compensates for the coverage gap nor exceeds the schema's baseline.

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?

Names the specific verb (edit) and enumerates all five operations (resize, compress, convert, strip_metadata, remove_background), with formats spelled out. This clearly separates it from the document/pdf siblings (doc_convert, pdf_edit) that share the editing domain.

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 list, but there is no explicit when-to-use/when-not guidance, nor advice on choosing among the five ops (e.g. compress vs convert). With no competing image sibling, the routing need is lower, but the op-selection decision is left to inference.

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