Skip to main content
Glama

list_merge_request_changed_files

Read-only

List changed file paths in a merge request without diff content, optionally filtering out files by regex patterns to focus review on relevant changes.

Instructions

List changed file paths in a merge request without diff content (merge_request_iid or source_branch required).

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>"
    },
    "name": "list_merge_request_changed_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryNoIf true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON.
jmespathNoOptional JMESPath expression filtering the JSON result before return.
project_idYesProject ID or URL-encoded path
source_branchNoSource branch name
merge_request_iidNoMerge request IID
excluded_file_patternsNoArray of regex patterns to exclude files. Each pattern is an RE2 regular expression (linear time; no lookahead, lookbehind, or backreferences). At most 50 patterns of at most 200 characters each. Examples: ["^vendor/", "\.pb\.go$"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.3.27
    • changedInput schema / properties / excluded_file_patterns / description
      Previous value: -"Array of regex patterns to exclude files. Examples: [\"^vendor/\", \"\\.pb\\.go$\"]"New value: +"Array of regex patterns to exclude files. Each pattern is an RE2 regular expression (linear time; no lookahead, lookbehind, or backreferences). At most 50 patterns of at most 200 characters each. Examples: [\"^vendor/\", \"\\.pb\\.go$\"]"
    • addedInput schema / properties / excluded_file_patterns / items / maxLength
      Added value: +200
    • addedInput schema / properties / excluded_file_patterns / maxItems
      Added value: +50
  2. Changed2 schema fields changedv2.3.22
    • changedInput schema / properties / merge_request_iid / description
      Previous value: -"The IID of a merge request"New value: +"Merge request IID"
    • changedInput schema / properties / project_id / description
      Previous value: -"Project ID or complete URL-encoded path to project"New value: +"Project ID or URL-encoded path"
  3. Changed1 schema field changedv2.3.8
    • addedInput schema / properties / summary
      Added value: +{
      +  "description": "If true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changedv2.1.66
    • addedInput schema / properties / jmespath
      Added value: +{
      +  "description": "Optional JMESPath expression filtering the JSON result before return.",
      +  "type": "string"
      +}
  5. Addedv2.1.45
  6. Removedv2.1.43
  7. Addedv2.1.18
  8. Removedv2.1.14
  9. Addedv2.1.11
  10. Removedv2.1.10
  11. Addedv2.1.9

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds a meaningful payload trait by stating no diff content is returned, but says nothing about pagination, result limits, or how excluded_file_patterns affects the listing beyond the schema's own wording.

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?

A single sentence that front-loads the resource and output scope, then the addressing constraint. Every clause carries information; there is no filler.

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 read-only listing tool with no output schema and fully documented parameters, this covers output scope and addressing requirements adequately. The remaining gap is minor: no note on pagination or on which of merge_request_iid/source_branch takes precedence.

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?

Schema coverage is 100%, so baseline is 3, and the description genuinely adds one constraint the schema does not encode: only project_id is marked required in the schema, while the description clarifies that merge_request_iid or source_branch must also be supplied to address the MR. It does not clarify precedence when both are given.

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?

States a specific verb and resource ("List changed file paths in a merge request") plus an explicit scope qualifier ("without diff content"), which cleanly separates it from the diff-returning siblings such as list_merge_request_diffs and get_merge_request_file_diff. An agent can pick this tool without opening the schema.

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

Usage Guidelines4/5

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

Gives the key selection constraint in parentheses: merge_request_iid or source_branch is required, which tells the agent how to address the MR. It stops short of naming the alternative tools for when diff content is actually wanted, so the contrast with diff tools is implied rather than explicit.

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