Skip to main content
Glama

text_to_image

Create images from text prompts using AI. Set model, aspect ratio, seed, and negative prompt for controlled generation.

Instructions

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

Input Schema

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

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

With no annotations, the description must disclose behavioral traits, but it only states that the tool creates a task and returns output. It does not mention asynchronous behavior, authentication needs, rate limits, costs, or any side effects, leaving significant ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (two sentences) and front-loaded, but it omits crucial details. It could be slightly longer to include parameter hints or usage context without losing conciseness.

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 9 parameters, no output schema, and no annotations, the description is under-specified. It does not explain the task lifecycle, how 'wait' and 'poll_interval_ms' interact, or the meaning of output URLs, making it inadequate for robust tool selection and invocation.

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

Parameters1/5

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

Schema coverage is only 22%, yet the description adds no parameter explanations beyond the schema's minimal descriptions for 'wait' and 'model'. Parameters like 'prompt', 'seed', 'aspect_ratio' remain undocumented in both schema and description, failing to compensate for low coverage.

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 tool creates an Imagen 4 task for text-to-image generation and returns task id, status, and output URLs. The verb 'Create' and resource 'Imagen 4 task' are specific, and the parenthetical '(text to image)' distinguishes it from sibling tool 'remix_image'.

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?

No explicit guidance on when to use this tool versus alternatives like 'remix_image' or 'get_task'. The description does not mention prerequisites, conditions, or context for selection, leaving the agent to infer usage solely from the purpose.

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