Skip to main content
Glama

list_merge_request_diffs

Read-only

Retrieve diffs of a GitLab merge request with pagination, using merge request IID or source branch.

Instructions

List merge request diffs with pagination (mergeRequestIid or branchName required)

Input Schema

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

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

Annotations already provide readOnlyHint and openWorldHint. The description adds the pagination detail and parameter requirement, which provides some behavioral context beyond the annotations, but does not offer rich disclosure of side effects or rate limits.

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, front-loaded sentence with no redundant words. It communicates the action, resource, and key constraint efficiently.

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?

For a list tool with pagination and no output schema, the description covers the essential purpose and constraints. However, it lacks details like default pagination values or differentiation from the get_merge_request_diffs sibling, leaving some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds value beyond the schema by clarifying that mergeRequestIid or branchName is functionally required, even though only project_id is marked required. This highlights key semantics.

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' and the resource 'merge request diffs' with a key constraint (requires mergeRequestIid or branchName). It effectively distinguishes from sibling tools like get_merge_request_diffs by specifying pagination.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool (when needing diffs with pagination) and mentions required parameters. However, it does not explicitly state when not to use or name alternatives, though this is clear from context.

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

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