Skip to main content
Glama

Edit image

edit_image_file

Edit images using multipart file uploads, JSON URLs, or image arrays. Specify a model and prompt to modify images with parameters for size, quality, and format.

Instructions

Edit image Edits an image using multipart image uploads, JSON image URLs, or the official JSON images array for supported GPT Image models.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
maskNoPass local file path.
sizeNo
userNo
asyncNo
imageNoSource image file(s). Repeat image for multiple source images. GPT Image edits accept up to 16 images; xAI Grok Imagine edit models accept at most 3 source images. Pass local file paths.
modelYesModel to use for image edits. Send this explicitly, for example gpt-image-2.
promptYes
streamNoImage streaming is not exposed through MCP tool calls; omit stream or set it to false.
image[]NoAlternative repeated multipart field name for multiple source images. The same model-specific limits apply: GPT Image up to 16, xAI Grok Imagine up to 3. Pass local file paths.
qualityNo
backgroundNo
moderationNo
resolutionNo
compressionNo
aspect_ratioNo
output_formatNo
response_formatNo
output_compressionNo
Behavior3/5

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

Annotations already indicate mutation (readOnlyHint=false) and non-destructiveness (destructiveHint=false). The description adds input method details but no further behavioral traits like side effects or prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that redundantly repeats 'Edit image' at the start. It could be more concise and front-loaded.

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?

Given 19 parameters and no output schema, the description is insufficient. It omits model specifics, output details, and parameter purposes, leaving the agent with inadequate information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 26%, yet the description does not explain the meaning or usage of the many parameters. It briefly mentions input methods but fails to clarify parameter semantics for fields like 'image[]' or 'background'.

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?

The description states the tool edits an image and lists input methods, but does not differentiate it from the sibling tool 'edit_image'. It is clear but lacks sibling distinction.

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 guidance on when to use this tool over alternatives like 'edit_image' or 'create_image'. The description does not provide context for selection.

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/hedging8563/tokenlab-mcp-server'

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