Skip to main content
Glama

List agent runs

list_agent_runs
Read-onlyIdempotent

List the agent runs, live and finished, in the caller's accessible projects, newest first. Each run is one agent in its own sandbox. Returns id (the run's sandbox id), issueId, role, harness, status, instance type, and latest CPU/memory/disk metrics. When more runs match, nextCursor is set: pass it back as cursor, with the same filters, for the next page.

Input Schema

NameRequiredDescriptionDefault
roleNoOnly the runs of this agent role
limitNoMax results (default 50). Narrow with projectId, issueId, role or status before raising it.
cursorNonextCursor from the previous page; omit for the newest runs
statusNoFilter by how the run stands: running, completed (finished), stopped (ended on purpose before it finished), failed, or stale (closed without a report)
issueIdNoOnly the runs of this mission, by its issue id, e.g. SHIP-412
projectIdNoFilter to one project id

Output Schema

NameRequiredDescriptionDefault
dataYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive operation, so safety is covered. The description adds genuinely useful context beyond that: the result is auth-scoped to the caller's accessible projects, ordering is newest-first, and pagination is driven by a nextCursor that must be replayed with the same filters.

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 tight sentences with no filler: scope and ordering first, then the unit of a run, then the return shape, then pagination. Every sentence carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the return-value enumeration is mildly redundant, and the remaining gap is routing guidance versus sibling get/list tools. Otherwise the description covers scope, ordering, filtering intent, and the pagination contract needed to call this 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 description coverage is 100%, so baseline is 3, and the description goes slightly beyond by explaining the cursor chaining contract (pass nextCursor back as cursor with the same filters) rather than just restating the field. It doesn't otherwise add syntax for role/status enums or the projectId/issueId identifiers, which are already well documented in the schema.

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 agent runs), plus scope (caller's accessible projects) and ordering (newest first), which distinguishes it from get_agent_run and list_scheduled_task_runs. The extra sentence defining a run as one agent in its own sandbox removes any ambiguity about the unit of listing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the description covers what is listed and how pagination works, but never says when to prefer this over get_agent_run for a single run or how it relates to list_scheduled_task_runs. An agent can infer the listing role from the name alone, so this is adequate but not prescriptive.

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.