Skip to main content
Glama

Generate image

generate_image

Generate an image from a text prompt, optionally conditioned on source images (image-to-image) and actor, product, or visual-style entity ids. Typically takes 15–60 seconds. Tell the user that wait up front.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesDescription of the image to generate.
qualityNoGeneration quality. Omit to use workspace settings.
entityIdsNoActor, product, or visual-style references for consistent identity and appearance. Use entityId values from list_entities or create_entity, with reference files attached.
aspectRatioNoOutput aspect ratio as width:height units (not pixels). Example: { width: 16, height: 9 }.
imageFileIdsNoReference images to guide the generated appearance. Use fileId values from upload_file, get_file, or list_files.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError details when status is failed; otherwise null.
statusNoJob status: pending, running, succeeded, failed, or cancelled.
resultsNoGenerated results with download URLs when succeeded.
toolTypeNoTool name (e.g. GENERATE_IMAGE).
attemptIndexNoCurrent or latest attempt index.
toolExecutionIdYesTool execution id (vg_tool_...).
progressPercentageNoCompletion progress 0-100 (present after polling).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / entityIds / description
      Previous value: -"Optional actor, product, or visual-style entity ids (vg_enti_...) used as identity/reference."New value: +"Actor, product, or visual-style references for consistent identity and appearance. Use entityId values from list_entities or create_entity, with reference files attached."
    • changedInput schema / properties / imageFileIds / description
      Previous value: -"Optional reference image file ids."New value: +"Reference images to guide the generated appearance. Use fileId values from upload_file, get_file, or list_files."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-readOnly, non-destructive, non-idempotent, closed-world. The description adds the latency envelope (15-60 seconds) and an explicit instruction to tell the user about the wait up front — operationally important context the annotations cannot express. It does not say whether the call blocks or returns a task handle, which is the one remaining gap.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the core action, then conditioning modes, then the latency warning. No filler and nothing redundant with the schema.

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?

An output schema exists, so return values need not be described, and the description covers purpose, conditioning inputs, and the key UX behavior (long-running). It is slightly incomplete in not clarifying sync-vs-async execution or any follow-up polling/status tool, which matters given the sibling cancel_tool_execution/get_tool_execution family.

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 prompt, quality, entityIds, aspectRatio, and imageFileIds are all already documented in the schema, including the entityId/fileId sourcing guidance. The description adds no syntax or constraint detail beyond that, so the baseline of 3 is appropriate.

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 ('Generate') and resource ('an image from a text prompt'), and immediately distinguishes two operating modes (text-to-image vs. image-to-image). This separates it cleanly from generate_avatar, generate_video_clip, and prompt_to_video_clip, which an agent must otherwise disambiguate by name alone.

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?

The description clarifies the two usage contexts (plain prompt, or conditioned on imageFileIds/entityIds for identity consistency), which is real selection guidance. It stops short of naming alternatives or stating when-not to use it (e.g. versus generate_avatar for human characters).

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.