Skip to main content
Glama

Generate images

generate_image

Create images from a text prompt by selecting a model and tier; costs credits per image and returns results immediately.

Instructions

Generate images from a prompt. COSTS CREDITS — between roughly 1 and 24 credits per image depending on model and tier, charged whether or not the result is used. Get valid model, tier and aspect values from list_studio_models first, and check the balance with whoami. Returns straight away with the generated images; there is no separate job to poll.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tierYesTier id from that model's `tiers`. Decides cost and quality.
countNoHow many images. Each one is charged separately, so this multiplies the cost. Capped by the model's maxCount.
modelYesModel id from list_studio_models (image.models[].id).
aspectNoAspect ratio from the model's `aspects`. Defaults to 1:1.
promptYesWhat to generate. Specific beats clever.
referencesNoStorage keys of library media to use as reference images, from list_library_uploads. Only accepted by models whose `routes` include 'edit', and only files uploaded to this workspace.
workspaceIdNoWorkspace to act in. Defaults to the active one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and openWorldHint=true; the description goes well beyond that by disclosing the credit cost range (1-24), that charges apply even if the result is unused, and that the call returns images synchronously with no polling. These are the exact behavioral traits an agent needs before spending credits.

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?

Three sentences, cost warning front-loaded before the prerequisite lookups and the polling clarification. Every sentence carries distinct, non-redundant information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still tells the agent what comes back (images immediately, no job to poll), what it costs, and which sibling tools supply valid argument values. Nothing needed to invoke this correctly is missing.

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 schema already documents every parameter including the references route constraint and count cost multiplier. The description only echoes the sourcing advice for model/tier/aspect, adding no syntax or format detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Generate images from a prompt') and is immediately distinguishable from the sibling generate_video. The synchronous-return note further pins down what this tool is versus job-based siblings like get_video_job.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent to list_studio_models for valid model/tier/aspect values and to whoami for balance checks before calling, and contrasts the flow with job-polling tools ('there is no separate job to poll'). When-to-use and prerequisite sequencing are both spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.