Skip to main content
Glama

list_runs

Read-only

List your recent runs started through MCP on the cloud server, newest first. Use it to answer questions such as "show my most recent runs" or to find a run_id for get_run. Each run has run_id, automation_id, automation_name, target, status, terminal, created_at, started_at, finished_at, and for failed, stopped, or unknown runs a short errorMessage and, as in get_run, an errorCode when the status has one (RESULT_UNKNOWN for unknown). Status is queued, running, succeeded, failed, stopped, or unknown. Outputs and files are not included; call get_run with a run_id for them. When next_cursor is returned, pass it as cursor to read older runs; a page can be empty or short while next_cursor is present, so keep paging until next_cursor is absent. Errors can include INVALID_INPUTS, BUSY (retryable), or UNAUTHORIZED.

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
limitNoMaximum number of runs to return. Defaults to 10, with a maximum of 50.
cursorNoThe next_cursor value from a previous list_runs result, to read older runs.
statusNoOnly list runs with this status.
automation_idNoOnly list runs of this automation, using the id returned by list_automations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so safety is established. The description adds real behavioral context beyond that: newest-first ordering, the enumeration of return fields including errorMessage/errorCode, the status vocabulary, and the named error codes INVALID_INPUTS, BUSY (retryable), UNAUTHORIZED. That is meaningful added value, though the pagination caveat is the only one with operational consequence.

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?

Front-loaded with the purpose and ordering, then usage, then return shape, then pagination, then errors, which is a sensible priority order. It is dense and slightly run-on in the middle where the field list is strung together, but with no output schema that list carries weight.

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?

There is no output schema, and the description compensates by enumerating the returned fields, the status values, and the error codes the caller may encounter. Combined with the explicit pagination termination rule and the pointer to get_run for outputs and files, an agent has everything needed to call and page this tool 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 100%, so each parameter is already documented, and the description mostly complements rather than duplicates it. It does add non-obvious meaning: that the page can be empty or short while next_cursor is present, so the agent must keep paging until it is absent, which is not inferable from the cursor schema. It adds less for limit, status, and automation_id beyond what the schema states.

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 your recent runs"), the scope ("started through MCP on the cloud server"), and the ordering ("newest first"). The sibling get_run is named explicitly with what it is for, so the agent can separate listing from fetching a single run without opening either schema.

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

Usage Guidelines5/5

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

Gives concrete triggering questions ("show my most recent runs") and a second concrete use case, finding a run_id for get_run. It also draws the boundary against get_run ("Outputs and files are not included; call get_run with a run_id for them"), so both when-to-use and when-not are covered.

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