Skip to main content
Glama

Get job artifact

gitlab_get_job_artifact
Read-only

Download a GitLab CI artifact by job ID. Retrieve a specific file like a screenshot or coverage badge as a viewable image, or fetch the entire archive.

Instructions

Downloads a CI artifact. A single image path (Playwright/Cypress screenshot, coverage badge) comes back as a viewable image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
artifact_pathNoPath inside the artifacts archive, e.g. `screenshots/login.png`. Omit to download the whole archive.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds useful behavioral context by explaining that a single image path returns a viewable image, hinting at response format. It does not discuss error handling or auth, but with minimal annotations this extra context earns a solid score.

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?

Two sentences, 22 words, with the primary action front-loaded. Every word earns its place; no fluff or repetition.

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?

For a simple read-only artifact download, the description is nearly complete with good annotations and schema coverage. It briefly mentions image return behavior, but could be more explicit about non-image artifact returns (e.g., archive download). Overall, sufficient for an agent to invoke correctly.

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?

The schema already describes project_id and artifact_path well, providing 67% parameter coverage. The description does not add new parameter-specific details beyond the schema, though its artifact path examples (screenshots) implicitly reinforce what artifact_path accepts. Baseline 3 is appropriate.

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 states 'Downloads a CI artifact' with a direct verb and resource, clearly distinguishing it from sibling tools like gitlab_get_job_log or gitlab_job_action. The addition of the image path example (Playwright/Cypress screenshot, coverage badge) specifies a common use case, further clarifying scope.

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

Usage Guidelines4/5

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

The description implies when to use the tool: to download CI artifacts, especially image-like artifacts. It does not explicitly mention alternatives or when not to use it, but the context is clear enough for an agent to differentiate from job log retrieval or job control.

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/amalychev/gitlab-mcp'

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