Skip to main content
Glama

List merge request commits

list_merge_request_commits
Read-onlyIdempotent

Retrieve all commits contained in a GitLab merge request by specifying the project and merge request IID. Includes pagination support for extensive commit histories.

Instructions

List commits contained in a GitLab merge request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
projectYesGitLab project ID or full path such as group/project.
per_pageNo
merge_request_iidYesProject-scoped internal ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior2/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds no extra behavioral details (e.g., side effects, rate limits, return format). It does not contradict annotations, but it fails to provide additional 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, concise sentence with no redundant information. It is well-structured and easy to read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the purpose is clear, the description lacks details about output (e.g., commit fields returned, pagination) and does not address potential edge cases. It is adequate for a simple listing but could be more complete given the existence of multiple parameters.

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 schema provides descriptions for only project and merge_request_iid (50% coverage). The description does not explain page or per_page parameters, nor does it add context about how they interact or typical values. It adds no meaning beyond the schema.

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 (list), the resource (commits), and the scope (merge request). It distinguishes from sibling tools like list_commits (which is repository-wide) and get_merge_request (which returns the MR itself).

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 provides no guidance on when to use this tool over alternatives, such as list_commits or list_merge_request_diffs. It lacks context about typical use cases or prerequisites (e.g., needing an MR IID).

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