Skip to main content
Glama

List Merge Request Diffs

gitlab_list_merge_request_diffs
Read-onlyIdempotent

List detailed merge request diffs with version and change views to inspect code modifications and compare revisions.

Instructions

List detailed MR diffs (versions/changes view).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "merge_request_iid": "<merge_request_iid>"
    },
    "name": "gitlab_list_merge_request_diffs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
unidiffNo
per_pageNo
project_idNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.7.0
    • removedInput schema / properties / page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / per_page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / per_page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / unidiff / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / unidiff / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds only the phrase "detailed MR diffs", without disclosing pagination behavior, response size, how the unidiff flag changes output, or what happens with large diffs — information an agent needs and which annotations do not supply.

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

Conciseness3/5

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

It is a single front-loaded sentence with no filler, which is structurally sound. But at this length it reads as under-specification rather than deliberate economy, and the parenthetical is cryptic without supporting context.

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 five-parameter tool with zero schema description coverage and no output schema, the description is far too thin. An agent cannot determine what a returned diff looks like, how to page through results, or what unidiff toggles, all of which must come from the description.

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

Parameters1/5

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

Schema description coverage is 0% across five parameters, so the description carries the full burden and fails: it never explains page/per_page, the ambiguous boolean unidiff, the nullable project_id, or the required merge_request_iid. "Detail" in the description is not elaborated anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb+resource pairing ("List ... MR diffs") is clear at a high level, and the parenthetical "(versions/changes view)" hints at the versions comparison view. However, siblings include both gitlab_get_merge_request_diffs and gitlab_get_merge_request_file_diff, and the description does nothing to explain how this list variant differs from those or from gitlab_list_merge_request_changed_files.

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?

"List ... (versions/changes view)" implies the tool is for browsing diffs, but there is no explicit when-to-use statement, no mention of when to prefer gitlab_get_merge_request_diffs or gitlab_list_merge_request_changed_files, and no prerequisites (e.g., that a merge_request_iid is required).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools