Skip to main content
Glama

generate_images

Generate multiple images in parallel from separate prompts and output paths, useful for sprite sets, icons, or batched concept art. Returns results in job order and reports errors per job.

Instructions

Generate several images in parallel (e.g. every pose of a sprite set).

jobs: list of {"prompt", "output_path", optional "reference_images" and any per-job override of the shared options}. concurrency: parallel Codex runs (default 3; higher may hit rate limits). Returns one result per job in order; failed jobs carry "error".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "jobs": "<jobs>"
    },
    "name": "generate_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobsYes
trimNo
max_sizeNo
overwriteNo
toleranceNo
chroma_keyNo
concurrencyNo
reasoning_effortNolow

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description does carry real behavioral weight: it warns that higher concurrency may hit rate limits, promises one result per job in order, and states that failed jobs carry an 'error' key — useful partial-failure semantics. It says nothing about write side effects on disk (overwrite), cost of parallel runs, or what happens when some jobs fail and others succeed beyond the error field.

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

Conciseness4/5

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

Three short blocks — purpose, job shape, concurrency/returns — with the batch framing front-loaded and no filler sentences. The inline dict notation is dense but readable for an agent.

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?

An output schema exists, so return values need not be spelled out. But for an 8-parameter mutation tool with zero annotation coverage and zero schema descriptions, six parameters (notably tolerance and chroma_key, which control output pixels) remain entirely opaque, so the definition is not complete enough to call it reliably.

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 coverage is 0% and the tool has 8 parameters, so the description must compensate. It fully specifies the critical `jobs` item shape (prompt, output_path, reference_images, per-job overrides) and explains `concurrency` (default 3, rate-limit risk), but leaves trim, max_size, overwrite, tolerance, chroma_key, and reasoning_effort completely undefined — the qualified names alone convey no meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with a clear scope modifier: 'Generate several images in parallel', plus a concrete use case ('every pose of a sprite set'). It implicitly separates itself from the singular sibling generate_image via the batch framing, though it never names the sibling explicitly.

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 sprite-set example implies when the batch tool is preferable to the single-image tool, but there is no explicit 'use this instead of generate_image when...' routing, and no stated prerequisites such as an authenticated session.

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