Skip to main content
Glama

Get Pipeline Job Output

gitlab_get_pipeline_job_output
Read-onlyIdempotent

Retrieves a bounded CI/CD job trace window or searches it for matching lines with context, so you can inspect GitLab pipeline job output without loading the full log.

Instructions

Get a bounded, untrusted job trace window (at most 1,000 lines from the end), or pass search (a substring or list of substrings, case-insensitive by default) to return only matching lines with context from the loaded log.

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": {
      "job_id": "<job_id>"
    },
    "name": "gitlab_get_pipeline_job_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
job_idYes
offsetNo
searchNo
project_idNo
max_matchesNo
context_linesNo
case_sensitiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.0
    • addedInput schema / properties / case_sensitive
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / context_lines
      Added value: +{
      +  "maximum": 20,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_matches
      Added value: +{
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 10,
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  ]
      +}
  2. First observedv1.6.1

TDQS

B3.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/openWorld, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the result is capped at 1,000 lines taken from the END of the log, matching is case-insensitive by default, and the content is explicitly flagged as untrusted -- a meaningful security cue for an agent. It omits pagination semantics for offset/limit and what happens when no lines match.

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?

A single dense sentence with no filler, and the most important constraint (bounded tail window) is front-loaded before the search alternative. The nested parentheticals make it slightly hard to parse, 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?

For a read-only retrieval with no output schema, the description does state what comes back (log lines, or matching lines with surrounding context). However, with eight parameters at 0% schema coverage and no output schema, the silent offset/max_matches semantics and the untrusted-content handling advice leave real gaps an agent could stumble on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 carry parameter meaning, and it only partly does: it explains search (substring or list of substrings, case-insensitive by default), implies the line cap for limit, and mentions context lines. job_id, project_id, offset, max_matches, and the explicit case_sensitive toggle are never addressed, leaving four of eight parameters undocumented anywhere.

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?

The description gives a specific verb and resource: it retrieves a job trace/log window for a pipeline job, and it states the two operating modes (bounded tail window vs. filtered search). It implicitly separates itself from metadata siblings like gitlab_get_pipeline_job and artifact siblings, but never names an alternative tool outright.

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?

It conveys the two usage modes -- plain call for the last 1,000 lines, or pass search to get matching lines with context -- which is implied guidance on when to use each. It gives no explicit when-not conditions, no prerequisites (permissions, project scoping), and no pointer to a sibling when the agent actually wants job metadata or artifacts instead.

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

Deploy Server

Other Tools