Skip to main content
Glama

gitlab_list_job_artifacts

Read-onlyIdempotent

Lists files in a GitLab CI/CD job's artifact archive with each file's relative path, type, and size, so you can inspect what the job produced.

Instructions

List relative paths, types, and sizes of files in one job's artifacts archive.

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>",
      "project_path": "<project_path>"
    },
    "name": "gitlab_list_job_artifacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesPositive numeric GitLab job ID.
project_pathYesGitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted.

Output Schema

NameRequiredDescriptionDefault
countYes
job_idYes
sourceYes
projectYes
artifactsYes
unsafe_entries_omittedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.7

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered. The description usefully adds that this returns metadata (paths, types, sizes) rather than artifact bytes, but says nothing about behavior when a job has no artifacts, when artifacts have expired, or about result size/pagination limits.

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?

One sentence, front-loaded with the verb and resource, with the returned fields stated compactly. Nothing is redundant or buried.

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

Completeness4/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 needn't be spelled out, and annotations cover the safety profile; the description only needs to convey scope and shape of the result, which it does. The remaining gap is edge-case behavior (empty or expired artifacts, truncation) for what is otherwise a simple two-parameter read tool.

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 100%, with job_id and project_path fully documented including the legacy default-project fallback, so the baseline is 3. The description adds no further meaning about either parameter beyond confirming the scope is a single job.

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?

States a specific verb (List) plus the resource (files in one job's artifacts archive) and even enumerates the returned fields (relative paths, types, sizes). That distinguishes it in practice from gitlab_get_job_artifact (content retrieval) and gitlab_get_job_log, but it never names or contrasts with any sibling explicitly.

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?

Usage is implied by the scope phrase 'one job's artifacts archive' and by the metadata-only framing, which suggests enumerating before fetching. There is no explicit when-to-use, when-not-to-use, or named alternative such as gitlab_get_job_artifact for downloading a single file.

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