Skip to main content
Glama

Generate an image (text to image)

generate_image
Read-only

Creates original images from text prompts with FLUX.1 schnell, returning a 1024x1024 JPEG as a base64 data URL ready to save or display.

Instructions

Create an original image from a text prompt with FLUX.1 [schnell]: illustrations, product shots, logos, thumbnails, concept art. Returns a 1024x1024 JPEG (about 100-300 KB) as a base64 data URL ready to save or display, usually within a few seconds. Costs $0.005 per call.

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
stepsNoQuality steps, 1-8. Default 4 (what the model is tuned for).
promptYesWhat to draw, e.g. "a watercolor fox reading a newspaper in a cafe".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries the behavioral load and does so well: it discloses output dimensions and format, approximate file size, the base64 data URL return shape, expected latency, and the $0.005 per-call cost. Cost and latency are exactly the operationally important traits an agent cannot get from structured fields.

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 what the tool does, then output characteristics, then cost. Every clause — including the file size and cost — carries decision-relevant information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 properly compensates by describing the return value (1024x1024 JPEG as a base64 data URL, roughly 100-300 KB) and the latency. Combined with the fully documented schema, an agent has everything needed to call this correctly and decide whether the cost is acceptable.

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 both parameters are already documented, including the 1-8 steps range and default. The description adds nothing about steps (notably it never suggests when to raise or lower it) and only restates the prompt's role, so the baseline of 3 applies.

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?

The description states a specific verb and resource ("Create an original image from a text prompt") and names the underlying model, FLUX.1 [schnell]. The enumerated output types (illustrations, product shots, logos, thumbnails, concept art) make it unmistakable against siblings like describe_image or text_to_speech.

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?

The list of intended use cases gives a clear sense of when this tool fits, which is real guidance. However, it never names an alternative or states an exclusion (e.g. that describe_image is for analyzing an existing image rather than creating one), so the agent must infer the boundary itself.

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