Skip to main content
Glama

Get Job Artifact File Local

gitlab_get_job_artifact_file_local

Download and save a single file from a GitLab job artifacts archive to a local directory for local inspection or processing without extracting the entire archive.

Instructions

Save one file from a job artifacts archive to a local directory.

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>",
      "artifact_path": "<artifact_path>"
    },
    "name": "gitlab_get_job_artifact_file_local"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
local_pathNo
project_idNo
artifact_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • removedInput schema / properties / local_path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / local_path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.9/5.0
Behavior2/5

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

The description accounts for the non-read-only, open-world framing by saying it saves to a local directory, which is consistent with readOnlyHint=false and openWorldHint=true. However, for a write-to-disk tool with idempotentHint=false it says nothing about overwriting existing files, whether parent directories are created, or what local_path being nullable means (default location), all of which materially affect how an agent should call it.

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 tightly-worded sentence with no filler and the key distinguishing detail ('one file ... local directory') front-loaded. It is efficient rather than bloated, though its brevity tips into under-specification.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, no schema descriptions, no output schema, and a side effect on the local filesystem, this tool needs considerably more than one sentence. Nothing is said about file overwrite policy, destination defaults, or failure modes when the artifact path does not exist.

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% for 4 parameters, so the description must carry the meaning and it largely does not. 'artifact_path' is only obliquely gestured at by 'one file from a job artifacts archive' and 'local_path' only by 'a local directory', while project_id and the null-handling of local_path are completely unaddressed.

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 (Save) and resource (one file from a job artifacts archive) plus the destination (a local directory). The phrase 'one file' implicitly separates it from whole-archive downloads like gitlab_download_job_artifacts_local, but it never names a sibling to make the distinction explicit.

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 only implied: 'one file ... to a local directory' suggests it is the right choice when a single artifact file is needed on disk rather than streamed back. There are no explicit when-to-use/when-not conditions, prerequisites, or named alternatives such as gitlab_get_job_artifact_file.

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