Skip to main content
Glama

gemini_generate_image_tool

Generate images from text prompts with Gemini's native model. Specify style, size, aspect ratio, and optionally ground with Google Search results.

Instructions

Generate an image from a text prompt using Gemini's native image model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNoOptional style modifier (photorealistic, cartoon, watercolor, etc).
promptYesDescription of the image to generate.
image_sizeNoOutput size (1K, 2K, 4K).2K
aspect_ratioNoAspect ratio (1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, etc).1:1
use_google_searchNoGround with Google Search results.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'generate an image' without any details about side effects, costs, latency, output format, or error conditions. Since this is a generation (non-destructive) operation, the lack of transparency is not harmful, but it still doesn't offer any insights beyond the basic action.

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 description is a single, clear sentence that is front-loaded with the core action. It avoids redundancy and wastes no words. It is concise but does not include structured elements like bullet points, which is acceptable for a simple tool.

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

Completeness2/5

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

Given the existence of several sibling image-generation tools (e.g., 'with_input', 'imagen', 'image_prompt'), the description is not complete enough to guide the agent. It doesn't mention when to prefer this tool over others, nor does it indicate that the output schema exists (though it does). The description is minimal and leaves ambiguity about its unique value proposition.

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?

The schema covers 100% of the parameters (prompt, style, image_size, aspect_ratio, use_google_search), so the baseline is 3. The description does not add any additional meaning beyond what the schema already provides. It simply reiterates the core purpose without elaborating on parameter usage or constraints.

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?

The description clearly states the action (generate an image), the resource (an image from a text prompt), and the model ('Gemini's native image model'). It is specific enough to distinguish from the Imagen tool but does not explicitly differentiate from the similar sibling 'gemini_generate_image_with_input_tool', which also generates images. The addition of 'native' provides some context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives like 'gemini_generate_image_with_input_tool' or 'gemini_imagen_generate_tool'. No context is given about prerequisites, restrictions, or appropriate scenarios. The description simply states what it does, not when to apply it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crunchtools/mcp-gemini'

If you have feedback or need assistance with the MCP directory API, please join our Discord server