Skip to main content
Glama

Get Mr Changes Tool

get_mr_changes_tool
Read-only

Retrieve the diff and changed files for a GitLab merge request by project ID or path and merge request internal ID, so you can review code changes before approving or merging.

Instructions

Get the changes (diff) for a merge request.

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": {
      "project_id": "<project_id>",
      "merge_request_iid": "<merge_request_iid>"
    },
    "name": "get_mr_changes_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesProject ID or path
merge_request_iidYesMerge request internal ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • addedInput schema / properties / merge_request_iid / minimum
      Added value: +1
  2. First observedv0.4.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations only declare readOnlyHint=true, so the description carries the remaining burden and adds nothing: no mention of whether the diff is against the target branch or a specific base, whether large diffs are truncated or paginated, or whether auth/scope is required. It only re-states the read purpose already implied by the annotation.

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?

A single short sentence, front-loaded with the verb and scope, with no filler. Its brevity is efficient, though it borders on under-specification for a diff-producing tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With full schema coverage, an output schema, and a readOnly annotation, the definition is minimally sufficient to invoke correctly. It is still silent on diff semantics (base comparison, truncation, pagination) and on how it differs from adjacent MR tools.

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?

Schema description coverage is 100% and both parameters (project_id accepting ID or path, merge_request_iid as internal ID) are documented in the schema. The description adds no format, range, or edge-case detail beyond that, so the baseline 3 applies.

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?

States a specific verb (get) and resource (changes/diff of a merge request), and the parenthetical clarifies that the payload is a diff rather than MR metadata, which separates it from get_merge_request_tool. It does not explicitly name that sibling, so it falls short of a 5.

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?

No indication of when to call this versus get_merge_request_tool, compare_branches_tool, or a versions/diff discussion endpoint. The agent must infer usage from the name alone.

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