Skip to main content
Glama

flow_generate_image_with_references

Create images guided by up to 14 reference images of characters, objects, or styles, keeping subjects consistent across a prompt-driven generation.

Instructions

Generate images guided by up to 14 reference images (characters, objects, style).

Nano Banana 2.1: up to 10 object + 4 character images. Nano Banana Pro: up to 6 object + 5 character + 3 style images.

Args: prompt: What to create and how to use the references. reference_image_paths: 1-14 image paths. model: 'fast' (default), 'pro', 'lite', or a full model id. aspect_ratio / image_size / preset / style: same as flow_generate_image. number_of_images: 1-4. output_dir: Override the output folder.

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>",
      "reference_image_paths": "<reference_image_paths>"
    },
    "name": "flow_generate_image_with_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
styleNo
presetNo
promptYes
image_sizeNo
output_dirNo
aspect_ratioNo
number_of_imagesNo
reference_image_pathsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real constraints: per-model reference caps (10+4 vs 6+5+3), a 1-14 reference range, and 1-4 output images. It omits cost/latency implications, what happens when reference counts or types exceed the model limits, and whether generation is synchronous.

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 a one-line purpose, then model-specific limits, then a compact Args block that maps one line per parameter. Nothing is padded, though the model-limit lines consume space that could have been spent on reference-type rules or failure behavior.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter generation tool with no annotations and no output schema, the description covers inputs and model caps but leaves the return value (presumably file paths in output_dir) and error/limit behavior unexplained. An agent can call it, but cannot predict output shape or how over-limit references are handled.

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 description coverage is 0% across 9 parameters, so the Args block is doing essential work: it names the accepted model values ('fast', 'pro', 'lite', or a full id), bounds number_of_images to 1-4, and defers aspect_ratio/image_size/preset/style to flow_generate_image. Remaining gaps are the allowed aspect_ratio values, the meaning of preset vs style, and the expected path format for reference_image_paths and output_dir.

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 opening sentence gives a specific verb and resource ('Generate images') plus the distinguishing modifier ('guided by up to 14 reference images') with the reference types named. That differentiates it cleanly from flow_generate_image, whose behavior it explicitly inherits for shared parameters.

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?

Usage is only implied by the name and the reference-image framing; the description never states when to choose this over flow_generate_image (e.g. character consistency, style transfer) or when not to. It does reference flow_generate_image as the source of shared parameter behavior, which is a partial sibling link, but no explicit selection criteria are given.

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