Skip to main content
Glama

Generate images

image_generate

Turn text prompts into images using an OpenAI-compatible endpoint. Returns inline base64 or download URLs for easy access.

Instructions

Generate one or more images from a text prompt through an OpenAI-compatible images/generations endpoint. Images are returned inline as base64 when available, otherwise as download URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoOptional number of images to generate (1-4).
sizeNoOptional image size such as 1024x1024.
modelNoOptional model override.
promptYesText description of the image to generate.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesDescription of the generated images.
countYesNumber of images generated.
modelYesModel used for the request.
Behavior3/5

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

With no annotations provided, the description carries the behavioral burden. It adds useful context about output format (inline base64 or download URLs), but does not disclose prerequisites like API key requirements, cost, rate limits, or failure behavior, so its transparency is partial.

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?

The description is two focused sentences with the verb+resource front-loaded and zero redundancy. It efficiently communicates purpose, mechanism, and output format.

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?

The description, combined with a fully described schema and an output schema, gives an agent enough to invoke and interpret results. It lacks explicit usage alternatives and deeper behavioral caveats, but for a simple generation tool it is sufficiently complete.

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 descriptions cover 100% of the parameters, so the baseline is 3. The description adds no additional parameter semantics beyond the schema's own details, though it does reinforce the 'one or more' notion via 'Generate one or more images'.

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 uses a specific verb 'generate' with a clear resource ('images') and source ('text prompt'), which precisely defines the tool's purpose. It also distinguishes itself from sibling tools like vision_analyze and vision_ocr, which analyze or OCR images rather than create them.

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?

The context for when to use the tool is clear: generating one or more images from a text prompt. However, it does not explicitly state exclusions or mention alternatives such as vision_analyze/vision_ocr, stopping short of the highest level of guidance.

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/xiaoshengyvlin/MCP-Vision'

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