Skip to main content
Glama

Gerar imagem

generate_image

Generate image(s) from a text prompt, save to disk, and return file paths. Allows choosing aspect ratio from standard market formats.

Instructions

Gera imagem(ns) a partir de um prompt de texto e salva em disco, retornando os caminhos dos arquivos. Se o usuário quer partir de uma imagem existente (editar, variar, usar como referência), use edit_image. IMPORTANTE: se o usuário não disse o formato/proporção da imagem, pergunte antes de gerar, oferecendo os padrões de mercado: "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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoQuantidade de imagens
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
promptYesDescrição da imagem desejada
qualityNoQualidade (apenas modelos OpenAI; ignorada nos Google — use a resolução em size)auto
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that images are saved to disk and that file paths are returned. This provides clear side-effect and output behavior. It could mention resource consumption or rate limits, but the given transparency is strong.

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 somewhat long but efficiently front-loads the core purpose. The important usage guideline is highlighted with 'IMPORTANTE'. Every sentence contributes value. A slight trim could improve conciseness, but it remains well-structured and reader-friendly.

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 no output schema, the description explains return values (file paths) and side effects (saving to disk). It covers required behavior and important constraints (aspect ratio). It lacks details on error handling, rate limits, or maximum image count (4 per schema), but overall provides sufficient context for an agent.

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 coverage is 100% (baseline 3). The description significantly enriches parameters: for 'size' it details market aspect ratios and advanced provider-specific syntax; for 'model' it hints at Google models and suggests list_image_models; for 'quality' it clarifies which models ignore it. This adds substantial value beyond the 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 the tool generates images from a text prompt, saves them to disk, and returns file paths. It distinguishes from edit_image via the condition 'Se o usuário quer partir de uma imagem existente'. This provides a specific verb-resource pair and differentiates from siblings.

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?

The description explicitly states when to use (generate from text) and when not (edit/vary/reference, use edit_image). It also includes an important guideline to ask for aspect ratio if not provided, listing market standards. This gives clear context for selection and invocation.

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