Skip to main content
Glama

Generate many at once

generate_batch
Destructive

Starts many generations in one call, e.g. every scene video of episode 1, or all portraits and plates. Checks first that the total fits the balance (and the connection's spend cap); if not, nothing starts and the answer says how much is missing. With idempotency_key, each item uses ":". Jobs queue and run a few at a time. Costs credits (see estimate_cost); the result arrives as a take: poll with get_jobs or wait_for_jobs.

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

Input Schema

NameRequiredDescriptionDefault
itemsYesWhat to generate: each item has its type (scene_video, character_sheet, location_plate…) and the id of its target.
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
idempotency_keyNoAny unique string you choose; resending the same key returns the first job instead of paying twice

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: an up-front balance and spend-cap pre-check with all-or-nothing semantics ('if not, nothing starts and the answer says how much is missing'), credit cost, queued execution a few at a time, and a result that arrives as a take. The annotations already flag destructiveHint/openWorldHint; the only real gap is whether partial failures can occur after the pre-check passes.

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 and its scope, then cost, idempotency, queueing and result retrieval in quick succession. Dense semicolon-and-parenthesis phrasing packs a lot in but borders on telegraphic; every sentence still carries information.

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?

Covers the decisions an agent must make for a destructive, credit-spending batch call: pre-check atomicity, idempotency, cost estimation, and how to retrieve results. With an output schema present, return-shape detail is rightly omitted; only the post-precheck failure behavior is unaddressed.

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 non-obvious meaning: batches are limited in practice by balance/cap checks, and idempotency_key is scoped per item as '<key>:<index>', which the schema does not state. Item types are left to the schema's enum, which is fine.

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+resource+scope: 'Starts many generations in one call', with two concrete examples (every scene video of episode 1, all portraits and plates). The batch framing implicitly separates it from the single-item generate_* siblings, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Clear usage context: use it for many items at once, use estimate_cost to see cost, and poll get_jobs or wait_for_jobs for results. It names no explicit 'when not to use' case (e.g., a single item belongs in generate_scene_video), so it falls short of a full 5.

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.