Skip to main content
Glama

list_commits

Retrieve commit history for a GitLab project, branch, or file path via MCP-gitlab, with optional date filters.

Instructions

List commit history for a project, branch, or specific file path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
pathNoFile path to filter commit history for (e.g. 'src/auth.js')
sinceNoOnly commits after or on this date (ISO 8601 or YYYY-MM-DD)
untilNoOnly commits before or on this date
per_pageYes
ref_nameNoBranch name, tag, or commit range (default: default branch / HEAD)
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and largely fails it. 'List' implies a read operation, but the description says nothing about pagination behavior (despite page/per_page params), result ordering, rate limits, or required permissions for private projects.

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 tightly-scoped sentence with no filler, and the resource and its scoping dimensions are front-loaded. Nothing here is redundant or padded.

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 7-parameter tool with no annotations and no output schema, the one-line description leaves significant gaps: the return shape (is the history paged? sorted how?) and the safety/permission profile are undocumented. The schema covers most inputs, but the description does too little for a tool of this complexity.

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?

Schema coverage is 71%, so most parameters (path, since, until, ref_name, project_id) are already documented in the schema, and page/per_page carry sensible defaults. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

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 ('List') and resource ('commit history') plus its scoping axes (project, branch, file path), so the agent knows exactly what it returns. It does not, however, distinguish itself from the sibling get_commit, which is the natural confusion point for an agent choosing between listing history and fetching one commit.

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 offers no when-to-use guidance, no prerequisites, and never mentions the alternative get_commit. The agent must infer that this is the multi-commit view versus the single-commit sibling 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.