Skip to main content
Glama

Edit Image Tool

edit_image

Edit an already-uploaded image file (a hashid from create_upload) with one operation: compress, resize, or crop. This is FREE and only needs an account, no subscription.

To use a local file: call create_upload, PUT the bytes to the returned upload_url, then pass that id here as file. Do NOT call complete_upload (that starts the paid clip pipeline); this free tool reads the uploaded file directly.

Operation params:

  • compress: quality (int 1-100, default 80) and format (jpg|png|webp, default jpg).

  • resize: width and height (ints), optional format.

  • crop: aspect ("1:1"|"9:16"|"16:9"|"4:5") OR x,y,width,height (ints), optional format.

Processing is ASYNCHRONOUS: this returns a tool_job hashid and status: "queued". Poll get_tool_job_status with that tool_job until it reports completed, then it returns the downloadable output URL. Free usage is rate-limited per day with a per-file size cap; a clear error explains how to lift a limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNocrop: left offset in pixels.
yNocrop: top offset in pixels.
fileYesThe uploaded image id (hashid) from create_upload (no complete_upload needed).
widthNoresize/crop: width in pixels.
aspectNocrop: target aspect "1:1", "9:16", "16:9" or "4:5". Use this OR x/y/width/height.
formatNoOutput format: jpg, png or webp (default jpg).
heightNoresize/crop: height in pixels.
qualityNocompress: output quality 1-100 (default 80).
operationYesOne of: compress, resize, crop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only mark it as non-read-only/non-destructive; the description adds substantial behavior beyond them: asynchronous execution returning a tool_job hashid with status 'queued', the required polling loop via get_tool_job_status, per-day rate limits, a per-file size cap, and self-explaining limit errors.

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?

Front-loads purpose and the free/paid distinction, then workflow, then per-operation params, then async behavior. Well-organized with bullets, though slightly dense and mildly repetitive about the free path.

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?

For an async tool with no output schema, it fully covers what an agent needs: input flow, operation params, the queued job return shape, how to poll for completion, and where the final output URL appears.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3. The description adds real value by grouping parameters per operation (compress: quality/format; resize: width/height/optional format; crop: aspect OR x/y/width/height) and clarifying the mutually exclusive crop inputs, which the flat schema does not express.

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 ('Edit an already-uploaded image file') and enumerates the three operations (compress, resize, crop). It is readily distinguishable from siblings like edit_video and complete_upload by naming image editing and the operations it covers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Provides explicit when-to-use context (free, only needs an account, no subscription) and an explicit exclusion: 'Do NOT call complete_upload (that starts the paid clip pipeline).' It also prescribes the exact alternative workflow (create_upload, PUT bytes, pass id) and routes polling to get_tool_job_status.

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