Skip to main content
Glama

Check batch progress

get_batch
Read-onlyIdempotent

Returns one batch's status with its job counts (jobs: total, succeeded, failed, processing, cancelled, pending; one job per row and page). Rendering after run_batch happens in the background, so call it again until jobs.processing and jobs.pending reach 0. An unknown batchId, or one from another workspace, returns Batch not found. For many batches at once use list_batches; for per-job values and render errors get_batch_jobs; for download URLs get_batch_outputs. Needs batches:read.

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": {
      "batchId": "<batchId>"
    },
    "name": "get_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchIdYesBatch ID returned by create_batch or list_batches

Output Schema

NameRequiredDescriptionDefault
idYes
jobsYesJob counts, one job per row and page
nameYes
statusYesprocessing while any job renders; pending while jobs wait for run_batch; once every job has finished: completed when all rendered, partial when some rendered and others failed or were cancelled, failed when none rendered and at least one failed, cancelled when none rendered, none failed and at least one was cancelled. The counts carry the detail
createdAtYesCreation time, ISO 8601
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedOutput schema / properties / cancelled
      Removed value: -{
      -  "description": "Jobs cancelled",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / completed
      Removed value: -{
      -  "description": "Jobs rendered",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / failed
      Removed value: -{
      -  "description": "Jobs that failed",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • addedOutput schema / properties / jobs
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Job counts, one job per row and page",
      +  "properties": {
      +    "cancelled": {
      +      "description": "Jobs cancelled",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "failed": {
      +      "description": "Jobs that failed",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "pending": {
      +      "description": "Jobs waiting to run",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "processing": {
      +      "description": "Jobs rendering now",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "succeeded": {
      +      "description": "Jobs rendered",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total": {
      +      "description": "Jobs in the batch",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "succeeded",
      +    "failed",
      +    "processing",
      +    "cancelled",
      +    "pending"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / properties / processing
      Removed value: -{
      -  "description": "Jobs rendering now",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / total
      Removed value: -{
      -  "description": "Jobs in the batch",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "workspaceId",
      -  "name",
      -  "createdAt",
      -  "total",
      -  "completed",
      -  "failed",
      -  "processing",
      -  "status"
      -]New value: +[
      +  "id",
      +  "workspaceId",
      +  "name",
      +  "createdAt",
      +  "jobs",
      +  "status"
      +]
  2. Changed8 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / batchId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedOutput schema / properties / cancelled / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / completed / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / failed / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedOutput schema / properties / processing / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / total / maximum
      Added value: +9007199254740991
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world behavior, but the description adds what they cannot: rendering runs asynchronously in the background, so repeated polling is the expected pattern. It also discloses the failure mode ("Batch not found" for unknown or cross-workspace IDs) and the required scope (batches:read), which materially affects how an agent handles errors and auth.

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?

A single tight paragraph: return shape first, then polling behavior, then the error case, then sibling routing, then the auth scope. No sentence is redundant and the most decision-relevant facts are front-loaded.

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?

An output schema exists so return values need no prose, yet the description still names the count fields an agent must poll on. With auth scope, error behavior, and sibling routing all present, nothing needed to call this correctly is missing.

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 format and origin of batchId are already documented, making 3 the baseline. The description adds real semantics beyond the schema by explaining that an ID from another workspace is treated as not found, telling the agent that a valid-looking UUID can still fail for scoping reasons.

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 — "Returns one batch's status with its job counts" — and immediately scopes it to a single batch, which separates it from list_batches. The parenthetical enumerating the count fields makes the returned resource concrete rather than vague.

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 an explicit polling rule ("call it again until jobs.processing and jobs.pending reach 0") and names three alternatives with the condition each serves: list_batches for many batches, get_batch_jobs for per-job values and render errors, get_batch_outputs for download URLs. When-to-use and when-not-to-use are both covered.

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.

Resources