Skip to main content
Glama

List Runs

listRuns
Read-onlyIdempotent

List runs for the current team. Supports filtering by agent, user, queue, status, etc. Messages, evaluation data, and queue metadata are included where available. Set count_only=true to skip Run row selection and enrichment. The normal response shape is returned with data: [] and the matching total. To sweep a whole team, follow next_cursor rather than raising offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of runs per page (1-100, default 20)
sinceNoReturn runs completed at or after this ISO-8601 timestamp. Runs that have not completed are excluded.
untilNoReturn runs completed before this ISO-8601 timestamp. The upper bound is exclusive. Runs that have not completed are excluded.
cursorNoResume after the run a previous page ended on: pass the `next_cursor` that page returned, with the same filters and sort_order. Unlike offset, a cursor page does not re-read the runs before it, so a sweep does not slow down as it goes deeper; send `include_total=false` on the first page to skip the full count too. Runs created in between cannot shift a boundary already passed, so pages do not repeat or skip runs the way offset pages do. A run created or completed while a sweep is in progress can still be missed by that sweep, so to export runs continuously, poll with `since` and a short overlap and deduplicate on run id. Cannot be combined with `offset`. 400 when the value is not a valid runs cursor.
offsetNoNumber of runs to skip. Every skipped run is still read by the database, so deep offsets get slower page by page; to walk a whole team's history, page with `cursor` instead.
searchNoFull-text search across run titles and case titles
sourceNoFilter to runs created from this source (e.g. api, schedule)
statusNoFilter to runs with this status
sort_byNoField to sort by (default created_at)created_at
team_idNoDuvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here.
user_idNoFilter to runs owned by this user; non-superadmin callers are scoped to themselves regardless of this value
agent_idNoFilter to runs for this agent
digest_idNo
count_onlyNoSkip row selection and enrichment. The normal list response shape is returned with an empty row array and the matching total.false
has_issuesNoFilter on the run's latest successful evaluation: true returns only runs it flagged, false only runs it did not. Only the latest evaluation counts — an older flag does not match — and a run whose latest evaluation errored, or that has none, counts as unflagged. Omit to return both.
sort_orderNoSort direction (default desc)desc
automation_idNoFilter to runs that ran under this automation. A run keeps the automation it was created under, even after its agent moves to another automation
case_queue_idNoFilter to runs associated with this queue
include_totalNoWhether to return `total`, the count of every matching run. Counting walks every match, so it costs far more than the page itself on a large team. Defaults to true on a first page and false on a `cursor` page, where `total` is null unless this is true. Implied by `count_only`.
issue_severityNoIf set, only return runs whose latest successful evaluation has at least one failing rubric with this severity (critical | medium | low). Implies has_issues; legacy evaluations without severity companion fields do not match this filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / automation_id / description
      Previous value: -"Filter to runs whose agent belongs to this automation"New value: +"Filter to runs that ran under this automation. A run keeps the automation it was created under, even after its agent moves to another automation"
  2. Changed3 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Resume after the run a previous page ended on: pass the `next_cursor` that page returned, with the same filters and sort_order. Unlike offset, a cursor page does not re-read the runs before it, so a sweep does not slow down as it goes deeper; send `include_total=false` on the first page to skip the full count too. Runs created in between cannot shift a boundary already passed, so pages do not repeat or skip runs the way offset pages do. A run created or completed while a sweep is in progress can still be missed by that sweep, so to export runs continuously, poll with `since` and a short overlap and deduplicate on run id. Cannot be combined with `offset`. 400 when the value is not a valid runs cursor.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / include_total
      Added value: +{
      +  "description": "Whether to return `total`, the count of every matching run. Counting walks every match, so it costs far more than the page itself on a large team. Defaults to true on a first page and false on a `cursor` page, where `total` is null unless this is true. Implied by `count_only`.",
      +  "enum": [
      +    "true",
      +    "false"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / offset / description
      Previous value: -"Number of runs to skip"New value: +"Number of runs to skip. Every skipped run is still read by the database, so deep offsets get slower page by page; to walk a whole team's history, page with `cursor` instead."
  3. Changed1 schema field changed
    • changedInput schema / properties / has_issues / description
      Previous value: -"If true, only return runs that have evaluation issues"New value: +"Filter on the run's latest successful evaluation: true returns only runs it flagged, false only runs it did not. Only the latest evaluation counts — an older flag does not match — and a run whose latest evaluation errored, or that has none, counts as unflagged. Omit to return both."
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the read-only and idempotent annotations, the description discloses what is included ('Messages, evaluation data, and queue metadata'), the effect of count_only, and pagination trade-offs. Some of this overlaps with schema descriptions for cursor/offset, but it still adds useful behavioral context.

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?

The description is front-loaded with purpose and then features in a logical order. It is reasonably concise, though the cursor advice partially repeats the schema's cursor description.

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?

Given 20 parameters, no output schema, and annotations covering safety, the description covers key behaviors like data inclusion, count_only, and pagination strategy. It leaves authentication and error details to the schema, which is acceptable.

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 95%, so the schema already documents nearly all parameters in detail. The description only mentions filtering categories and count_only, adding little beyond the structured fields, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('List runs') and scopes it to 'the current team'. This distinguishes it from sibling listOrgRuns (org-wide) and listCaseRuns (case-scoped), though it does not name those alternatives explicitly.

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 provides clear context on filtering capabilities ('by agent, user, queue, status, etc.') and pagination guidance ('follow next_cursor rather than raising offset'). However, it does not state when to prefer this tool over listOrgRuns or listCaseRuns.

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