Skip to main content
Glama

check_batch_progress

Read-only

Check batch image generation progress by batch ID to retrieve completion counts and per-image statuses while running, or full file paths once finished. Wait 50 seconds between checks.

Instructions

Check progress of a batch generation.

TIMING: Wait 50 seconds after batch_generate before calling this. If status is still "in_progress", wait another 50 seconds before calling again.

While in progress: returns completion counts and per-image statuses. When finished: returns full results with all file paths, then cleans up the batch.

Args: batch_id: The batch ID returned by batch_generate.

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

Input Schema

NameRequiredDescriptionDefault
batch_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior1/5

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

The description discloses a real side effect — 'then cleans up the batch' after returning results — which is a state mutation, yet the annotations declare readOnlyHint=true. Under MCP semantics readOnlyHint means the tool does not modify its environment, so the description directly contradicts the supplied annotation. This is flagged as an annotation contradiction even though the rest of the behavioral disclosure (stage-dependent return content, timing) is otherwise informative.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then a clearly labeled TIMING block, then stage-specific behavior, then the argument. Every sentence adds operational value for a polling call and nothing is redundant with the schema beyond the harmless Args restatement that adds provenance for the ID.

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 one-parameter polling tool with an output schema, the description covers timing, stage-dependent returns, and the cleanup side effect, so return-value details are rightly left to the schema. Minor gaps remain: no guidance on what happens with an invalid, expired, or already-cleaned-up batch_id (error behavior), and the destructive cleanup is not reconciled with the readOnly annotation.

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 description coverage is 0%, so the description carries the burden, and it does: batch_id is explained as 'The batch ID returned by batch_generate', telling the agent where to obtain the value. It does not describe the format (e.g., prefix or validity/expiry), which is the only remaining gap for a single-parameter tool.

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 ('Check progress of a batch generation') and the body immediately clarifies it is a polling tool, distinguishing it from one-shot siblings like batch_generate or list_active_batches. An agent can tell what it returns at each stage (completion counts vs. full results) without opening any 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 explicit, actionable timing rules: wait 50 seconds after batch_generate, and if status is 'in_progress' wait another 50 seconds before re-calling. This is exactly the when-to-use and when-to-repeat guidance an agent needs for a polling loop.

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