Skip to main content
Glama

get_job_artifact_file

Download and read a specific file from a GitLab job's build artifacts archive by project, job, and artifact path, with a max length limit.

Instructions

Download and read a specific file from a job's build artifacts archive

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesNumeric ID of the job that generated the artifact
max_lengthYesMaximum character length to return (default: 10000, 0 for unlimited)
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.
artifact_pathYesRelative path to the file in the artifact archive (e.g. 'coverage/report.json' or 'dist/index.html')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a read-only download but says nothing about truncation behavior (max_length), binary vs text handling, encoding, or what happens on a missing path. For a no-annotation tool this is a meaningful gap.

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 front-loaded sentence with no waste. It is efficient, though it is arguably too terse given the missing behavioral context.

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?

With 100% schema coverage the inputs are well covered, but there is no output schema, so the description should ideally explain what is returned (raw file content, truncated text) and the effect of max_length. As written it is 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 100%, so the schema already documents all four parameters including the artifact_path example and max_length default. The description adds no parameter meaning beyond the schema, so the baseline 3 is appropriate.

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 states a specific verb+resource: 'Download and read a specific file from a job's build artifacts archive'. The scoping ('job's build artifacts archive') implicitly distinguishes it from get_file_contents (repo files) and get_job_trace, though it doesn't explicitly name a sibling.

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?

No when-to-use guidance, no prerequisites, and no alternatives are mentioned. The agent must infer that this is the right tool when a file lives inside a job's artifact archive rather than the repository.

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