Skip to main content
Glama

HTML/CSS to Image API

Create a batch of templated images

create_batch_templated_images
DestructiveIdempotent

Creates multiple images from one or more saved templates. Set template_id in default_options or each variation; resolve unknown IDs with list_templates. Keep variations within max_batch_size from capabilities, or call get_max_batch_size if that limit is not already known. Shared template_values merge recursively with each variation; arrays, scalars and explicit null replace defaults. Overriding a template_id resets the inherited version unless a version is also supplied. Identical images reuse existing assets. Returns IDs, URLs and format information in response order. Use create_templated_image for a single image or inline preview.

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": {
      "variations": "<variations>"
    },
    "name": "create_batch_templated_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
variationsYesOne image request per variation. Inherit the default template or supply a different template_id, optional template_version and template_values.
default_optionsNoOptional template_id, template_version, template_values and output format shared by all variations.

Output Schema

NameRequiredDescriptionDefault
itemNoOperation result. Check success before using this value.
errorNoError details when the operation failed; null on success.
successNoWhether the operation succeeded. If false, inspect error before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare non-read-only, destructive, idempotent behavior, and the description adds real substance beyond them: recursive merge semantics where arrays, scalars and explicit null replace defaults, the rule that overriding template_id resets the inherited version unless a version is supplied, and that identical images reuse existing assets. It also notes the response is ordered like the request, which explains the idempotentHint in practical terms.

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-loaded with the action, then guidance, then edge-case rules, then the sibling redirect. It is dense but mostly earns its sentences; the merge/version rules partially duplicate the schema text and could be trimmed.

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?

Covers the operational essentials an agent needs before calling: template resolution, batch size limits, inheritance and merge behavior, and a pointer to the single-image alternative. An output schema exists, so the brief return-value note (IDs, URLs, format, in response order) is sufficient.

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 nested variation fields (format, template_id, template_values, template_version) are already fully documented in the schema. The description restates the merge and version-reset rules rather than adding new parameter meaning, so the baseline 3 applies.

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 with scope: "Creates multiple images from one or more saved templates." It also explicitly contrasts with create_templated_image for the single-image case, so an agent can separate the two tools 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete routing instructions: use create_templated_image for a single image or inline preview, resolve unknown IDs with list_templates, and enforce max_batch_size from capabilities or get_max_batch_size. It names the alternatives and the conditions that select them.

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.