Skip to main content
Glama

List runs

list_runs
Read-onlyIdempotent

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).

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_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOnly runs whose run id (rid), monitor name or agent name contains this text. Names ignore case.
agentNoOnly runs of this agent (agent UUID or slug).
limitNoRuns per page (default 20, max 100).
modelNoOnly runs that called this model, by exact model id.
sinceNoRFC 3339 start of the window, e.g. 2026-09-01T00:00:00Z. Default 7 days ago; at most 90 days back.
untilNoRFC 3339 end of the window. Default now.
cursorNonext_cursor from the previous page, verbatim.
tracedNotrue: only runs that hold spans. Omitted or false: every run.
monitorNoOnly this monitor's runs (monitor UUID).
outcomeNoOnly runs with this outcome.
projectNoOnly runs whose Claude Code hook start carried this project label: the name of the folder that holds the git repository the session worked in, or the folder's name when it is not in a repository.
trace_idNoOnly 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_errorNotrue: only runs with a span that reported an error. false: only runs without one.
operationNoOnly runs with a span whose name starts with this text.
dependencyNoOnly runs that called this dependency, by its exact name as get_agent_dependencies reports it (e.g. api.github.com).
min_cost_usdNoOnly runs whose cost is at least this many US dollars, as a decimal string, e.g. "0.25".
min_duration_msNoOnly runs that took at least this many milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / q / description
      Previous value: -"Only runs whose run id (rid) contains this text."New value: +"Only runs whose run id (rid), monitor name or agent name contains this text. Names ignore case."
  2. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Only runs whose Claude Code hook start carried this project label: the name of the folder the session worked in."New value: +"Only runs whose Claude Code hook start carried this project label: the name of the folder that holds the git repository the session worked in, or the folder's name when it is not in a repository."
  3. Changed1 schema field changed
    • changedInput schema / properties / traced / description
      Previous value: -"true: only runs that hold spans. Omit or false for every run."New value: +"true: only runs that hold spans. Omitted or false: every run."
  4. Changed2 schema fields changed
    • changedInput schema / properties / min_cost_usd / description
      Previous value: -"Only runs whose estimated cost is at least this many US dollars, as a decimal string, e.g. \"0.25\"."New value: +"Only runs whose cost is at least this many US dollars, as a decimal string, e.g. \"0.25\"."
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Only runs whose Claude Code hook start carried this project label: the name of the folder the session worked in.",
      +  "type": "string"
      +}
  5. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only cover safety (readOnly, idempotent, non-destructive, closed-world), but the description adds the read-scope requirement, cursor pagination, the 7-day/90-day window limits, the `unfinished` timeout semantics, the failure_cause paging rule, and a warning that `untrusted_fields` marks fields LastPing did not write. That is substantial behavioral context well beyond what the structured data provides.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The key scope is front-loaded, and nearly every clause carries information, but it is delivered as one long run-on paragraph that interleaves return-field documentation, filter behavior, and outcome semantics with no separation. A reader must parse the whole block to extract the handful of operational rules.

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?

With 17 optional parameters and no output schema, the description compensates by enumerating the returned fields, their units, and the special cases (traced spans, is_test exclusion, receiving_spans window, untrusted_fields). Auth, pagination, and window defaults are all stated, so 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description still earns credit by explaining that filters both select rows and narrow per-outcome counts, and by defining outcome values and the upstream-vs-assertion distinction for failure_cause. It adds no gloss for the recount of params like min_cost_usd, dependency, or trace_id, which the schema already covers.

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?

Opens with a specific verb and resource plus scope: 'Lists runs across every monitor in the project, newest started first,' and clarifies that trace-only runs are included. Purpose is unmistakable, though it never explicitly contrasts itself with the sibling list_* tools (list_monitors, list_incidents), leaving sibling separation to be inferred from the resource name.

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 filtering semantics imply when the tool is appropriate ('Filters combine and also narrow counts'), and the window defaults (7 days, at most 90 days back) hint at the intended access pattern. However, there is no explicit when-to-use/when-not guidance and no named alternative for fetching a single run versus a list.

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.