Skip to main content
Glama

list_batches

List recent workspace batches newest first, showing status, per-status job counts, and billed credits; optionally attach each batch's jobs.

Instructions

List the workspace's recent batches, newest first, with status, per-status job counts and billed_credits. Free and read-only. Set include_jobs=true to add each batch's jobs; use get_batch for one batch.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of batches to return, newest first, 1-100. Default 25.
include_jobsNotrue adds each batch's jobs to the response. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / include_jobs / description
      Added value: +"true adds each batch's jobs to the response. Default false."
    • addedInput schema / properties / limit / description
      Added value: +"Number of batches to return, newest first, 1-100. Default 25."
  2. First observedv0.1.0

TDQS

A4.3/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 does disclose the key traits: cost ('Free'), safety ('read-only'), ordering ('newest first'), and the summarized result shape (status plus per-status job counts and billed_credits). It does not say what happens when the workspace has more batches than the limit, so truncation/continuation behavior remains unstated.

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?

Three short sentences, front-loaded with scope and return content, then cost/safety, then the two usage pointers. Nothing is redundant or padded.

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 two-optional-parameter list tool with no output schema and no annotations, the description supplies exactly what is otherwise missing: what comes back, that it is free and read-only, the sort order, and where to go for a single batch. An agent has enough to call it correctly and interpret the response.

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 description coverage is 100%, with both limit and include_jobs fully documented in the schema, so the baseline is 3. The description re-explains include_jobs but adds no syntax, bounds, or trade-off detail for limit beyond what the schema already says.

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 definition names a specific verb and resource ('List the workspace's recent batches'), states the ordering ('newest first') and the exact payload fields ('status, per-status job counts and billed_credits'). It also distinguishes itself from the single-item sibling by pointing at get_batch, so an agent can separate the two without opening a schema.

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 gives a concrete routing rule for the closest sibling ('use get_batch for one batch') and a conditional for enriching the response ('Set include_jobs=true to add each batch's jobs'). What is missing is any explicit when-not guidance, such as preferring a narrower listing tool when only extractions or schedules are wanted.

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