Skip to main content
Glama

get_merge_request_discussions

Fetch threaded discussions and comments from a GitLab merge request to review feedback, with pagination and filters for resolved or unresolved threads.

Instructions

Get discussions (threaded comments) 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": "<project>",
      "mergeRequestIid": "<mergeRequestIid>"
    },
    "name": "get_merge_request_discussions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination
perPageNoNumber of discussions per page (max 100, default 20 for large MRs)
projectYesProject ID or path (e.g., "group/project" or "123")
resolvedOnlyNoOnly return resolved discussions
unresolvedOnlyNoOnly return unresolved discussions
mergeRequestIidYesMerge request internal ID (iid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. The parenthetical 'threaded comments' is the only behavioral disclosure, hinting at thread structure, but it says nothing about the read-only nature, pagination behavior, or whether filtering flags interact.

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, front-loaded sentence with no wasted wording; the parenthetical definition is the one useful addition. It is lean to the point of under-specification, but the structure itself is clean.

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?

With six parameters, an unannotated read surface, and several close siblings (notes, thread summary, discussion analysis), the description is too thin. It omits the constraint that resolved and unresolved filters are mutually exclusive and gives no routing cue among the related retrieval 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 coverage is 100%, so the schema already explains project path format, iid, pagination, and the resolved filters. The description adds no meaning beyond the schema, which is acceptable at this coverage level but not additive.

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 and resource ('Get discussions') and clarifies the domain term by equating discussions with 'threaded comments' on a merge request, which meaningfully distinguishes it from flat note retrieval. It stops short of naming any sibling, so it does not fully lock in differentiation, but the scope is clear.

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?

There is no guidance on when to use this tool versus get_merge_request_notes, get_merge_request_thread_summary, or analyze_merge_request_discussions, and no mention of the resolvedOnly/unresolvedOnly choice or pagination strategy. Usage is only implied by the tool name.

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