Skip to main content
Glama

image_edit

Edit local images via natural language prompts. Specify an image path and editing instructions; the tool generates a new image according to your requested changes.

Instructions

使用一张本地参考图,通过 MetaRouter 改图或图生图。

Args: image_path: 本地 PNG、JPEG 或 WebP 文件的绝对路径。 prompt: 编辑要求,应明确哪些内容保留、删除或修改。 size: 输出尺寸 WxH,宽高须为 8 的倍数。 model: 可选模型;留空自动选择。 quality: 可选质量参数。 output_dir: 可选保存目录,必须位于安全输出根目录下。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo1024x1024
modelNo
promptYes
qualityNo
image_pathYes
output_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains the purpose and parameters but does not mention side effects, permissions, whether the original file is modified, or how the output is delivered (e.g., saved to output_dir, returned as a URL, etc.). This is a significant gap for a mutation-like 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: a one-sentence purpose followed by a structured Args list. Each parameter entry is necessary and informative, with no redundancy or filler. The format is front-loaded and easy to scan.

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?

Given the tool's complexity (6 parameters, no annotations), the description covers parameters well, but it omits behavioral details such as default output location, whether output_dir is required to save results, and error handling. The presence of an output schema partially mitigates the lack of return-value documentation, but overall completeness is only adequate.

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 fully by explaining every parameter with specific constraints: absolute paths for image_path, prompt semantics for what to preserve/remove/modify, size must be multiples of 8, and output_dir must be within the safe root. This adds substantial meaning beyond the bare 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 that the tool uses a local reference image via MetaRouter to edit or perform image-to-image, specifying both the action and resource. This distinguishes it from siblings like image_generate (which likely generates from text) and image_batch_edit (which implies batch processing).

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 implies that the tool should be used when a local reference image is available for editing, but it does not explicitly state when to use this tool versus alternatives or provide any exclusion criteria. No alternatives are named, leaving usage guidance mostly implicit.

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/cimicimi9090/mcp-pic-metarouters'

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