Skip to main content
Glama

Get Batch Run

getBatchRun
Read-onlyIdempotent

Get one batch run by id (from listBatchRuns), with per-test detail: testRuns, one row per test run it started (id, type param or mission, configId, status, outcome, times), and configs, one entry per batch member with its latest attempt and every attempt across re-runs. A re-run links back by parentBatchRunId and rootBatchRunId; effective is the summary counting each member's latest attempt. Use when: the user asks which tests failed in a batch, or whether a re-run fixed them. For why one test failed use getRunResults (or getMissionTestRun for a mission member) with its run id. Read-only. Needs testing:read. Returns 404 if the run 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": "getBatchRun"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBatch run identifier.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered; the description still adds genuinely new behavior: the required testing:read scope, the 404 when the run is outside the workspace, and the semantics of re-run linkage (parentBatchRunId/rootBatchRunId) and the `effective` summary. It restates 'Read-only' redundantly and says nothing about pagination or response size, which keeps it just short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the identity parameter, then the return structure, then usage and prerequisites. It is dense but every clause carries information; the return-shape sentence is long and could be split for readability.

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?

Covers purpose, when to use, alternatives, auth scope, error case, and the relational structure of re-runs versus the effective summary — everything needed to call and interpret it correctly, with an output schema available to carry exact field details.

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 baseline would be 3, but the description adds provenance ('from listBatchRuns') that tells the agent where to obtain a valid uuid. It does not add format or constraint detail beyond that.

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 ('Get one batch run by `id`') and immediately describes the returned shape (testRuns, configs, per-member attempts). It explicitly demarcates itself from siblings getRunResults and getMissionTestRun, which handle the deeper 'why did one test fail' question.

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?

Provides an explicit 'Use when:' clause (which tests failed in a batch, whether a re-run fixed them) plus an explicit routing rule to alternatives for a different question. The only minor ambiguity is that 'getMissionTestRun for a mission member' assumes the agent knows a member's type, but the schema/data description covers that.

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.