Skip to main content
Glama

edit_image

Edit images using text instructions. Provide a source image path and describe desired changes for mockups, style transfer, or contextual editing.

Instructions

Edit an existing image using text instructions via FLUX.1-Kontext. Provide a source image path and describe the desired changes. Great for mockups, style transfer, and contextual editing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility. Use 0 for random.
stepsNoNumber of inference steps (1-30). Default: 20.
promptYesText description of the desired edit. Be specific about changes. Example: 'Add a realistic dragon tattoo on the forearm'
cfg_scaleNoGuidance scale (1-20). Default: 7.
image_pathYesAbsolute or relative path to the source image to edit.
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions the model and use cases but does not explain whether the original image is preserved, what the return format is, or any side effects. This is insufficient for a mutation tool.

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 concise, with two sentences that front-load the purpose. Every word earns its place, and the structure is clear and efficient.

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

Completeness3/5

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

The description covers purpose and basic usage but lacks details on return values, side effects, and explicit alternative guidance. Given no output schema and no annotations, the description should provide more context to be fully complete.

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 the schema already documents all parameters. The description reinforces the key parameters (image_path, prompt) but adds no additional semantic detail beyond the 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?

The description clearly states the tool edits an existing image using text instructions via FLUX.1-Kontext, with specific use cases. It distinguishes itself from sibling tools like generate_image by emphasizing 'existing 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?

Provides clear usage context with examples like mockups, style transfer, and contextual editing, implying when to use the tool. However, it does not explicitly name alternatives or exclusion criteria relative to generate_image.

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/Tech-86/NIMGEN'

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