Skip to main content
Glama

List Merge Request Changed Files

gitlab_list_merge_request_changed_files
Read-onlyIdempotent

Lists changed file metadata for a merge request without diff content, so you can identify files before fetching patches during large reviews.

Instructions

Step 1 for large MR review: return changed file metadata without diff content.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_list_merge_request_changed_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNo
source_branchNo
merge_request_iidNo
excluded_file_patternsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • removedInput schema / properties / merge_request_iid / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / merge_request_iid / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive access, so safety is covered. The description adds one genuinely useful trait — that no diff payload is returned, making it cheap for big MRs — but says nothing about result size, ordering, or how excluded_file_patterns affects output.

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?

One front-loaded sentence with no wasted words. It is efficient, but the extreme brevity is as much under-specification as conciseness.

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 four-parameter, zero-coverage, no-output-schema tool, the description should explain what 'metadata' includes (path, new/old path, renamed/deleted status) and how the exclusion filter behaves. None of that is present, leaving an agent unable to interpret the result.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description carries the full burden and adds nothing: no explanation of project_id vs source_branch, what merge_request_iid identifies, or what excluded_file_patterns filters against.

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 resource (changed file metadata of a merge request) and an explicit scope boundary: 'without diff content'. This implicitly separates it from the diff-returning siblings, though it never names them.

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?

'Step 1 for large MR review' implies a workflow (enumerate files, then fetch diffs individually) but never states when to prefer this over gitlab_list_merge_request_diffs or gitlab_get_merge_request_file_diff, and gives no exclusions or prerequisites.

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