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 its project ID and job ID. Use it to inspect build output, debug failures, and review job execution details.

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_get_project_job_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
scopeNo
job_idNo
per_pageNo
max_pagesNo
project_idNo
pipeline_idNo
total_pagesNo
include_retriedNo
job_variable_attributesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv27.3.20
    • removedInput schema / properties / api_parameters
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
  2. First observedv27.3.13

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds that failures raise MissingParameterError or ParameterError and that the return is a wrapper containing raw log data, which is genuine extra context. It says nothing about pagination, log truncation, or size limits, despite page/per_page/max_pages/total_pages parameters.

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

Conciseness2/5

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

The single useful sentence is front-loaded, but it is followed by a stub 'Args: **kwargs' block that conveys nothing and a boilerplate Returns/Raises block. The documentation is mostly template filler rather than information an agent can act on.

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 a 10-parameter tool with no output schema and no schema descriptions, the definition is far too thin: pagination controls, retry filtering, scope, and job variable attributes are unexplained, and the shape of the returned log data is only vaguely gestured at. The error list is the only substantive addition, which is insufficient for this complexity.

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 10 parameters, and the description compensates for almost none of it — only project_id and job_id are named, and only in the Raises section, with no explanation of their types or semantics. The Args section is generic **kwargs boilerplate, leaving scope, page, per_page, max_pages, total_pages, include_retried, pipeline_id, and job_variable_attributes entirely undocumented.

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 first sentence states a specific verb and resource: "Get the log of a specific job within a project." An agent can tell this retrieves job logs rather than job metadata. However, it does not distinguish itself from close siblings such as gitlab_get_project_job, gitlab_get_project_jobs, or gitlab_graphql_ops_get_job, so sibling differentiation is absent.

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?

There is no guidance on when to use this tool versus the several sibling tools that fetch job information, nor any prerequisites (permissions, whether the job must be finished for a log to exist). The only conditional content is an error list, which does not help the agent choose the tool.

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