Skip to main content
Glama

Generate an image

generate_image

Generate a still image from a prompt with a hosted model and put it on the timeline as an image item. The still takes its place on the timeline at start straight away, and the finished image fills it when the run ends. Quality standard (default) or best (holds fine detail and spells lettering, signage and title text reliably; costs more). image lists project images (id or file name) to redraw or take from, such as a product shot to put in a new scene; standard takes up to 6, best up to 4, and an edit at best costs more than drawing from text. durationSeconds is how long the still sits on the timeline (default 5). Returns at once with the generation id; generation_status with wait: true waits on the run and fills the still when it ends. Costs credits; the error says what to fix.

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": {
      "project": "<project>",
      "prompt": "<prompt>",
      "context": "<context>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoItem name; default: the prompt, shortened
waitNotrue waits for the result in this call (a long run hands back a job); default: return at once
imageNoImages to redraw or take from: media ids or names
modelNoExact image model id; overrides quality
startNoTimeline seconds; default: after the track’s last clip
trackNoTrack name or id; default: first video track or a new "Generated" one
aspectNoDefault: the project’s, or the closest the model renders
promptYesWhat the image should show; quote any words it has to spell
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
projectYesProject id or exact name
qualityNo
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
durationSecondsNoHow long the still sits on the timeline

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "prompt"
      -]New value: +[
      +  "project",
      +  "prompt",
      +  "context"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the async contract (placeholder appears at `start` immediately, image fills in when the run ends, returns a generation id at once), the cost model ('costs credits', best costs more, edits at best cost more), per-quality cap limits, and the error behavior. That is substantial behavior beyond the 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.

Conciseness4/5

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

Front-loaded with the core action and effect, then cost and parameter notes. Dense but nearly every clause carries information; the single-paragraph format makes it slightly harder to scan than a short bulleted structure would.

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?

For a 14-parameter, no-output-schema tool, it covers the return contract, async waiting, cost, and the meaningful creative parameters. Remaining gaps (aspect/model override semantics, track placement fallback) are documented in the schema itself, so nothing an agent needs to call correctly is missing.

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

Parameters4/5

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

Schema coverage is 93%, so baseline is 3; the description goes further by scoping `image` semantics (up to 6 at standard, 4 at best), explaining `quality` beyond its enum (best holds fine detail and spells lettering/signage reliably), and giving `durationSeconds` a default of 5. It leaves analytics params like llm_model and conversation_id to the schema, which 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 and resource ('Generate a still image from a prompt') plus the side effect ('put it on the timeline as an image item'), which separates it from sibling generators like generate_video, generate_music, or waveform_image without needing their schemas.

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?

Explains the standard-vs-best tradeoff, when to pass `image` (redraw or take from existing media), and directs long runs to generation_status with `wait: true`. It stops short of explicit when-not conditions or naming sibling generators directly, but the selection context is clear.

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.

Resources