Skip to main content
Glama

Get job artifact file

get_job_artifact_file
Read-onlyIdempotent

Download a file from a GitLab job artifact archive as base64, with a configurable size limit to prevent oversized transfers.

Instructions

Download one file from a GitLab job artifact archive as base64, subject to a strict size limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
projectYesGitLab project ID or full path such as group/project.
max_bytesNo
artifact_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint, so safety is covered. The description adds useful behavioral details: the file is returned as base64 and there is a strict size limit. It does not contradict annotations and provides additional value beyond the structured fields.

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?

A single sentence that is concise, front-loaded, and contains all essential information (operation, target, encoding, constraint). No wasted words.

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?

Given the tool's simplicity, the presence of an output schema, and annotations, the description is adequate. It covers what it does, the encoding, and the size limit. It could mention how to discover artifact_path or contrast with the archive tool, but these gaps are minor given the overall context.

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 only 25% (project has a description). The overall description mentions 'one file' (implying artifact_path) and 'strict size limit' (implying max_bytes), but does not explain artifact_path format, the role of job_id, or the max_bytes semantics. It provides marginal help but does not fully compensate for the low schema coverage.

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?

Description clearly states the verb (download), resource (one file from a GitLab job artifact archive), and key attributes (base64, strict size limit). It distinguishes from the sibling get_job_artifact_archive by specifying 'one file' vs. an archive.

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 usage for extracting a single file from an archive, with a size constraint. However, it does not explicitly state when to prefer this over get_job_artifact_archive or mention any exclusions/alternatives. The context is clear but not fully elaborated.

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

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