Skip to main content
Glama

Vertex imagen generate

vertex.imagen.generate
Read-onlyIdempotent

Generate one or more images from a text prompt, with optional model and aspect ratio controls, returning base64-encoded output for downstream use.

Instructions

Generate n images, returned as base64 (default model gemini-3.1-flash-image; pass model to override). Incurs Vertex cost per image.

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": "vertex.imagen.generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
modelNo
promptYes
aspect_ratioNo1:1

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnly, non-destructive, idempotent, open-world), so the description's added value is what lies beyond them: per-image Vertex billing cost and that results come back as base64 rather than URLs. That cost warning is genuinely useful for an agent deciding whether to call this, though it omits any note on generation latency, rate limits, or result variability.

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?

Two clauses, zero filler, and the most actionable facts (count, output format, cost) are front-loaded before the optional model detail. Nothing repeats the tool name or title.

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?

The presence of an output schema relieves the description of documenting return values, and it still usefully notes base64. For a simple 4-parameter tool it is close to adequate, but the completely undocumented aspect_ratio and the absence of any sibling routing leave real gaps an agent must fill by guessing.

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 description coverage is 0%, so the description carries more burden than usual. It does explain `n` (count of images) and `model` (default gemini-3.1-flash-image for override), but `aspect_ratio` is undocumented in both schema and description, and `prompt` semantics are left implicit. Partial compensation, not full.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate n images") plus the return encoding, which is enough to separate it from vertex.veo.generate (video) and vertex.gemini.generate (text). It never names those siblings explicitly, so differentiation is inferred from the resource noun rather than stated.

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: an agent can deduce this is the image-generation path, but there is no explicit when-to-use framing or when-not guidance against the other vertex generation tools. The note about the default model and overriding it is the only routing-adjacent guidance, and it concerns model choice, not tool choice.

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

Deploy Server

Other Tools