Skip to main content
Glama

Make images for many products at once

create_batch

Bulk mode: starts image sets for many products in one call (up to 500; the account’s plan sets the limit). Each product is a product page url, public image_urls, upload_ids, or a product_id the account already has, with an optional name, description and facts. It runs in the background: each product is read, planned and, with mode "run", its images start as soon as its plan is written; with mode "review" each product stops at its plan until start_batch. One product failing never stops the others. Nothing starts beyond what is left (the plan’s products per batch and per day, and the credits for mode run): the dry run’s fits says how many products (from the first) can start now. Call with dry_run true first and tell the person the most it can cost and how many fit; if not all fit, offer the first fits products or buying credits (buy_credits); then call without dry_run. Credits are spent per product when its images start (1 credit per 2K image). Returns the batch id; follow it with get_batch. Example: {"mode": "run", "packs": ["amazon", "etsy"], "items": [{"url": "https://shop.example.com/products/mug"}, {"image_urls": ["https://cdn.example.com/apron.jpg"], "name": "Linen apron"}], "dry_run": true}

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": "create_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"run" (default): make everything; "review": write every plan first, then start_batch
nameNoA name for the batch and the folder its products go in
packNoOne platform for every product (same as packs with one entry)
itemsYes
packsNoThe platforms every product gets, one image set each, e.g. ["amazon", "etsy"] (needed unless each item has its own)
styleNoA social type’s style, e.g. "aesthetic"
localeNoLanguage of text on the images, e.g. "de"
dry_runNoOnly check the products and return the most it can cost
brand_kit_idNoA brand kit for every product; null = no brand; omitted = each product’s brand

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / items / items / properties / packs
      Added value: +{
      +  "description": "This product’s platforms instead of the batch’s",
      +  "items": {
      +    "description": "Platform pack: amazon, amazon-aplus, etsy, shopify, tiktok-shop (square images for every TikTok Shop region); social ads: social (static ad images) or social-carousel (square carousel ad cards, one selling point each); social organic: instagram-grid (photo posts, the product in a different scene each, no text) or organic-carousel (a 4:5 brand campaign carousel); or storyboard (a video storyboard sheet). Pick how many posts, slides or cards with the shots list.",
      +    "enum": [
      +      "amazon",
      +      "amazon-aplus",
      +      "etsy",
      +      "shopify",
      +      "tiktok-shop",
      +      "social",
      +      "social-carousel",
      +      "instagram-grid",
      +      "organic-carousel",
      +      "storyboard"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 6,
      +  "type": "array"
      +}
    • changedInput schema / properties / pack / description
      Previous value: -"The pack for every product (needed unless each item has its own)"New value: +"One platform for every product (same as packs with one entry)"
    • addedInput schema / properties / packs
      Added value: +{
      +  "description": "The platforms every product gets, one image set each, e.g. [\"amazon\", \"etsy\"] (needed unless each item has its own)",
      +  "items": {
      +    "description": "Platform pack: amazon, amazon-aplus, etsy, shopify, tiktok-shop (square images for every TikTok Shop region); social ads: social (static ad images) or social-carousel (square carousel ad cards, one selling point each); social organic: instagram-grid (photo posts, the product in a different scene each, no text) or organic-carousel (a 4:5 brand campaign carousel); or storyboard (a video storyboard sheet). Pick how many posts, slides or cards with the shots list.",
      +    "enum": [
      +      "amazon",
      +      "amazon-aplus",
      +      "etsy",
      +      "shopify",
      +      "tiktok-shop",
      +      "social",
      +      "social-carousel",
      +      "instagram-grid",
      +      "organic-carousel",
      +      "storyboard"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 6,
      +  "type": "array"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses background execution, per-product failure isolation ("One product failing never stops the others"), quota and credit limits applied per batch and per day, and that credits are charged per product at start (1 credit per 2K image). That is exactly the cost/quota context the readOnly/destructive hints cannot convey.

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?

Front-loads scope, then mode, then the dry-run workflow, and ends with a concrete example. Some sentences are dense run-ons with nested parentheticals (the quota/credit clause), which costs readability but not correctness.

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?

There is no output schema, and the description compensates by stating it returns the batch id and that get_batch should follow. For a 9-parameter async mutation with cost implications, nothing essential to a correct first call is missing.

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?

Schema coverage is already 89%, but the description still adds meaning: the four alternative item identity forms (url, image_urls, upload_ids, product_id), the mode handoff to start_batch, and the fact that dry_run's "fits" counts products from the first one onward. Some parameters (style, locale, brand_kit_id) are only explained in 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?

Opens with a specific verb and scope: "Bulk mode: starts image sets for many products in one call (up to 500)." It clearly separates itself from the single-product generate_image_set path and from start_batch by naming the review-mode handoff.

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?

Gives an explicit operating procedure: call with dry_run true first, report the maximum cost and how many products fit, then offer only the first fits products or buy_credits, and finally call without dry_run. It also states when to use mode "review" versus "run".

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.