Skip to main content
Glama

generate_image

Create images from text prompts with options for model, aspect ratio, dimensions, and seed for reproduction.

Instructions

Generate an image from a text prompt using Pruna AI.

Args: prompt: Text description of the image to generate model: Model to use (default: p-image) aspect_ratio: Output aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, custom) width: Custom width 256-1440, multiple of 16. Only when aspect_ratio=custom height: Custom height 256-1440, multiple of 16. Only when aspect_ratio=custom seed: Random seed for reproducible generation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
modelNop-image
widthNo
heightNo
promptYes
aspect_ratioNo16:9
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, so the description's addition of constraints (e.g., dimension multiples) and seed for reproducibility adds some value. However, it does not disclose other behavioral traits like rate limits, authentication, or what happens on failure.

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 concise, using a docstring format with a clear one-line summary followed by an organized Args list. Every sentence adds value—no redundancy or irrelevant information.

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 description explains input parameters well but does not describe the output format (e.g., image URL, base64). Given no output schema, this omission could leave an agent uncertain about what is returned. Additionally, no usage context or error handling is mentioned.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully explains all six parameters. It defines defaults (model: p-image, aspect_ratio: 16:9), lists allowed aspect ratios, and specifies valid ranges and conditions for width/height. This provides essential meaning beyond the schema's type and title.

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 action 'Generate an image from a text prompt' and specifies the tool (Pruna AI). The verb and resource are specific, and it naturally distinguishes from sibling tools like 'edit_image' and 'generate_video'.

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 does not provide explicit guidance on when to use this tool versus alternatives (e.g., edit_image for modifications). It is implied that this is for generating new images from text, but no when-not-to-use or exclusion criteria are given.

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/charlesrapp/pruna-mcp-server'

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