Skip to main content
Glama

Generate Images (Batch)

generate_image_batch

Generate multiple images from an array of prompts in one call and return a signed download URL for each, enabling cross-environment image transfer.

Instructions

Generate multiple images from an array of prompts in a single call. Each image is uploaded to Firebase Storage (when configured) and a signed download URL is returned. Nothing is written to local disk and no inline previews are returned. Returns a text summary with one download URL per prompt.

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": {
      "items": "<items>"
    },
    "name": "generate_image_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesArray of image generation requests (1–20 items)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and discharges most of it: it discloses the remote side effect (upload to Firebase Storage when configured), the return artifact (signed download URL), and explicitly rules out local disk writes and inline previews. Gaps remain around what happens when storage is not configured, authentication/API requirements, and failure behavior in a 20-item batch.

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?

Four short sentences, front-loaded with what the tool does and followed by side effects and return shape; every sentence carries information. Minor redundancy between 'a signed download URL is returned' and 'one download URL per prompt' keeps it from being maximally tight.

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

Completeness4/5

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

There is no output schema, so the description correctly spends effort on the return value (text summary, one URL per prompt) and on side effects, which is the right coverage for a generation tool. It falls short only on environment prerequisites (Firebase configuration, credentials) that determine whether generation actually yields URLs.

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 prompt, resolution, aspect_ratio, and the 1–20 bounds; the baseline of 3 applies. The description adds only that outputs map one-to-one to prompts, and does not mention resolution or aspect_ratio semantics, so it adds little meaning beyond the schema.

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 multiple images') plus the mechanism ('from an array of prompts in a single call'), which distinguishes it from a singular generate_image sibling by scope alone. An agent can tell batch from single-image generation without opening either schema.

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?

Usage is only implied: an agent infers it should be used when several prompts are needed at once, since the description mentions 'in a single call' versus presumably one-at-a-time siblings. There is no explicit when-to-use/when-not statement, no guidance on the 1–20 item limit, and no prerequisites such as whether a model or resolution must be set first via set_model/set_resolution.

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