Skip to main content
Glama

Start the planned products of a batch

start_batch

For a batch made with mode "review": starts the images of the products whose plan is ready (all, or item_ids from get_batch). Without item_ids, products still being planned start by themselves once planned. Spends the credits of their ticked images; refused when the balance does not cover them, then only_what_fits true starts the first ones the credits cover. Call with dry_run true first and tell the person the cost and how many fit. Example: {"batch_id": "…", "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": {
      "batch_id": "<batch_id>"
    },
    "name": "start_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoOnly return products, credits and fits
batch_idYes
item_idsNoOnly these products
only_what_fitsNoStart only the first products the credits cover

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, non-idempotent call; the description adds the material behavior beyond that: it spends credits of ticked images, is refused when the balance is insufficient, and falls back to starting the first products that fit when only_what_fits is true. It also discloses the asynchronous behavior that products still being planned start on their own once planned. It stops short of describing what happens to already-started products or pagination/response shape, so a 4 rather than 5.

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 the mode precondition and the core action, then layers cost behavior and a concrete example call. The middle sentence is dense and slightly run-on ("refused when the balance does not cover them, then only_what_fits true starts..."), but every sentence carries operational information; the example earns its place as a call template.

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?

For a credit-spending mutation with no output schema and 4 parameters, the definition covers the preconditions, cost side effect, failure mode, fallback flag, and the recommended dry-run workflow. Missing only the return shape of the non-dry-run call and behavior toward already-started images, which are secondary for correct invocation.

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?

With 75% schema coverage, dry_run, item_ids, and only_what_fits are already described in the schema, but the description adds real meaning: omitting item_ids starts everything ready and lets in-progress products self-start later, dry_run is framed as a preview to compute cost and fit count, and only_what_fits is tied to the insufficient-balance refusal condition. batch_id semantics are covered only by the schema.

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 and resource: starts the images of products in a batch whose plan is ready, scoped to batches made with mode "review". It points at get_batch as the source of item_ids, so an agent can distinguish it from planning or listing tools. What happens for batches in other modes is left unstated, which slightly blurs the boundary.

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?

Gives clear usage conditions: call it when the plan is ready, optionally narrow to item_ids from get_batch, and explicitly instructs calling with dry_run true first and reporting cost and how many fit to the person. It does not contrast against near neighbors such as retry_batch or cancel_batch, so exclusions are absent but the primary trigger is unambiguous.

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.