Skip to main content
Glama

get_batch

Retrieve a batch's overall status, per-status job counts, reserved and billed credits, and job details so you can poll progress after creating a batch and identify finished jobs for result extraction.

Instructions

Get one batch's overall status, per-status job counts, reserved and billed credits, and its jobs (id, target, status, result_count). Free and read-only. Poll it after create_batch, then read each finished job with get_extraction_result.

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

Input Schema

NameRequiredDescriptionDefault
batch_idYesBatch id returned by create_batch or listed by list_batches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / batch_id / description
      Added value: +"Batch id returned by create_batch or listed by list_batches."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and handles most of it: "Free and read-only" discloses cost and safety, and it describes what a response contains. It does not say whether polling blocks, whether the job list is paginated or capped, or how long batch data persists — real gaps for a poll-oriented tool, which keeps it from a 5.

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?

Two sentences, front-loaded with the return payload and ending with the call sequence. Every clause carries information — nothing is restated from the schema or the name.

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?

With no output schema, the description must describe return values, and it does so concretely down to job-level fields. The only shortfall is that it is silent on result-set size or truncation for the embedded jobs list, which matters for a tool an agent may poll repeatedly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter, and the schema already documents it at 100% coverage, including its origin from create_batch or list_batches. The description adds no format or validation detail beyond "one batch," so the schema does the work and the baseline 3 applies.

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 precise verb and resource ("Get one batch's overall status") and enumerates the exact payload: per-status job counts, reserved and billed credits, and job fields (id, target, status, result_count). This clearly separates it from get_extraction_result, which returns a single job's result rather than batch-level aggregates.

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 workflow: call after create_batch, poll it, then read each finished job with get_extraction_result. Both the trigger condition and the named follow-up tool are present, so an agent knows exactly where this sits in the sequence.

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