Skip to main content
Glama

list_jobs

Retrieve recent DAIV agent runs newest first, with pagination and optional status or repository filters, so you can review job history and find the next page of results.

Instructions

List the caller's recent agent runs, newest first.

Returns {"jobs": [...], "next_cursor": str | None}. Pass next_cursor back to fetch the next page; None means no more rows. Each entry is a lean summary — use get_job_status for a single job's full result text.

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
limitNoMax rows (default 20, capped at 50).
cursorNoOpaque pagination token from a prior call's ``next_cursor``. Omit for the first page; reuse the SAME repo_id/status filters across pages.
statusNoFilter by status: QUEUED, READY, RUNNING, SUCCESSFUL, WAITING_INPUT, or FAILED.
repo_idNoFilter to one repository (repo_id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 behavioral burden and does well: it discloses the return envelope shape, the pagination contract (pass next_cursor back; None means end), and that entries are summaries rather than full results. It does not mention auth scoping or rate limits, 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.

Conciseness4/5

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

Front-loads the purpose, then the return contract, then the pagination hint and sibling pointer, with no filler. The return-shape sentence is necessary given there is no output schema, so it 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?

No output schema exists, and the description compensates by documenting the response envelope and pagination termination condition. Combined with full schema coverage on all four optional parameters, an agent has everything needed to call it correctly.

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 limit, cursor, status, and repo_id are already documented in the schema. The description restates the next_cursor round-trip but adds no new semantics such as filter interaction rules.

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 caller's recent agent runs') plus ordering ('newest first'), which lets an agent distinguish it from get_job_status and the scheduled-jobs listing. The scope ('caller's') is explicit.

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?

Explicitly routes agents to get_job_status when they need a single job's full result text, and explains that this tool returns only lean summaries. It lacks explicit when-not guidance versus list_scheduled_jobs, but the listing purpose is clear.

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