Skip to main content
Glama

Edit Image

edit_image

Apply a text prompt to existing images to create edited versions. Uses up to four reference images and saves the result locally without overwriting.

Instructions

Transform existing images with flux-2-klein image-to-image (NaN API). Use generate_image instead when starting from text alone. Takes 1 to 4 local reference files (PNG, JPEG or WebP, each under 25MB), saves the result under NAN_OUTPUT_DIR (default ~/nan-mcp-output) without overwriting anything, and returns the saved path and the temporary source URL. Counts against the account image quota (100/month).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of images to generate (1-4). Default 1
seedNoBase seed for reproducibility
sizeNoImage size "WxH" divisible by 16, e.g. 1024x1024, 1536x1024, 1024x1536. Default 1024x1024
imagesYesAbsolute paths to reference image files (PNG, JPEG, WebP; up to 4, each < 25MB)
promptYesDescription of the edit or transformation to apply
guidanceNoFLUX guidance scale
outputNameNoOptional base name for the output file(s)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.8
    • addedInput schema / properties / images / maxItems
      Added value: +4
    • addedInput schema / properties / images / minItems
      Added value: +1
  2. First observedv1.0.6

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full transparency burden and does so thoroughly: it discloses local input file constraints, output directory and non-overwrite guarantee, return values (saved path and temporary source URL), and the quota side effect (100/month). These are exactly the behavioral details an agent needs beyond the schema.

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 well structured, front-loading the purpose and the critical ordering guidance, and each sentence adds value. However, it repeats some schema details (e.g. PNG/JPEG/WebP, 25MB) that are already present in the images parameter description, causing mild redundancy.

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

Completeness5/5

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

For a tool with no output schema, the description provides the needed operating context: it documents what inputs are accepted, what the tool does to them, where results are stored, that outputs are not overwritten, and the return value. this is sufficient for an agent to invoke the tool correctly without guessing.

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 the baseline is 3. The description does add a little semantic context (e.g. reference file formats and the result, output name) but largely duplicates schema information like file types and size limits. It does not provide deeper meaning beyond the schema, so a 3 is appropriate.

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 starts with a specific verb-resource pair ('Transform existing images with flux-2-klein image-to-image') and immediately distinguishes from the sibling tool by telling the reader to 'Use generate_image instead when starting from text alone.' The agent can tell exactly what this tool does and how it differs from its closest sibling.

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

Usage Guidelines5/5

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

Provides explicit usage guidance by naming the alternative tool and giving the exact condition for choosing it: 'Use generate_image instead when starting from text alone.' This clearly tells the agent when not to use this tool. The description also indirectly grounds when to use it (when existing images are available to transform).

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