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

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. Callers below Administrator, other than Lead Builders, are scoped to themselves regardless of this value, unless the request comes from a dashboard
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. Changed4 schema fields changed
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / offset / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "not_started",
      -  "pending",
      -  "starting",
      -  "running",
      -  "waiting",
      -  "completed",
      -  "failed",
      -  "interrupted",
      -  "stopped",
      -  "needs_attention"
      -]New value: +[
      +  "not_started",
      +  "pending",
      +  "starting",
      +  "running",
      +  "waiting",
      +  "completed",
      +  "failed",
      +  "interrupted",
      +  "expired",
      +  "stopped",
      +  "needs_attention"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"Filter to runs owned by this user; non-superadmin callers are scoped to themselves regardless of this value"New value: +"Filter to runs owned by this user. Callers below Administrator, other than Lead Builders, are scoped to themselves regardless of this value, unless the request comes from a dashboard"
  3. 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"
  4. 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."
  5. 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."
  6. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower, and the description still adds genuinely new context: runs carry messages, evaluation data, and queue metadata 'where available,' and count_only short-circuits row selection with a 'data: []' plus total shape. With no output schema, this return-content disclosure is the only source of that information, though the cursor/offset guidance partly duplicates the schema.

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?

Five sentences, front-loaded with purpose and scope before filtering and pagination detail, with no filler. The count_only sentence restates schema content, but the text stays tight and each sentence is short.

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?

For a 20-parameter read tool with 95% schema coverage and no output schema, the description covers purpose, scope, return content, and pagination strategy adequately. It leaves role-based scoping (user_id) to the schema and does not enumerate the full filter set, but nothing critical for correct invocation is missing.

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 all 20 parameters in depth; the description only gestures at filters ('agent, user, queue, status, etc.') and highlights count_only. That adds little beyond what the structured fields provide, so the 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?

States a specific verb and resource ('List runs for the current team') and gives a scope boundary ('current team') that implicitly separates it from listOrgRuns and listCaseRuns. It never explicitly names or routes to those siblings, so an agent must infer the distinction from the scope phrase alone.

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?

The description offers a capability list ('filtering by agent, user, queue, status, etc.') and a pagination strategy ('follow next_cursor rather than raising offset'), which is real usage guidance. But it gives no when-to-use/when-not-to-use guidance relative to siblings like listOrgRuns, listCaseRuns, or getRun, leaving selection to inference.

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