Skip to main content
Glama

generate_image

Create AI images from text prompts with adjustable size, steps, and model settings.

Instructions

AI生成图片

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cfgNo提示词相关性,取值范围[1-30],默认值7。(可选)
numNo生成数量,默认1张
seedNo随机种子,生成图片的seed,默认-1随机生成。(可选)-1
modelNo模型code,默认通用FLUX模型
stepsNo采样步数,默认20。(可选)
widthNo图片宽,默认512。(可选)
heightNo图片高,默认512。(可选)
promptYes作画描述,建议包含风格和细节
uc_promptNo作画负面描述。(可选)
sampler_indexNo采样模式是指扩散去噪算法的采样模式。(可选)
init_image_urlNo底图url。(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It doesn't mention mutation effects, side effects, asynchronous behavior, or that the tool returns a task ID or requires querying later. Given that sibling tools include query_generate_task, the generation is likely async, but this isn't disclosed. The description only restates the function and discloses no behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short, only six characters, which is efficient in length but not structured as useful guidance. It doesn't front-load any distinguishing information beyond the name, so it is under-specification rather than conciseness. A minimal viable description should at least say what the tool does that the name alone doesn't convey.

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 a tool with 11 parameters, no annotations, no output schema, and two siblings that suggest an async workflow, the description is too sparse. It doesn't mention that the result might be a task, that users need to supply rich prompts, or how this relates to query_generate_task. The schema covers parameters well, but the overall operational context is missing. An agent could call it, but may not know what to expect back or what to do next.

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 description coverage is 100%, so the schema itself documents prompt, cfg, seed, steps, etc. The description adds no parameter-level nuance beyond the schema. Baseline 3 is appropriate when the schema is fully documented; the description doesn't need to repeat parameter definitions. However, it doesn't add any cross-parameter guidance (e.g., how cfg relates to prompt adherence) - though that is optional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'AI生成图片' is a tautology that essentially restates the tool name 'generate_image' (generate an image). It identifies the resource (image generation) but doesn't provide specific detail about what kind of image generation model or output to expect, and the sibling tools are query_generate_task and query_model_infos, so some differentiation is needed to distinguish between initiation vs. querying. It's minimally recognizable to an agent but adds little beyond the name.

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?

The description provides no guidance on when to use this tool versus query_generate_task or query_model_infos. Siblings are clearly task-query and model-info functions, implying this tool initiates generation, but the description never states that. For an 11-parameter tool, an agent is left to infer that it should call this one first based on the schema rather than being told.

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