Skip to main content
Glama

edit_image

Modify an existing image from a local path by providing a text prompt describing the desired change, with optional controls for size, strength, and seed.

Instructions

Edit an existing image with a text prompt.

Args: image_path: Absolute or ~-relative path to the source image (PNG/JPEG). prompt: Description of the desired edit. model: Model id. Defaults to MLX_SERVE_IMAGE_EDIT_MODEL. size: Output dimensions. strength: Denoising strength 0..1 (how much to change the image). seed: Optional random seed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
sizeNo
modelNo
promptYes
strengthNo
image_pathYes
Behavior2/5

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

Annotations are absent, so the description carries the full burden. It does disclose the default model and strength range, but it does not say whether the original image is overwritten, where the edited result is saved, or what the return value is. This is a notable gap 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 purpose is front-loaded in one sentence, followed by a compact argument list. Every line adds value and there is no redundancy or filler.

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?

All parameters are documented, but the tool has no output schema and no annotations. The description never states what the tool returns or what side effects it has on the source file. For a 6-parameter tool with no other structured context, this leaves an agent unable to fully predict the tool's effect.

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%, but the description compensates thoroughly. It defines all six parameters with useful detail: image_path path format and supported formats, prompt purpose, model default, size meaning, strength range and interpretation, and seed optionality. This goes well beyond the bare schema types.

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 opens with 'Edit an existing image with a text prompt,' which states a specific verb, resource, and method. It clearly differentiates this tool from siblings like generate_image (create new) and text_to_speech (unrelated audio).

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 usage context is implied: edit an existing image. But the description never explicitly mentions alternatives such as generate_image or conditions when not to use this tool. The distinction from sibling tools is inferable but not stated.

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/Congenital/mlx-serve-mcp'

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