Skip to main content
Glama

Get Test Batch

getBatch
Read-onlyIdempotent

Get one batch by id (from listBatches, a batch run's batchId, or a schedule's targetId when targetType is batch): name, description and its members. Read-only. Needs testing:read. Returns 404 if the batch is not in your workspace.

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": {
      "id": "<id>"
    },
    "name": "getBatch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBatch identifier.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
membersNoEvery member of the batch, typed, in dispatch order. Always present in responses; batches created before typed membership existed read as all-`param` members.
createdAtYes
createdByYes
updatedAtYes
descriptionNo
workspaceIdYes
testConfigIdsYesThe batch's param (step-based) member ids, in member order. Always present and always equal to the `param` entries of `members`; empty for a batch whose members are all mission tests. Kept for clients that predate `members`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so 'Read-only' in the description is partially redundant. The added value is real, though: it discloses the required scope (testing:read) and the 404 behavior when the batch is outside the caller's workspace.

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?

One densely packed sentence with the verb and resource front-loaded and no filler. It loses a point only because the nested parenthetical about id provenance makes it a single long clause, and 'Read-only' restates the annotation.

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?

For a one-parameter read tool with annotations and an output schema, the description covers scope, id provenance, returned fields, auth requirement, and the primary error case. Nothing an agent needs to invoke it 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% for the single `id` parameter, so the type and format are already documented. The description still contributes meaning the schema cannot: the three legitimate sources of that identifier, which prevents agents from passing a run id or schedule id incorrectly.

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 gives a specific verb and resource ('Get one batch by `id`') and enumerates the returned fields (name, description, members), which is enough to separate it from the sibling list/run-oriented tools such as listBatches and getBatchRun.

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 tells the agent exactly where a usable `id` comes from: listBatches, a batch run's batchId, or a schedule's targetId when targetType is batch. That is strong positive routing, but it never states the inverse (use listBatches to enumerate, getBatchRun for per-run detail), so there is no explicit when-not guidance.

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.