Skip to main content
Glama
PMelch
by PMelch

get_merge_request_diffs

Retrieve all file changes and diffs for a merge request using its IID, enabling review of code modifications.

Instructions

Get all file changes and diffs in a merge request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesThe IID (internal ID) of the merge request

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are present, so the description carries the behavioral disclosure burden. 'Get all file changes and diffs' clearly signals a read-only retrieval operation and the full scope of the result, which is the main behavior an agent needs to know. It does not mention pagination or auth, but for a simple read tool these are not critical.

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?

One sentence, no redundant words, and the key resource is front-loaded. Every word contributes to the agent's understanding.

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 single-parameter tool with no output schema, the description tells the agent enough to call it correctly: what input is expected and what data will come back. A short note distinguishing it from get_merge_request_full would make it complete, but the gap is minor.

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

Parameters3/5

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

The schema already documents merge_request_iid as the merge request's internal ID with 100% coverage. The description adds no parameter-level detail such as required format, examples, or constraints, so it earns the schema-coverage baseline.

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 uses a specific verb ('Get'), names the resource ('merge request'), and specifies the returned payload ('all file changes and diffs'). It reads distinctly from sibling tools such as get_merge_request_commits or get_merge_request_discussions, so an agent can identify the right tool without opening schemas.

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 does not explicitly state when to use this tool instead of siblings or mention any alternatives. The intended use case is inferable from the phrase 'file changes and diffs' and the sibling names, but no direct routing guidance is provided.

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

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

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