Skip to main content
Glama

edit_image

Edit existing local images by describing the desired change. Supply image paths and a prompt to get edited images saved to your disk.

Instructions

Edit one or more existing local image files using a text instruction.

image_paths must be paths to existing image files on disk (e.g. a photo or a previously generated image) describing what to edit; prompt describes the desired change. The edited image(s) Gemini returns are saved to disk and appended to the cumulative HTML gallery; this tool returns the absolute paths of the new images plus the gallery path so the result can be viewed.

Parameters

prompt: str Instructions describing the desired edit. image_paths: list[str] Paths to existing local image files to edit. model: str | None, optional Model name/alias/id to use (see list_models). Defaults to the server's configured default model, or the account's own default if unset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
promptYes
image_pathsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
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 explicitly states that edited images are saved to disk and appended to an HTML gallery, and that it returns absolute paths and the gallery path. This covers side effects and return behavior. It does not mention permissions or whether original files are overwritten, but the mention of 'new images' implies non-destructive behavior. Overall, it provides meaningful behavioral context beyond a bare operation.

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 description is structured with a clear opening sentence, a behavioral summary, and a parameter list. It is slightly verbose but every sentence adds value. The key behavioral facts are front-loaded, and the parameter details are organized for quick reference. It could be tightened slightly, but it is appropriately sized for a tool with three parameters and side effects.

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?

Given the tool's complexity (3 params, side effects, output schema), the description covers the essential context: it explains input requirements, the editing process, the return values, and the model selection mechanism. It does not explicitly address file overwrite behavior or permission requirements, but it does state that new images are returned, implying safe handling. The description is sufficient for an agent to call the tool correctly without further lookup.

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 fully compensate. It does so by explaining all three parameters: prompt (instructions), image_paths (existing local files), and model (with defaults and reference to list_models). Each parameter is given a clear semantic meaning that goes well beyond the schema's type-only definitions. This is exemplary parameter documentation.

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 states a specific verb ('edit'), a clear resource ('existing local image files'), and the method ('using a text instruction'). It distinguishes from siblings by explicitly requiring existing files, which sets it apart from generate_image and list_models. The purpose is unambiguous.

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?

The description implies usage by requiring 'paths to existing image files' and noting the edited images are saved, but it does not explicitly name alternative tools or state when not to use it. The reference to list_models for the model parameter gives some guidance, but no direct comparison to generate_image is provided. The 'must be paths to existing' hints at a prerequisite but leaves the alternative selection 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