List runs
list_runsList and filter runs across every LastPing monitor, including OpenTelemetry-only traces, with outcomes, costs, errors, and pagination to debug agent, cron, and CI/CD activity.
Instructions
Requires the read scope or higher. Lists runs across every monitor in the project, newest started first, including runs that exist only as OpenTelemetry traces (traced: true). Each run carries check_id, check_name, rid, title, outcome, started_at, ended_at, duration_ms, step_count, exit_code, its incident, and when traced span_count, tokens, cost_usd and cost_source (client, estimated or mixed); plus agent_id, agent_name, source_name, multi_trace, project (the Claude Code session's folder), receiving_spans (spans in the last 2 minutes), in_hook_session, is_test (excluded from counts). failure_cause is 'upstream' when the run ended on the model provider's API error (pages after 3 in a row, or failure_threshold when higher; upstream_error names it) or 'assertion' when a success failed an output assertion or declared expectation. outcome: succeeded, failed, cancelled, blocked, running or unfinished (started, never ended within max_runtime_s or 24h; never pages). Filters combine and also narrow counts (per-outcome totals). Pages with next_cursor. untrusted_fields names the data fields LastPing did not write (job output, exporter data or user-supplied names).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only runs whose run id (rid) contains this text. | |
| agent | No | Only runs of this agent (agent UUID or slug). | |
| limit | No | Runs per page (default 20, max 100). | |
| model | No | Only runs that called this model, by exact model id. | |
| since | No | RFC 3339 start of the window, e.g. 2026-09-01T00:00:00Z. Default 7 days ago; at most 90 days back. | |
| until | No | RFC 3339 end of the window. Default now. | |
| cursor | No | next_cursor from the previous page, verbatim. | |
| traced | No | true: only runs that hold spans. Omitted or false: every run. | |
| monitor | No | Only this monitor's runs (monitor UUID). | |
| outcome | No | Only runs with this outcome. | |
| project | No | Only runs whose Claude Code hook start carried this project label: the name of the folder the session worked in. | |
| trace_id | No | Only the run a trace became: 8 to 32 hex digits of its trace id. Finds runs made from a trace with no run id, not runs that named their own. | |
| has_error | No | true: only runs with a span that reported an error. false: only runs without one. | |
| operation | No | Only runs with a span whose name starts with this text. | |
| dependency | No | Only runs that called this dependency, by its exact name as get_agent_dependencies reports it (e.g. api.github.com). | |
| min_cost_usd | No | Only runs whose cost is at least this many US dollars, as a decimal string, e.g. "0.25". | |
| min_duration_ms | No | Only runs that took at least this many milliseconds. |