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?

With no annotations, the description fully carries behavioral disclosure. It states the tool is FREE, requires only an account, is ASYNCHRONOUS, returns a `tool_job` hashid and `status: 'queued'`, requires polling get_tool_job_status, and notes rate limits and per-file size caps. This is exactly the behavioral context an agent needs beyond 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?

The description is long but earned: it front-loads the purpose, then uses compact paragraphs and a bulleted operation list. Every sentence conveys actionable detail, and the async/rate-limit notes are grouped logically at the end.

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 a multi-operation async tool with no output schema, the description covers the full lifecycle: how to supply input, what is returned, how to poll for completion, and what constraints apply. Nothing essential to calling the tool correctly is missing.

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?

Although the schema covers all parameters, the description adds crucial relationships: per-operation parameter groups, defaults for quality and format, and the OR exclusivity between `aspect` and x/y/width/height in crop. This transforms a flat 9-parameter schema into a usable decision tree.

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 opens with a specific verb and resource: 'Edit an already-uploaded image `file`' and enumerates the exact operations (compress, resize, crop). This clearly differentiates it from upload and video siblings, so an agent knows exactly what the tool is for.

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?

It gives a concrete usage flow: call create_upload, PUT bytes, pass the returned id, and explicitly says 'Do NOT call complete_upload' because that starts a different pipeline. It does not explicitly compare to image-adjacent siblings like convert_media or remove_background, but the operation list and upload prerequisite make the intended context clear.

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