Skip to main content
Glama

get_merge_request_diffs

Get merge request diffs to inspect code changes, with pagination for navigating large modification sets.

Instructions

Get merge request diffs showing code changes.

Args: project_id: GitLab project ID mr_iid: Merge request IID page: Page number for pagination (default: 1) per_page: Number of results per page (default: 20, max: 100)

Returns: Formatted string with diff information including pagination info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
mr_iidYes
per_pageNo
project_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden of disclosure. It states the return format ('Formatted string with diff information including pagination info') and explains pagination via page and per_page parameters. This is adequate for a read-only tool, though it does not explicitly label it as read-only or mention potential side effects (which are none). It adds useful context about the output and pagination.

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 compact and well-structured: a one-line purpose, a clean list of arguments with defaults, and a returns statement. No filler or redundant content. The purpose is front-loaded, making it easy to parse quickly.

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?

Given that an output schema exists (as per context signals), the description need not detail return values extensively. It covers the essential parameters, pagination behavior, and return type. It lacks only minor context like authentication requirements or performance caveats, but for a straightforward read tool this is sufficient.

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 schema has 0% description coverage, but the description's 'Args' section provides clear semantics for each parameter: project_id, mr_iid, page (with default), and per_page (with default and max). This adds meaning beyond the bare schema, fully compensating for the lack of schema descriptions. However, it does not elaborate on edge cases or validation rules, so a slight deduction is warranted.

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 'Get merge request diffs showing code changes', which is a specific verb (get) and resource (merge request diffs) with a purpose (showing code changes). This unambiguously distinguishes it from sibling tools like get_merge_request, get_merge_request_comments, and get_merge_request_commits.

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

Usage Guidelines3/5

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

The description implies usage for retrieving code changes, but it does not explicitly state when to use this tool over alternatives. There is no mention of exclusions or conditions that would route an agent to a different sibling. It only provides a functional statement without context.

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