Skip to main content
Glama

Get project job log

gitlab_get_project_job_log
Read-onlyIdempotent

Retrieve the log for a specific GitLab project job using project and job IDs to inspect CI/CD output and troubleshoot failed or completed jobs.

Instructions

Get the log of a specific job within a project.

Args: **kwargs: Additional parameters for the request (e.g., project_id, job_id).

Returns: Response: A wrapper containing the original response and the raw job log data.

Raises: MissingParameterError: If the project_id or job_id is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
pageNo
scopeNo
job_idNo
per_pageNo
max_pagesNo
project_idNo
pipeline_idNo
total_pagesNo
api_parametersNo
include_retriedNo
job_variable_attributesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds value by naming the failure modes (MissingParameterError, ParameterError) and noting the return is a wrapper around the raw log, but it says nothing about pagination behavior (page/per_page/max_pages exist), log truncation, or whether the log is streamed/complete after job completion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and clear, and the Returns/Raises sections carry some signal. However the 'Args: **kwargs' block is pure boilerplate that displaces the parameter documentation the description actually needs.

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?

For an 11-parameter tool with 0% schema coverage and no output schema, the description is far too thin: nine parameters are unexplained, and pagination semantics — the most likely source of incorrect invocation for a log fetch — are absent.

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% across 11 parameters, so the description must compensate and does not. It only mentions project_id and job_id as example kwargs, leaving page, per_page, max_pages, total_pages, scope, include_retried, pipeline_id, api_parameters and job_variable_attributes completely undocumented anywhere.

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 and resource: 'Get the log of a specific job within a project.' This differentiates it implicitly from gitlab_get_project_job (job metadata) and gitlab_get_project_jobs (job list), though it never names those siblings explicitly.

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 guidance on when to use this versus gitlab_get_project_job, gitlab_get_pipeline_jobs, or gitlab_get_project_jobs, and no prerequisites are stated. The agent must infer that this is the log-retrieval variant purely from the tool name.

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