Skip to main content
Glama

Get GitLab job log

get_job_log
Read-onlyIdempotent

Fetch the plain-text trace for a GitLab CI job, returning up to 5 MB of logs per call. Use this when you need to view or debug a specific job's output without downloading the full artifact.

Instructions

Retrieve the plain-text trace for a GitLab CI job, up to the configured response safety limit.

Input Schema

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

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?

The description adds useful behavioral information beyond the annotations. It explicitly states the output format ('plain-text trace') and the truncation behavior ('up to the configured response safety limit'). Since annotations already cover read-only and idempotency, the description's extra details about the response size and format enhance transparency.

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?

The description is a single, succinct sentence that states the core functionality and a key constraint. There is no irrelevant information or redundancy, making it appropriately sized and well-structured.

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 simplicity of the tool (a straightforward retrieval) and the presence of an output schema (not shown but implied by the description), the description is sufficiently complete. It explains the purpose and the truncation limit, which are the main aspects an agent needs to know. It does not elaborate on error handling or edge cases, but that is not necessarily required for this type of tool.

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?

The description does not explain any of the parameters (job_id, project, max_bytes). The schema provides only types and constraints, but lacks descriptions. The parameter names are self-explanatory to some extent, but the description offers no additional meaning, especially for `max_bytes` (which is only explained as a limit). Since schema coverage is low and the description does not compensate, it fails to add value.

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?

The description clearly states the action ('Retrieve') and the resource ('the plain-text trace for a GitLab CI job'), which precisely identifies what the tool does. It also distinguishes itself from sibling tools like `get_job` (which fetches job metadata) or `get_job_artifact_file` (which retrieves artifacts) by specifying the log trace.

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?

The description lacks explicit guidance on when to use this tool versus alternatives. It does not mention when not to use it, nor does it compare with other job-related tools (e.g., `get_job`). The phrase 'up to the configured response safety limit' hints at a truncation limit but does not provide context on typical use cases or distinguish it from other log retrieval methods.

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