Skip to main content
Glama

Generate an image

generate_image

Generate an image from a prompt. For a still of the person's own subject (a thumbnail, a before and after), a frame of their footage keeps the real light and the real subject: place the moment you found with read_asset as a short video clip, or pass it as a reference. With references, the image model also sees up to 3 pictures: image assets, frames or contact sheets of video assets, and frames or contact sheets of the edit. Use them to keep a person's face from a frame, to copy the style of an image, or to sum up a range of a video or of the edit in one picture. Choose aspectRatio and imageSize (1K is standard). It answers at once with a Job ID and the media is made in the background: start every generation you need, keep working, then call wait_for_jobs with all their Job IDs to get each Asset ID for patch_film. One image uses 1 credits at 1K, 1 at 2K and 1 at 4K, with or without references.

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>",
      "aspectRatio": "<aspectRatio>",
      "imageSize": "<imageSize>",
      "references": "<references>",
      "projectId": "<projectId>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesUp to 4000 characters.
imageSizeYes
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
referencesYesUp to 3 pictures the image model sees with the prompt, in this order, or [] to generate from the prompt alone. Each one is: asset:ID, an image asset as it is (a video asset with no time gives its first frame); asset:ID#t=14.6, the frame of a video asset at 14.6 seconds; asset:ID#t=200,215, a contact sheet of that video from 200 to 215 seconds; film:#t=3.2, the frame of the edit at 3.2 seconds; film:#t=0,12, a contact sheet of the edit from 0 to 12 seconds. Contact sheets have no times written on them. Use the IDs search_assets gives. In the prompt, say what to take from each picture by its place: "keep the face of the man in the first picture", "paint it in the style of the second picture", "one poster that sums up the scene in the third picture".
aspectRatioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only mark this as a non-readonly, open-world, non-idempotent, non-destructive call; the description adds the crucial async contract (answers at once with a Job ID, media made in the background, then wait_for_jobs yields an Asset ID for patch_film) plus credit cost. The cost sentence is garbled ("1 credits at 1K, 1 at 2K and 1 at 4K"), which weakens an otherwise strong disclosure of what the call actually does.

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

Conciseness3/5

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

Front-loaded with the purpose, but the middle collapses into a long run-on about references and contact sheets that partly restates the input schema's already exhaustive references description. The credit sentence is malformed and the footage/reference advice is packed into one dense clause chain.

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?

No output schema exists, and the description compensates by explaining the return value (Job ID), the follow-up path to get asset IDs, and the downstream consumer (patch_film). For a five-parameter generative tool with async behavior, nothing essential 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?

Adds meaning beyond the schema for the loosely documented parameters: imageSize is contextualized ("1K is standard") and references are given a usage contract (up to 3 pictures, refer to them by place in the prompt with example phrasings). aspectRatio gets no explanation beyond its enum, and the reference syntax itself is already fully spelled out in the schema.

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?

Opens with a specific verb and resource ("Generate an image from a prompt") and immediately differentiates itself from a video sibling by explaining that a still of the user's own subject can be pulled from their footage. An agent knows what this makes and what it does not.

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?

Gives clear when-to guidance for references (keep a face from a frame, copy a style, sum up a range) and a concrete workflow alternative (start every generation you need, keep working, then wait_for_jobs). It does not state when to reach for generate_video instead of a still, but the usage context is well established.

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.