Skip to main content
Glama

像素方舟 PixelArk

生成图片

generate_image

按文字描述生成图片,或基于参考图改图。返回图片的公网地址(长期有效)。适合网页 / App 配图、插画、海报、电商主图、头像、表情包、GIF 动图等。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo张数,1–4
modelNo出图模型,默认 gpt-image-2.5。可选:gpt-image-2.6(GPT Image 2.6,每张 3 点);gpt-image-2.6-gif(GPT Image 2.6 动图,每张 4 点,输出 GIF 动图);gpt-image-2.5(GPT Image 2.5,每张 1 点);gpt-image-2(GPT Image 2,每张 1 点);nano-banana-pro(Nano Banana Pro,每张 4 点);nano-banana-2(Nano Banana 2,每张 2 点);nano-banana(Nano Banana,每张 1 点);seedream-5(Seedream 5,每张 2 点)gpt-image-2.5
aspectNo画面比例,如 16:9(横幅 / 封面)、1:1、3:4(竖版海报)、9:16(手机竖屏);auto 由模型决定
promptYes画面描述,中英文均可。写清主体、场景、风格、构图、色调;需要图中出现的文字用引号标出。
qualityNoGPT Image 系列的质量档:low 快速、medium 标准(默认)、high 精细
resolutionNo清晰度,部分模型支持 2K / 4K,同一模型扣点相同
reference_imagesNo参考图:公网图片地址(http/https)或 data:image/...;base64 数据,支持 PNG / JPG / WebP。改图、换背景、换装、多图合成时传入;本机文件请转为 data URL。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, and the description's most valuable addition is that the result is a long-lived public URL rather than inline bytes. It does not disclose cost/credit consumption (only buried in the model enum), latency, or failure behavior, which matters for a paid generation call.

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?

Three short sentences, front-loaded with what the tool does and what it returns, then a use-case list. The use-case enumeration is slightly long but is purposeful routing information, not filler.

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?

With no output schema, the description correctly fills the critical gap by stating the return value is a durable public image URL. For a 7-parameter tool whose parameters are fully documented, the only missing context an agent might want is pricing/rate-limit expectations.

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 100%, so every parameter (model, aspect, count, quality, resolution, reference_images) is already fully documented in the schema. The description only hints at reference-image usage, adding no syntax, defaults, or defaults-override information 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?

States a specific verb and resource ('按文字描述生成图片,或基于参考图改图') and adds the returned artifact ('返回图片的公网地址'). It is unmistakable against siblings like get_balance, list_models, or search_templates, which share no resource with it.

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 use-case context (网页/App 配图、插画、海报、电商主图、头像、表情包、GIF 动图) and notes that passing reference_images turns it into an edit/background-swap/composite task. It stops short of explicit when-not-to-use guidance or naming an alternative path for related needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources