Skip to main content
Glama

text_to_image

Generate images from textual prompts using Imagen 4 models. Returns task ID, status, and output image URLs.

Instructions

Create a Imagen 4 task on RunAPI (text to image). Returns a task id, status, and output URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aspect_ratioNo
output_countNo
waitNoPoll until the task reaches a terminal status.
timeout_msNo
poll_interval_msNo
modelNoRunAPI model slug for this model line.
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It only notes the return values but omits crucial aspects like whether the operation is asynchronous, destructive, or requires authentication. The 'wait' parameter hints at polling but is not explained.

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 a single, efficient sentence that immediately conveys the core purpose and return value, with no extraneous information.

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's complexity (6 parameters, 3 enums, no output schema), the description is too sparse. It does not mention important details like model variants, aspect ratio options, or the asynchronous nature of task creation, which are essential for correct usage.

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

Parameters2/5

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

Schema description coverage is only 33% (2 of 6 parameters). The description does not explain any parameter beyond the general 'text to image' context, failing to compensate for the low coverage. Users are left uninformed about aspect_ratio, output_count, timeout_ms, and poll_interval_ms.

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 explicitly states the action ('Create'), the resource ('Imagen 4 task'), and the output ('task id, status, and output URLs'). It distinguishes from sibling tools (check_pricing, get_task, remix_image) by clearly indicating text-to-image generation.

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 usage for text-to-image generation but provides no explicit guidance on when to use this tool versus alternatives like remix_image or get_task. It does not specify prerequisites or when not to use 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/runapi-ai/imagen-4-mcp'

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