Skip to main content
Glama

get_job_log

Read-only

Retrieve the last 2000 characters of a CI job log to inspect job output and troubleshoot issues.

Instructions

Get the log output of a CI job (last 2000 chars).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID
job_idYesJob ID
Behavior4/5

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

The description adds the truncation limit (last 2000 chars) beyond the readOnlyHint annotation, which already signals non-destructive behavior. This additional detail helps the agent understand the output limitation, though it could mention if the log is text or a URL.

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?

A single sentence of 9 words is maximally concise. It front-loads the core function and includes the key constraint (last 2000 chars) without extraneous detail.

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 and the presence of annotations and a complete schema, the description is nearly complete. However, it lacks any mention of the return format (plain text, JSON, etc.), which would be helpful for an agent to interpret the output.

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?

The input schema has 100% description coverage for both parameters, so the description adds no extra meaning beyond what the schema provides. Baseline score of 3 is appropriate.

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 tool fetches the log output of a CI job, including the truncation to the last 2000 characters. This specific verb-resource combination distinguishes it from sibling tools like get_pipeline or get_merge_request, which address different aspects of CI.

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 usage guidelines are provided. The description does not indicate when to use this tool versus alternatives, nor does it mention prerequisites (e.g., job must be completed) or when not to use it.

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/wanadev/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server