Skip to main content
Glama

iterate_image

Refine images through iterative conversation. Provide an initial image and prompts to adjust details, colors, or composition in each turn.

Instructions

Iteratively refine an image through multi-turn conversation. Start a new session with an image, or continue an existing session to make incremental adjustments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesInstructions for the current iteration (e.g., 'Make the colors warmer' or 'Add more detail to the background')
imagePathNoPath to the initial image. Required when starting a new session (no sessionId provided).
sessionIdNoSession ID from a previous iteration. Omit to start a new session.
aspectRatioNoOptional aspect ratio for the output image. If not provided, Gemini will auto-select. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Behavior2/5

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

No annotations exist, so the description must disclose behavioral traits. It does not explain what happens during iteration (e.g., state management, side effects, whether the image is modified in place or returned). Key behaviors like output format and session lifecycle are missing.

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?

Two concise sentences that front-load the purpose. No redundant information; every sentence adds value.

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?

For a complex tool with 4 parameters and no output schema, the description is insufficient. It lacks details on return values, session behavior, and how iterations affect previous state. Agent would be uncertain about what to expect.

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 coverage is 100%, so baseline is 3. The description adds no additional meaning beyond the parameter descriptions in the schema. It does not explain how parameters interact or provide examples.

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 clearly states the tool's purpose: iterative image refinement through multi-turn conversation. It distinguishes between starting a new session and continuing an existing one, and the name 'iterate_image' contrasts with siblings 'edit_image' (single edit) and 'generate_image' (creation from scratch).

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 provides usage context (start new or continue session) but does not explicitly advise when to use this tool versus alternatives like 'edit_image' or 'generate_image'. No guidance on prerequisites or when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mernorthzide/mrn-gemini-imagen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server