Skip to main content
Glama

gitlab_list_pipelines

Read-onlyIdempotent

List recent GitLab project pipelines to monitor status, filter by branch, status, or source, and retrieve pipeline details for triage or analysis.

Instructions

List recent pipelines of a project, newest first.

Use for triage ("show failed pipelines on master"), release readiness checks, or feeding pipeline IDs into follow-up calls. Read-only and idempotent.

Returns PipelinesListOutput: project, count, pagination and pipelines[] (each PipelineSummary). The tool result additionally carries a markdown table in its text content.

Examples: - "Show failed pipelines on master" → status='failed', ref='master' - "Last nightly schedule runs" → source='schedule' - "Second page of pipelines" → page=2 - Don't use when you have a specific pipeline ID — use gitlab_get_pipeline instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoFilter by branch or tag name (e.g. 'master').
statusNoFilter by pipeline status.
sourceNoFilter by pipeline trigger source.
per_pageNoItems per page (1–100).
pageNo1-based page number.
project_pathNoGitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
countYes
paginationYes
pipelinesYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description reinforces this with 'Read-only and idempotent' but adds valuable context about the return format ('Returns PipelinesListOutput... The tool result additionally carries a markdown table in its text content'), which isn't covered by annotations. It doesn't contradict annotations.

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

Conciseness5/5

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

The description is efficiently structured: purpose statement first, usage guidelines second, return format third, and examples last. Every sentence adds value—no fluff. It's appropriately sized for a tool with 6 parameters and rich functionality.

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?

Given the tool's complexity (6 parameters, pagination, filtering), the description is complete. It covers purpose, usage, behavioral traits (reinforcing annotations), and provides concrete examples. With an output schema present, it appropriately explains the return structure without redundancy. It addresses all necessary context for an agent to use the tool effectively.

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 description coverage is 100%, so the schema fully documents parameters. The description adds practical meaning through examples that show how parameters combine in real use cases (e.g., 'status="failed", ref="master"' for triage), enhancing understanding beyond the schema's technical definitions.

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 description clearly states the verb ('List') and resource ('recent pipelines of a project') with specific ordering ('newest first'). It distinguishes from siblings like 'gitlab_get_pipeline' by emphasizing listing vs. getting a specific pipeline, and from other list tools by focusing on pipelines specifically.

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?

The description provides explicit guidance on when to use ('for triage, release readiness checks, or feeding pipeline IDs into follow-up calls') and when not to use ('Don't use when you have a specific pipeline ID — use gitlab_get_pipeline instead'). It names a clear alternative tool for specific cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mshegolev/gitlab-ci-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server