Skip to main content
Glama

Batch summary

get_batch_summary
Read-only

Aggregated state of a batch: counts by state, cost, durations and the first failures; report=true adds one row per job (state, exit code, cost, result files). Use it once waiting for the batch has returned; for the details of one job, look at that job.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "get_batch_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportNoInclude one row per job.
batch_idYesBatch ID (bat_…) returned by run_batch.

Output Schema

NameRequiredDescriptionDefault
jobsNoWith report=true: one row per job (index, job_id, status, exit_code, duration_s, cost, artifacts, error).
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: what aggregates are produced, that only 'first failures' are included, and that report=true expands the output to one row per job with state, exit code, cost, and result files. It does not discuss result-size limits or pagination, which keeps it from 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.

Conciseness5/5

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

Two sentences, zero filler, and the payload description is front-loaded before the usage guidance. Every clause carries distinct information: contents, the report flag's effect, the trigger condition, and the sibling distinction.

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?

This is a simple read-only tool with a complete input schema, a full annotation set, and an output schema, so return-value documentation is not required. The description still supplies the aggregate contents, the report flag's effect, and the correct timing, leaving nothing an agent needs in order to invoke it correctly.

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 goes further by explaining what report=true actually yields ('one row per job (state, exit code, cost, result files)'), which is more informative than the schema's terse 'Include one row per job.'

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 names the specific resource (a batch) and enumerates exactly what the summary contains: counts by state, cost, durations, and first failures. It also distinguishes itself from the per-job detail path by directing the agent elsewhere for single-job details, so an agent can separate it from get_job_summary without opening either schema.

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?

It states the timing precondition explicitly: 'Use it once waiting for the batch has returned,' which links it to the wait-then-summarize workflow. It also names the alternative behavior for one job ('look at that job'), covering both the when and the when-not.

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