Skip to main content
Glama

Edit Image

edit_image

Modify an existing image by describing desired changes in a text prompt, then save the result as PNG, JPEG, or WebP.

Instructions

Edit an existing image using a text prompt.

Input Schema

NameRequiredDescriptionDefault
modelNoModel override. Default "gemini-nano-banana-2.1"; "gemini-3-pro-image" is best for complex multi-turn edits.
promptYesDescription of the desired changes
temperatureNoCreativity level 0.0-2.0
output_formatNoFile format: "png", "jpeg", or "webp"png
output_filenameNoCustom filename for edited image (optional)
input_image_pathYesPath to the image to edit

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / model / description
      Previous value: -"Model override. \"gemini-3-pro-image-preview\" best\nfor complex multi-turn edits."New value: +"Model override. Default \"gemini-nano-banana-2.1\";\n\"gemini-3-pro-image\" is best for complex multi-turn edits."
  2. First observedv0.5.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and says nothing about whether the source image is overwritten or a new file is written, what output path is used, cost implications, or any permission requirements. For a mutation tool with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with no filler. It is efficient, though the terseness borders on under-specification rather than true conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, an output schema, no annotations, and several overlapping siblings, the description should at minimum disambiguate edit vs transform vs advanced_edit and note the non-destructive or destructive nature of the operation. It covers return values via the output schema but leaves the selection and side-effect questions unanswered.

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 description coverage is 100%, so every parameter including model, temperature, output_format, and output_filename is already documented in the schema. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 existing image via a text prompt, which cleanly separates it from generate_image. However, it offers no distinction from the closely related siblings transform_image and advanced_edit, which an agent must choose between.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no routing to alternatives despite at least three overlapping siblings (transform_image, advanced_edit, generate_image). The only hint about scale of edit appears in the model parameter schema, not in the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.