Skip to main content
Glama

List pipeline runs

list_pipeline_runs
Read-onlyIdempotent

The project's pipeline runs (jobs), PAGED, newest first: status, pipeline, number, branch/commit, who started it and how. Response: items and totalCount. Without page/size only the FIRST 25 come; that is not all runs: the next page is the same call with page+1 while (page+1)*size < totalCount. size at most 100. Steps and logs of one run: get_pipeline_run; which pipelines are declared at all: list_pipelines

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectKey": "<projectKey>"
    },
    "name": "list_pipeline_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOnly runs of this branch or commit
pageNoPage number, ZERO-based (default 0)
sizeNoRuns per page, from 1 to 100 (default 25)
triggerNoWhat started the run, ANY of the listed: PUSH by a push; MANUAL by hand (including run_pipeline); CODE_REVIEW_OPENED / CODE_REVIEW_CLOSED by opening and closing a merge request
initiatorNoUUIDs of who started them, ANY of the listed. Your id: whoami
projectKeyYesProject key, e.g. C4SPACE. Also accepts org/KEY (e.g. code4space/C4SPACE), as in a new-form web address; org (case-insensitive) must be your organization's slug or a former slug of it, otherwise the call is refused
pipelineNameNoOnly runs of the pipeline with this name (names: list_pipelines)
repositoryNameNoOnly runs of this repository

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description spends its budget on the non-obvious trait: a default call returns only the first 25 of totalCount, so a naive single call silently under-reports. That truncation warning plus the response shape (items, totalCount) is exactly the behavior annotations cannot convey. It stops short of permissions or error semantics, which the projectKey schema text partly covers.

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 resource and scope, then pagination trap, then sibling routing — a sensible order with no filler sentences. The telegraphic style ("PAGED", "only the FIRST 25 come") trades a little readability for density, but every clause carries information.

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?

For an 8-parameter read-only list tool with no output schema, the description covers scope, ordering, return shape, default/maximum page size, the end-of-pagination condition, and the two obvious alternative tools. Nothing an agent needs in order to call it correctly and exhaust the result set 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 coverage is 100%, so the per-parameter baseline is 3. The description reinforces the key semantics (default 25, size max 100, zero-based paging loop) but adds nothing new about ref, trigger, initiator, pipelineName, or repositoryName beyond what their schema descriptions already state.

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?

"The project's pipeline runs (jobs), PAGED, newest first" gives a specific resource, scope (project), ordering, and pagination posture, then enumerates the fields exposed (status, pipeline, number, branch/commit, initiator). It explicitly distinguishes itself from the two nearest siblings by naming get_pipeline_run for a single run and list_pipelines for pipeline declarations.

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?

It routes the agent explicitly: details/logs of one run go to get_pipeline_run, declared pipelines go to list_pipelines, and this call is for enumerating runs. It also states the exact condition for paginating again ((page+1)*size < totalCount), so the agent knows both when to use the tool and when to repeat it.

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.