Skip to main content
Glama

Editar imagem / gerar com referência

edit_image

Edit or generate images from reference photos using natural language. Combine elements, transfer styles, or create variations with multiple inputs and optional masks.

Instructions

Use sempre que houver imagem(ns) de partida: editar/alterar uma imagem existente, gerar uma nova baseada em referência(s), combinar elementos de várias imagens, transferir estilo, ou variações de um produto/personagem. Aceita múltiplas imagens de referência e máscara opcional (PNG com alfa marcando a região a editar, apenas modelos OpenAI). Salva o resultado em disco e retorna os caminhos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoQuantidade de imagens
maskNoCaminho de PNG com canal alfa indicando a área a editar
sizeNoFormato da imagem. Prefira os padrões de mercado, que funcionam em todos os modelos: "1:1" (quadrado — feed, avatar, foto de produto), "4:5" (vertical — post de feed Instagram), "9:16" (stories, reels, TikTok, wallpaper de celular), "16:9" (YouTube, apresentações, paisagem), "3:2" (fotografia horizontal), "2:3" (fotografia vertical, pôster), "3:1" (banner, capa de site). Avançado — OpenAI também aceita "LARGURAxALTURA" (WxH múltiplo de 16); Google também aceita resolução "1K"|"2K"|"4K" junto da proporção, ex. "16:9 2K"auto
modelNoModelo de imagem. "Nano Banana" = modelos Google (gemini-*-image). Use list_image_models para ver todosgpt-image-2
imagesYesCaminhos absolutos das imagens de entrada (png/jpg/webp)
promptYesDescrição da edição desejada
qualityNoQualidade (apenas modelos OpenAI; ignorada nos Google — use a resolução em size)auto
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that multiple images are accepted, an optional mask is used (with OpenAI model restriction), and the result is saved to disk with paths returned. However, it does not detail write behavior (overwriting), error handling, or prerequisites beyond model-specific mask support.

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 three sentences, front-loading the primary purpose with a clear directive. No redundant phrases; every sentence adds essential information (use cases, input details, output behavior).

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

Completeness4/5

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

Given 7 parameters, no annotations, and no output schema, the description adequately covers the tool's main use, input expectations, and outcome (saves to disk and returns paths). It lacks output format specifics and prerequisites but is sufficient for an image editing tool.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. The description adds value by clarifying the mask parameter is only for OpenAI models (not in schema) and reinforces the purpose of each parameter through contextual usage examples. This exceeds the baseline.

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 lists the specific actions: edit existing image, generate new based on reference, combine elements, transfer style, or create variations. It explicitly states the tool is for use with starting images, distinguishing it from sibling 'generate_image' which likely generates without references.

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?

The description begins with 'Use always when there are starting images' and lists concrete use cases, providing clear context. However, it lacks explicit 'when not to use' statements or direct references to sibling tools like 'generate_image' for no-reference generation.

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/Expert-Integrado/image-mcp'

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