Skip to main content
Glama
rokrokss
by rokrokss

list_merge_request_diffs

Fetch merge request diffs by specifying either the merge request IID or source branch, with pagination and optional unified diff format.

Instructions

List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1)
unidiffNoPresent diffs in the unified diff format. Default is false. Introduced in GitLab 16.5.
per_pageNoNumber of items per page (max: 100, default: 20)
project_idNoProject ID or complete URL-encoded path to project
source_branchNoSource branch name
merge_request_iidNoThe IID of a merge request

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.0.35

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It adds modest context by mentioning pagination support and an input constraint, but it does not describe pagination defaults, unified diff behavior, precedence when both identifying parameters are supplied, or the return format. The parameter-name mismatch further reduces transparency about what the tool expects.

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

Conciseness4/5

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

The description is a single sentence that front-loads the verb and resource, with no filler. The parenthetical is concise but slightly inaccurate due to parameter naming, which prevents a perfect score. Overall it is well-sized and structurally clear.

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?

With six parameters, zero required fields, no output schema, no annotations, and several closely related siblings, the description is insufficiently complete. It does not explain the return shape, which parameters actually matter beyond the misnamed pair, or how this differs from get_merge_request_diffs and get_branch_diffs. An agent would need additional inference to invoke it confidently.

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 100%, so the baseline is 3. However, the description actively confuses parameter semantics by referring to 'mergeRequestIid' and 'branchName' instead of the schema's merge_request_iid and source_branch. This undermines the otherwise useful hint that one of these identifying parameters is expected, and adds negative value.

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 description clearly states the action ('List') and the resource ('merge request diffs'), and mentions pagination support, making the core purpose unambiguous. It does not explicitly differentiate from the sibling get_merge_request_diffs, but the word 'List' and the pagination hint imply a paged retrieval. The parenthetical introduces parameter names, but the overall purpose remains clear.

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 gives a precondition ('Either mergeRequestIid or branchName must be provided') but provides no guidance on when to prefer this tool over siblings like get_merge_request_diffs or get_branch_diffs. The precondition is also misleading because mergeRequestIid and branchName are not actual parameter names in the schema; the schema uses merge_request_iid and source_branch.

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

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