Skip to main content
Glama

Edit image

edit_image

Edit an uploaded image: rotate, flip, crop (pixels or aspect ratio), resize (width/height, percent, megapixels), grayscale (black & white), sepia, brightness, contrast, warm, cool, invert, blur, sharpen — applied in order. Optionally change the format (jpeg/png/webp) or make the file at most max_kb kilobytes (1 KB = 1,000 bytes). Creates a NEW image with its own page_url, image_url and download_url; the original stays unchanged.

Input Schema

NameRequiredDescriptionDefault
idYesImage id returned by upload_image or edit_image (e.g. "vqSvesFU")
formatNo
max_kbNoLargest file size in KB, 1 KB = 1,000 bytes (jpeg/webp)
qualityNo
filenameNo
operationsNoExample: [{"op":"rotate","degrees":90},{"op":"resize","width":1080},{"op":"grayscale"}]
return_previewNoAlso return a small preview of the image so you can look at it (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / max_kb / description
      Previous value: -"Largest file size in KB (jpeg/webp)"New value: +"Largest file size in KB, 1 KB = 1,000 bytes (jpeg/webp)"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, and the description adds the key behavioral fact that a new asset is produced and the source is untouched — exactly the reassurance needed given readOnlyHint=false. It also discloses operation ordering ('applied in order') and the max_kb meaning (1 KB = 1,000 bytes). It does not cover auth, rate limits, or failure behavior, so not 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The operation list is front-loaded and the two sentences carry no filler; the second sentence delivers the crucial new-image semantics. The long em-dash enumeration is dense but each term maps to a real enum value, so it earns most of its length.

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?

With no output schema, the description usefully names the returned fields (page_url, image_url, download_url) so the agent knows what it gets back. Given 7 parameters and 57% coverage, a few inputs (quality, filename, return_preview) remain undocumented, but the core editing contract is complete.

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?

At 57% schema coverage the description adds real value: it clarifies the operations pipeline is order-sensitive and groups the enum values by category (rotate/flip/crop/resize vs. color and filter ops), plus explains max_kb as an output size ceiling tied to format. It leaves quality, filename, and return_preview unaddressed, and much of the op vocabulary is already in the enum/schema.

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 (edit) and resource (an uploaded image) and enumerates the concrete transform set, so the agent knows exactly what capability this is. It also distinguishes itself from siblings by stating it creates a NEW image and leaves the original unchanged, contrasting with delete_image/get_image/upload_image.

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?

'Edit an uploaded image' plus the id parameter description establishes the prerequisite (an id from upload_image or edit_image), which is clear context for when to call this. It stops short of explicit exclusions or naming sibling alternatives for non-edit scenarios (e.g., use get_image to just inspect), so it is context-clear but not fully routing.

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