Skip to main content
Glama

Get batch status

get_batch
Read-only

Get the aggregate status of a batch submitted via build_batch.

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
batchIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating read, so the description's main added value is the word "aggregate", signalling a rolled-up summary rather than per-item detail. It says nothing about freshness, polling cadence, or whether status is terminal, which matters for a polling-style tool with no output schema.

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 front-loaded sentence with no filler; the resource and its provenance are stated in one pass. Nothing is wasted and nothing important is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool this covers the essentials of what it fetches and where the id comes from. With no output schema, the description should say more about what "aggregate status" contains (state names, progress counts, terminal states), so an agent knows whether to poll again.

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?

Schema coverage is 0% – batchId is an undescribed bare string – so the description must carry the semantics. It does partially: the id must come from a batch created by build_batch, which tells the agent where to obtain the value. It does not describe the id's format or validity conditions, so the compensation is incomplete.

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?

The description gives a specific verb and resource ("aggregate status of a batch") and anchors it to the sibling that produces the input (build_batch). It is clearly distinguishable from mutation siblings like continue_batch or cancel_build, though it does not explicitly contrast with stream_batch, which could also surface batch progress.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the phrase "submitted via build_batch" – the agent learns this tool is for polling a batch it previously created. There is no explicit when-not guidance or named alternative (e.g. stream_batch for live progress), so the selection logic must be inferred.

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