Skip to main content
Glama

generate_image

Generates one or more images from a text prompt, blocking until completion or timeout, and returns image URLs valid for 24 hours.

Instructions

Generate image(s) from a text prompt and wait for the result.

Blocks until the task finishes or timeout (seconds) elapses. Returns image URLs valid for 24 hours. If the host tool call may time out, use submit_image_task + get_image_task instead.

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
nNo
sizeNo1024*1024
modelNowan2.2-t2i-flash
promptYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call blocks until completion or timeout, that timeout is in seconds, and that returned image URLs expire after 24 hours. It omits cost/latency expectations for varying n or model choice, so it falls just short of fully self-describing.

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?

The action and blocking behavior lead, followed by the return-value lifetime, then the fallback routing — each sentence adds distinct information with no 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?

An output schema exists so return values needn't be restated, and the description covers blocking semantics, URL validity, and the async alternative. The remaining gap is the unexplained size/model/n parameters, which is a schema-level deficiency rather than a description-structure one.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, and the description only explains 'timeout (seconds)'. Nothing is said about n, size format (the default '1024*1024'), or valid model values, leaving most parameters semantically undocumented except through bare defaults.

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 ('Generate image(s) from a text prompt') plus the key behavioral scope ('and wait for the result'). An agent can distinguish it from submit_image_task purely from this sentence.

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

Usage Guidelines5/5

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

Gives an explicit alternative and the exact condition that selects it: if the host tool call may time out, use submit_image_task + get_image_task instead. This is a clear when-to-use / when-to-avoid pair naming real siblings.

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