Skip to main content
Glama

List jobs or batches

list_jobs
Read-only

List your recent jobs or batches, newest first – use it to find work whose ID you no longer have or to review what ran. kind=jobs (default) returns one short row per job (ID, state, shortened command, created time, duration, exit code, cost, batch); filter by status, batch_id or since. kind=batches returns one row per batch (ID, name, state, job counts, cost); since applies, status and batch_id do not. Results are paged: when next_cursor is returned, pass it as cursor for the next page. An empty list means nothing matches. The details of one job or one batch are shown by the job summary and batch summary tools.

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_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNojobs (default) or batches.
limitNoRows per page (default 20, max 100).
sinceNoOnly items created since this time: RFC 3339 (2026-11-15T08:00:00Z) or an age such as 30m, 24h or 7d.
cursorNonext_cursor from the previous page.
statusNoJobs only: show only jobs in this state.
batch_idNoJobs only: show only the jobs of this batch.

Output Schema

NameRequiredDescriptionDefault
kindYesWhat the rows are.
countYesNumber of rows on this page.
itemsYesRows, newest first. Jobs: id, status, command, created_at, duration_s, exit_code, cost, batch_id, artifacts. Batches: id, name, status, done, total, succeeded, failed, cost, created_at.
next_cursorNoPass as cursor to get the next page (absent on the last page).

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 cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description goes further by disclosing ordering (newest first), the paging protocol ("when next_cursor is returned, pass it as cursor for the next page"), and the meaning of an empty result. The per-kind field lists are partly redundant with the output schema, which keeps this 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?

Purpose and scope are front-loaded, followed by mode behavior, filtering rules, and paging in a logical order. Dense but nearly every clause carries information; the enumeration of row fields is the only part that partially duplicates the output schema.

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 zero-required-parameter read-only list tool with a full-schema, full-coverage input and an output schema, the description covers everything an agent needs: what each mode returns, which filters are honored, how to paginate, and how to interpret an empty result. Nothing material is left to inference.

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%, so the schema already documents kind, limit, since, cursor, status and batch_id. The description adds only the cross-parameter rule that status and batch_id are ignored when kind=batches, which is useful but marginal beyond the schema. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

Opens with a specific verb+resource+ordering ("List your recent jobs or batches, newest first") and then enumerates what each of the two modes returns, so an agent can tell exactly what this tool produces. It also explicitly separates list-level purpose ("find work whose ID you no longer have or to review what ran") from the single-item tools via "The details of one job or one batch are shown by the job summary and batch summary tools."

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?

States concrete when-to-use conditions (recovering an unknown ID, reviewing recent runs) and names the alternative tools (job summary / batch summary) that handle the detail case. It also disambiguates the two modes, including which filters apply to which mode ("since applies, status and batch_id do not" for batches).

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