Skip to main content
Glama

即梦图像生成

generate_image

Generates images from text prompts, reference images, or multiple references with configurable dimensions, aspect ratios, and edit strength for AI image creation.

Instructions

使用即梦AI 4.0生成图像。支持文生图、图生图、多图参考生成。支持设置尺寸、比例、编辑强度等。

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
seedNo随机种子(默认-1)
sizeNo生成图片的面积(默认2048*2048),面积和宽高需要2选1传入
scaleNo文本描述影响的程度(0-1之间),默认0.5
widthNo图像宽度(默认自动),需同时传width和height
heightNo图像高度(默认自动),需同时传width和height
promptYes图像描述提示词
max_ratioNo生图结果的宽/高 ≤ max_ratio(默认3)
min_ratioNo生图结果的宽/高 ≥ min_ratio(默认1/3)
image_urlsNo参考图片输入数组(最多10张)。支持: • 绝对路径(如 /path/to/image.jpg) • 文件协议(如 file:///path/to/image.jpg) • 远程URL(如 https://example.com/image.jpg) ⚠️ 不支持相对路径
force_singleNo是否强制生成单图(默认false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses little: nothing about whether calls are asynchronous, that a task id is likely returned, cost/quota, latency, or content-safety limits. Only the model version and the set of generation modes are added, which is minimal for a paid, non-idempotent 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 the model version and capability set, with no padding or repetition. It is efficiently sized, though the trailing '等' leaves the capability list open-ended.

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?

With 10 parameters, no annotations, and no output schema, the definition should explain the generation lifecycle (submit → task → retrieve result) and what the call yields. Instead it omits return behavior and follow-up flow entirely, leaving an agent unable to know how to obtain the generated image.

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 parameter meaning is largely already documented in the schema, which sets the baseline at 3. The description echoes size/ratio support but does not resolve the size-vs-width/height exclusivity or the min/max_ratio interaction; its mention of '编辑强度' does not clearly map to any parameter (scale is prompt influence, not edit strength), which mildly muddies rather than clarifies.

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?

States a specific verb and resource ('使用即梦AI 4.0生成图像') and enumerates the supported modes (text-to-image, image-to-image, multi-image reference), which lets an agent recognize the tool's scope. It stops short of differentiating itself from the sibling query_task, so it is clear but not fully disambiguated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the mode list hints that supplying image_urls selects image-to-image, but there is no explicit when-to-use or when-not-to-use statement. Critically, nothing says whether generation is synchronous or returns a task that must be polled via query_task, which is exactly the alternative an agent needs to be routed on.

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

Deploy Server

Other Tools