Skip to main content
Glama
mungowang
by mungowang

gitlab_mr_discussions

Read-only

List discussion threads for a GitLab merge request, including each diff comment's file and line. Filter to unresolved threads to track open review feedback.

Instructions

List the discussion threads of a merge request, with each diff comment's file and line. System notes are filtered out by default and resolved is derived from the thread's notes, so the returned page can be shorter than pagination.total (which is GitLab's raw count).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iidYesproject-scoped internal id - the number in !123 for a merge request or #123 for an issue, not the global id
pageNo1-based page number; see pagination.nextPage in the result
perPageNoitems per page, max 100 (GitLab default is 20)
projectYesproject id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you
maxBodyCharsNoper comment; longer text is marked as truncated
includeSystemNokeep GitLab-generated notes (label, push, state changes)
onlyUnresolvedNokeep only threads that have resolvable notes and none of them resolved

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
paginationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, yet the description discloses genuinely non-obvious behavior: system notes are filtered by default, `resolved` is derived from thread notes, and the returned page can be shorter than pagination.total. This last caveat about a raw-count vs filtered-page mismatch is exactly the kind of behavioral context that prevents agent confusion.

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?

Two tight sentences: the first front-loads purpose and output shape, the second carries the behavioral caveats. No filler, and the most decision-relevant information is placed first.

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

Completeness5/5

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

With readOnlyHint covering safety, a 100%-covered schema, and an output schema handling return values, the description supplies the remaining needed context (default filtering and the pagination caveat). Nothing essential for correct invocation is missing.

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 the baseline is 3, but the description adds real meaning by explaining the interaction between the default filtering (includeSystem=false) and derived `resolved`/onlyUnresolved semantics and the resulting pagination discrepancy. It enriches parameter understanding beyond the per-field schema text.

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 ('List') and resource ('discussion threads of a merge request') and adds the payload detail ('each diff comment's file and line'). This is clearly distinguishable from siblings like gitlab_mr_comment, gitlab_mr_changes, or gitlab_mr_get.

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 implies its use case (inspecting MR discussion threads) but never states when to prefer it over alternatives such as gitlab_mr_changes or the reply/resolve siblings. Usage is inferable from the behavior described, but there are no explicit when/when-not rules or named alternatives.

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