Skip to main content
Glama

flow_generate_frame

Generates an image keyframe, starting frame, or product shot from a text prompt, optionally fusing up to 14 reference images, using your signed-in Google Flow credits.

Instructions

Generate an image (starting frame, keyframe, product shot) with Nano Banana.

By default (use_browser_credits=True, or when no API key is set) it uses your signed-in Google Flow account and credits, no API key needed. In that mode Flow picks the size, and image_size, model and previous_interaction_id are ignored.

Args: prompt: Detailed visual description of the frame or edit instruction. reference_images: Optional list of up to 14 local image paths to fuse. aspect_ratio: Aspect ratio ('16:9', '9:16', '1:1'). Default '16:9'. image_size: Output resolution ('1K', '2K', '4K'). Default '2K'. model: Gemini image model ('gemini-nano-banana-2.1' or 'gemini-3-pro-image'). previous_interaction_id: Optional interaction ID from a prior turn. output_path: Optional custom local file path for saving the image. use_browser_credits: If True (default), uses your Google Flow sign-in and credits instead of the Gemini API.

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": "flow_generate_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNogemini-nano-banana-2.1
promptYes
image_sizeNo2K
output_pathNo
aspect_ratioNo16:9
reference_imagesNo
use_browser_creditsNo
previous_interaction_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and delivers real behavioral context: it requires a signed-in Google Flow account in default mode, consumes Flow credits, needs no API key, and silently overrides image_size, model and previous_interaction_id because Flow picks the size. It omits failure modes, latency/long-running behavior, and what happens when a required sign-in is missing.

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?

The mode-selection caveat is correctly front-loaded before the Args block, and each item earns its place. The only waste is restating schema defaults ("Default '16:9'", "Default '2K'", "If True (default)") which the schema already declares.

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 an 8-parameter tool with dual authentication modes this covers what an agent needs: the mode switch, the ignored-parameter side effect, all parameter meanings, and a custom output_path. Since an output schema exists, return values need not be described; only edge cases like nonexistent output directories or invalid model names remain unaddressed.

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

Parameters5/5

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

Schema description coverage is 0%, so the description has to compensate entirely, and it does: every one of the 8 parameters is explained, including enum-like value lists for aspect_ratio ('16:9', '9:16', '1:1'), image_size ('1K/2K/4K'), and model (two named Gemini image models). It also adds non-obvious constraints such as 'up to 14 local image paths' for reference_images and the prior-turn semantics of previous_interaction_id, none of which appear 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?

The description opens with a concrete verb+resource ('Generate an image') and parenthesizes the concrete artifact types (starting frame, keyframe, product shot), plus names the underlying model (Nano Banana). This makes it clearly distinguishable from the video-oriented siblings such as flow_text_to_video and flow_frames_to_video.

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?

It clearly states the two operating modes and which one is default: browser-credits mode when use_browser_credits=True or when no API key is set, versus the Gemini API path. It does not, however, say when to prefer this tool over flow_reference_to_video or flow_frames_to_video, so the routing guidance stops at mode selection rather than tool selection.

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