Skip to main content
Glama

get_merge_request_notes

Fetch all notes (comments) for a specific GitLab merge request using pagination, sort order, and ordering fields to review discussions and feedback.

Instructions

Get all notes (comments) for a specific 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_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination
sortNoSort order for notes
orderByNoField to order by
perPageNoNumber of notes per page (max 100)
projectYesProject ID or path (e.g., "group/project" or "123")
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 behavioral burden. It does not state that results are paginated (despite page/perPage parameters), what the default sort or page size is, whether authentication or project access is required, or whether system notes are included alongside user comments. The word 'all' is also in mild tension with a paginated endpoint.

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 with the resource and scope front-loaded and no filler. It is efficient but so terse that it omits information an agent would need, which is a completeness problem rather than a conciseness one.

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 six-parameter read tool with no annotations and no output schema, the description does not cover result shape, pagination behavior, or how it differs from sibling discussion/thread tools. An agent can guess how to call it but not confidently choose it over alternatives.

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%, including enum values for sort and orderBy and bounds for page/perPage, so the schema does the heavy lifting and the baseline is 3. The description adds only the conceptual mapping of notes to comments for the mergeRequestIid target and nothing about parameter interactions such as paging defaults.

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 all notes') and clarifies that notes means comments, scoped to a specific merge request. It does not differentiate itself from close siblings such as get_merge_request_note, get_merge_request_discussions, or get_merge_request_thread_summary, so an agent must infer the distinction from names alone.

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 explicit when-to-use or when-not-to-use guidance; the only hint is the implicit requirement that a merge request be in context. With three other note/discussion retrieval siblings available, the absence of routing guidance is a real gap rather than a minor omission.

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