Skip to main content
Glama

batch

Run ONE preset over several photos in one call: apply_look, crop_for_platform, product_shot, make_story, make_sticker, recolor, my_looks (applies one of your saved looks, args {name}), with the same arguments for each. Give sources (1 to 10 upload handles like "upload:abc123" from request_upload, one link can carry several photos, or https:// image URLs), preset, and args: that preset's arguments without image (e.g. {marketplace: "etsy_square"} for product_shot). Each photo is opened, processed, its download link(s) collected, and closed; one image is open at a time. A photo that fails (an address that can't be fetched included) is reported and the batch goes on. A look is exported as a JPEG after it is applied. If the time budget can't fit another photo it stops and returns remaining (the sources not yet done): call again with those. Credits are charged as for the single calls (AI selection included). Only presets you can call yourself can be batched.

Input Schema

NameRequiredDescriptionDefault
argsNoThe preset's arguments, without `image`.
presetYesWhich preset to run on every photo.
sourcesYes1 to 10 photos: "upload:<id>" handles or https:// image URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond annotations: sequential one-image-at-a-time processing, per-photo failure isolation, JPEG export for looks, time-budget truncation returning `remaining`, and credit charging. Annotations only supply the generic safety/idempotency flags; the description supplies the operational reality.

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?

A dense but front-loaded paragraph that puts purpose first and then handles sources, args, edge cases, and cost. Every sentence carries information, though the single-block format makes some details (failure handling, remaining) slightly harder to scan than bullet-style would.

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?

No output schema exists, yet the description explains what comes back (collected download links, `remaining`) and how errors surface. For a non-idempotent, open-world mutation tool, everything an agent needs to invoke and re-invoke it correctly is present.

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 100% so the baseline is 3, but the description adds genuine meaning: that `sources` accepts 'upload:<id>' handles or https URLs and that one link can carry several photos, and that `args` is the preset's arguments minus `image`, with a concrete example ({marketplace: "etsy_square"}).

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+resource+scope: 'Run ONE preset over several photos in one call,' then enumerates the exact preset names it can batch. An agent can distinguish this from the single-photo sibling presets (apply_look, product_shot, etc.) purely from the description.

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?

States when to use it (several photos, same arguments), the constraint that opens the door ('Only presets you can call yourself can be batched'), and the continuation path when the time budget is exhausted ('call again with those'). Also implies the single-call alternative by tying costs back to 'the single calls'.

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.

Resources