Skip to main content
Glama
tsilva
by tsilva

generate_image

Generate images by providing a text description, with optional control over aspect ratio, size, quality, and output format.

Instructions

Generate an image using an OpenRouter image generation model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoImage size - 1K, 2K, or 4K1K
modelNoImage model (e.g., "google/gemini-3-pro-image-preview"). If not specified, uses DEFAULT_IMAGE_MODEL environment variable.
promptYesImage description - be specific about style, colors, composition
qualityNoQuality setting (e.g., "high", "medium", "low")
backgroundNoBackground setting (e.g., "transparent" for PNG/WebP)
output_pathNoOptional absolute file path to save the image. Must be an absolute path if provided (e.g., "/Users/name/output.png").
aspect_ratioNoAspect ratio - 1:1, 16:9, 9:16, 4:3, 3:4, or 21:91:1
output_formatNoOutput format (e.g., "png", "webp", "jpeg")
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for disclosing behavioral traits. It only states that the tool generates an image via OpenRouter, with no mention of costs, rate limits, authorization, error handling, or potential side effects. This is insufficient for a tool with mutation-like behavior.

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 sentence, front-loaded with the core action. It is concise with no wasted words, though it may be too brief for the complexity of the tool (8 parameters). Overall efficient.

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 tool has 8 parameters, no output schema, and no annotations, the description is too brief. It does not explain return values, error behavior, or any contextual details about the generation process. The completeness is lacking for a tool of this complexity.

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 100%, so the baseline is 3. The description adds no additional meaning beyond the schema; it does not explain parameter interactions or provide usage examples. It neither enhances nor detracts from the schema's clarity.

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 clearly states the verb 'Generate' and the resource 'image', and specifies the platform 'OpenRouter image generation model'. This differentiates it from sibling tools (chat, embed, find_models, list_models) which serve different purposes.

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?

The description implies the tool is for generating images, but it does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or limitations. The context is clear but lacks explicit usage direction.

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/tsilva/mcp-openrouter'

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