Skip to main content
Glama

List Merge Request Notes

gitlab_list_merge_request_notes
Read-onlyIdempotent

Retrieve top-level notes for a GitLab merge request to review comments and feedback, with optional pagination and sorting controls.

Instructions

List top-level notes for an MR.

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": {
      "merge_request_iid": "<merge_request_iid>"
    },
    "name": "gitlab_list_merge_request_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNo
order_byNo
per_pageNo
project_idNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.7.0
    • removedInput schema / properties / order_by / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / order_by / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / per_page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / per_page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / sort / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / sort / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive, and call this an open-world tool, so the safety profile is covered. The description adds the 'top-level' scope, but leaves open whether system notes are included and says nothing about pagination behavior even though page and per_page exist. That is modest added value beyond the structured hints.

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?

This is a single short sentence with zero filler and the key qualifier placed before the resource. It is efficient, though the terseness is under-specification rather than disciplined brevity.

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 tool with 6 undocumented parameters, no output schema, and a rich family of sibling note and discussion tools, one line cannot carry the needed context. Pagination, sort options, and the distinction between note types are all missing.

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?

There are 6 parameters with 0% schema description coverage, and the description compensates for none of them: it never mentions project_id, page, per_page, sort, or order_by, nor what 'top-level' means for the output shape. An agent must guess the meaning of the sort and order_by strings and how paging works.

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?

Names a specific verb and resource ('List ... notes for an MR') and adds a meaningful scope qualifier, 'top-level', which signals that reply notes are excluded. It does not, however, differentiate itself from nearby siblings such as gitlab_list_merge_request_discussions, gitlab_list_draft_notes, or gitlab_get_merge_request_note.

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 and no named alternative. 'Top-level' only weakly implies that a different tool handles threaded replies; the agent must infer that routing itself.

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