Skip to main content
Glama

gl_get_pipeline

Fetch a single GitLab CI pipeline by project path and pipeline ID to inspect its status, stages, and job details.

Instructions

Get one GitLab CI pipeline. project is the path, for example group/app.

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": {
      "project": "<project>",
      "pipeline_id": "<pipeline_id>"
    },
    "name": "gl_get_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
pipeline_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and discloses almost nothing: no mention of required token scopes or permissions, no behavior for a nonexistent or inaccessible pipeline, no note on pagination or inclusion of jobs. The only behavioral hint is that it fetches exactly one pipeline.

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?

Two short sentences with no filler, and the core purpose is front-loaded before the parameter note. It could be slightly tighter but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, for a two-parameter lookup tool with zero annotation coverage, missing auth requirements, failure behavior for bad ids, and any pipeline_id format guidance leave the definition only minimally complete.

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 description coverage is 0%, so the description must compensate. It does add real meaning for project by giving the format ("group/app" path rather than numeric ID), which the bare schema does not convey, but pipeline_id is left entirely unexplained, so compensation is only partial.

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?

"Get one GitLab CI pipeline" gives a specific verb and resource, and "one" signals single-resource retrieval as opposed to the list-style sibling gl_list_failed_pipelines. It stops short of naming an alternative outright, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over gl_list_failed_pipelines or how to obtain a pipeline_id in the first place. The single-resource phrasing implies the use case, but no conditions, prerequisites, or exclusions are stated.

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