Skip to main content
Glama

generate_image

Generate images from visual prompts using Codex's ChatGPT integration, with configurable size, quality, format, background, and file output.

Instructions

Gera uma imagem com $imagegen e a cota do Codex da conta ChatGPT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoauto ou WIDTHxHEIGHT compatível1024x1024
promptYesDescrição visual; máximo de 8000 caracteres
qualityNomedium
backgroundNoauto
output_formatNopng
include_inlineNo
output_filenameNoSomente nome do arquivo, sem diretórios
output_directoryNoDiretório local explícito; usa a configuração se omitido

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already signal a non-read-only, non-idempotent mutation, and the description adds that generation consumes Codex quota from the ChatGPT account, a useful resource/rate context. However, it does not disclose output file behavior, failure modes, or whether edits are reversible, so it only partially carries the behavioral burden.

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 a single front-loaded sentence with no filler or redundancy. It loses a point only because the '$imagegen' phrasing is cryptic and the sentence omits useful context that could be included without bloat.

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?

For an 8-parameter tool with no output schema, the description is far too thin: it omits return behavior, how the output file is produced, the significance of Codex quota, and any relation to the sibling tools. It is minimally usable but leaves major gaps.

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?

With 50% schema description coverage, the schema leaves quality, background, output_format, and include_inline undocumented, and the description adds no parameter-level meaning beyond the word 'imagem'. It therefore fails to compensate for the coverage gap.

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 uses a specific verb and resource ('Gera uma imagem') and adds a distinctive implementation/quota detail ('com $imagegen e a cota do Codex'), so an agent can tell it is a generation action rather than a status check. It does not explicitly contrast with edit_image, so it falls short of full sibling differentiation.

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?

There is no guidance on when to choose generate_image over siblings like edit_image or when to first check codex_account_status. The quota mention hints at a prerequisite, but no explicit when/when-not instructions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.