Skip to main content
Glama

Check a batch

get_batch
Read-onlyIdempotent

Shows a batch made with create_batch: each product’s step (queued, product, plan, planned, starting, generating, done, failed, waiting_credits, skipped), its image_set id (get_image_set has the download links), images done of total, credits, and a plain error for a failed one. Without batch_id: the account’s latest batches. Free. Check every minute or so while products are moving. Example: {"batch_id": "…"}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the read-only and idempotent annotations, the description adds useful behavior: the call is free, poll roughly every minute, returns per-product status and progress, includes a plain error for failures, and falls back to latest batches when no id is supplied. It does not specify pagination or limits for the latest-batches fallback.

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?

The description is front-loaded, dense but purposeful, and every clause adds useful detail about the returned fields or optional behavior. The long status list is justified because there is no output schema, though the single-sentence structure makes it slightly harder to scan.

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 simple read-only status tool with no output schema, the description explains what is returned, the status vocabulary, progress and credits, error handling, and the fallback for omitted batch_id. It leaves only minor gaps around how many latest batches are returned and their ordering.

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 must explain the sole optional parameter. It does so by stating that batch_id selects a specific batch and that omitting it returns the account’s latest batches, with an example, though it does not add further validation or source details beyond what create_batch implies.

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?

The description states a specific verb and resource: it shows a batch created by create_batch, including per-product step, image_set id, progress, credits, and error. It also explicitly distinguishes get_image_set as the place for download links and explains the no-parameter behavior.

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?

It gives clear operational guidance to check every minute or so while products are moving and notes the call is free. It also explains that omitting batch_id returns latest batches, but it does not state explicit when-not conditions or fully compare against all sibling status-check tools.

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.