Skip to main content
Glama

generate_image

Read-only

Generate one image from a prompt and return it as an image block. Models: google/nano-banana-2.1, google/nano-banana-2-lite, google/nano-banana-pro, openai/gpt-image-2, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst (default google/nano-banana-2.1). openai/* models take size (1024x1024, 1024x1536, 1536x1024) and quality (low, medium, high; default medium); google/* models take resolution (1K, 2K, 4K where allowed) and aspect_ratio (1:1 default, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 21:9). Price per image is quoted in the 402 from the provider's list price for that choice (x 1.4 + $0.0005, minimum $0.005); settled as quoted. Charged only if an image comes back. Text prompts only; up to 4000 characters.

Input Schema

NameRequiredDescriptionDefault
sizeNo
modelNo
promptYes
qualityNo
resolutionNo
aspect_ratioNo
output_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, so the description carries the real burden and does: it discloses the price formula (list price x 1.4 + $0.0005, min $0.005), that the 402 quotes the exact charge, that settlement matches the quote, and that billing happens only on a returned image. These are material facts an agent could not infer otherwise. It omits failure modes beyond the 402 and says nothing about latency or content-policy rejection.

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 return type, then dense but purposeful constraint text with no filler. It is a single dense block with heavy parenthetical nesting, which makes the model/parameter mapping slower to parse than a short list would be.

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?

For a 7-parameter generation tool with 0% schema coverage and no output schema, the description supplies model IDs, per-family parameter applicability, defaults, cost mechanics, billing condition, input limit, and the response form (image block). Only output_format is left uncovered, which is a minor omission against everything else.

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 0%, so the description must compensate, and it largely does: it enumerates valid model IDs with a default, states which models accept size/quality vs resolution/aspect_ratio, and gives defaults for quality (medium) and aspect_ratio (1:1) plus allowed aspect ratios. The gap is output_format (png/jpeg/webp), which is documented in neither the schema nor the description, and the 4000-character prompt limit is stated but not tied to the model choice.

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 plus the return shape: 'Generate one image from a prompt and return it as an image block.' That is far more than a restatement of the name. It does not reference the sole sibling 'models', so an agent gets no explicit routing cue between the two.

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 usable selection logic by splitting parameters along the model family axis (openai/* takes size+quality, google/* takes resolution+aspect_ratio) and names the default model and defaults. It stops short of saying when not to use this tool or how to pick a model for a given intent beyond naming them, and never mentions the 'models' sibling.

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