Skip to main content
Glama

List Test Batches

listBatches
Read-onlyIdempotent

List the batches in your workspace, newest first. A batch runs several saved tests against the same number together. Each has an id, name, description and members: each a type (param for a standard test, mission for a mission test) and its configId, in run order (testConfigIds repeats the standard ones). Also missionMembersEnabled for the workspace. Takes optional limit and cursor (nextCursor from the previous page; absent on the last page). Use when: the user asks what batches exist or names one. Name a member with getTestConfig or getMissionTestConfig. For a batch's runs use listBatchRuns. Read-only. Needs testing:read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "listBatches"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size.
cursorNoOpaque base64 pagination cursor from a previous response's `nextCursor`. Omit for the first page.

Output Schema

NameRequiredDescriptionDefault
batchesYes
nextCursorNoOpaque base64 pagination cursor. Present only when more rows remain; pass it back as `?cursor=` to fetch the next page. Absent (never null) when the workspace's batches are exhausted.
missionMembersEnabledNoWhether this workspace can run batches that contain mission members. Mission tests in batches are enabled one workspace at a time. When false, a batch with a mission member can still be saved but running it returns 400 `BATCH_MISSION_DISPATCH_UNAVAILABLE`.

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, non-destructive and closed-world, and the description's 'Read-only' largely repeats that. What it adds is meaningful: the required scope ('Needs testing:read'), the sort order ('newest first'), the ordering guarantee of members ('in run order'), and the pagination termination rule ('absent on the last page').

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?

Purpose and sort order are front-loaded, and the middle sentence densely encodes the response shape. It is slightly over-packed - the member-ordering and missionMembersEnabled detail overlaps with what the output schema likely carries - but nearly every clause earns its place.

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 paginated read tool with an output schema, an agent gets purpose, when-to-use, alternatives, auth scope, and pagination semantics. 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 baseline is 3; the description earns above that by explaining that cursor comes from the previous response's nextCursor and is absent on the final page, which is a termination rule the schema does not state. Both parameters are optional, which is implicitly conveyed.

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 ('List the batches in your workspace, newest first') and immediately defines what a batch is, which an agent cannot infer from the name alone. It also separates itself from related tools by pointing to getTestConfig/getMissionTestConfig for members and listBatchRuns for runs.

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?

Explicit routing: 'Use when: the user asks what batches exist or names one,' plus named alternatives for the two likely adjacent intents (naming a member, inspecting runs). No inference required.

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.