Skip to main content
Glama

batch_generate

Generate up to 10 images in a single batch by submitting multiple prompts and model checkpoints with a chosen pipeline, enabling efficient bulk image creation.

Instructions

Submit a batch of image generation requests (up to 10).

Args:
    pipeline: Pipeline to use — "sd15", "sdxl", or "illustrious"
    requests: List of generation request objects, each with at least "positive_prompt" and "model_checkpoint"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipelineYes
requestsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description must carry the burden of behavioral disclosure. It only reveals that the operation is a 'Submit' and that batches are capped at 10. It does not describe asynchronous/job behavior, returned job identifiers, partial failure behavior, validation, or resource cost semantics. The 10-item cap is useful, but it is the only meaningful behavioral detail beyond the obvious 'submit' action.

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 purpose line followed by a compact Args block with only two parameters. Every sentence adds needed information: the batch nature, the limit, pipeline values, and required per-request fields. There is no repetition of schema property names or off-topic filler.

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?

Given the small parameter count and the presence of an output schema, the description is adequate for constructing a basic request, but not for fully navigating the surrounding tool suite. It does not clarify whether a job is queued and later queryable via list_jobs/get_job_status, nor does it give any decision rule for choosing this over generate_image or submit_generate. The description leaves those gaps to inference.

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

Parameters4/5

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

The input schema has 0% description coverage and an open-ended requests array with additionalProperties true. The Args block compensates well by listing the allowed pipeline values ('sd15', 'sdxl', or 'illustrious') and specifying that each request must contain at least positive_prompt and model_checkpoint. This is enough to form a correct minimal request, though optional per-request fields are not enumerated.

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 opening sentence is a specific verb-resource pair: 'Submit a batch of image generation requests.' The explicit '(up to 10)' distinguishes it from the single-generation siblings and clearly communicates the batch scope. The purpose is immediately understandable and not buried in boilerplate.

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 this tool is for multiple generation requests because it is a 'batch' tool, but it does not explicitly state when to use it versus siblings like generate_image, submit_generate, or submit_inpaint. It also fails to explain what happens if the batch exceeds 10 requests or how to decide between synchronous generation and submission endpoints. The usage guidance is present only by implication.

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/mcaimi/sd-api-mcp'

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