Skip to main content
Glama
naipi11
by naipi11

GPT 原生生图 / 编辑(提交)

generate_gpt_image

Submit a text prompt to generate a GPT image, or edit existing images using up to four local reference files. Returns a job_id for status polling and saves the finished image to a local path.

Instructions

通过配置的 OpenCodex Responses image_generation 调用 GPT 原生生图,不使用 WorkBuddy 内置模型。提交后立即返回 job_id,必须 get_image_job 等到 completed 才能宣称生成成功。参考图只接受用户明确指定的本地文件,将上传至代理所配置的上游;可能消耗额度,不自动重试。

Input Schema

NameRequiredDescriptionDefault
sizeNo请求尺寸,如 auto/1024x1024;实际尺寸以结果为准
promptYes图片描述或明确的参考图编辑要求
qualityNo
output_pathNo允许输出目录内的路径;默认自动命名且不覆盖已有文件
output_formatNo
filename_prefixNo
reference_imagesNo用户指定的参考图片绝对路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare a non-read-only, open-world, non-idempotent operation, and the description adds genuinely new behavior: submission returns a job_id immediately (asynchronous), success must be confirmed via get_image_job, reference images are uploaded to the configured upstream proxy, quota may be consumed, and no automatic retry occurs. These are exactly the traits an agent needs and none of them are in the structured fields.

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?

Four short sentences, front-loaded with what the tool is and immediately followed by the mandatory polling step; nothing is padding. Density is high and the final sentence packs three distinct caveats (local-only references, quota, no retry), which is efficient though slightly terse for the amount of information carried.

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?

For a 7-parameter async generation tool with annotations but no output schema, the description covers lifecycle (job_id, polling), cost, retry policy, and reference-image handling — the parts an agent cannot infer. Minor gaps remain around the semantics of size/quality/output_format and where files land, though output_path is partially covered by the schema.

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

Parameters3/5

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

Schema coverage is 57%, and the description meaningfully supplements reference_images (user-explicit local files only, uploaded upstream) — a privacy/scope constraint the schema does not convey. However, size, quality, output_format, output_path, and filename_prefix get no added meaning, so roughly half the parameters remain documented only by 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?

Names a specific verb and resource — GPT native image generation/editing via the configured OpenCodex Responses image_generation path — and explicitly excludes the WorkBuddy built-in model path, which separates it from other image routes. It also names the follow-up sibling get_image_job, so an agent can place it in the workflow without opening any schema.

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?

Gives concrete operating conditions: submit, then poll get_image_job until completed before claiming success; reference images must be user-specified local files; quota may be consumed and there is no auto-retry. It stops short of stating when to prefer this tool over check_image_backend or any other sibling, so the exclusions are implicit rather than enumerated.

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