Skip to main content
Glama

List Merge Request Discussions

gitlab_list_merge_request_discussions
Read-onlyIdempotent

Fetch discussions for a specific GitLab merge request to review comments and threaded feedback, with pagination for large conversations.

Instructions

List MR discussions.

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_discussions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
per_pageNo
project_idNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.0
    • 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"
      +]
  2. First observedv1.6.1

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds nothing beyond them, but omits that the endpoint is paginated (two pagination params) and says nothing about ordering, thread grouping, or whether resolved threads are included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded, but the brevity is under-specification rather than economy; it is a three-word fragment that omits the information the rest of the definition needs.

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 paginated list tool with zero schema descriptions and no output schema, the agent gets no details on pagination, required identifiers, return shape, or relationship to sibling discussion/note tools. Annotations cover the safety profile but not what the call returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the full burden for 4 parameters, and it adds nothing. Page, per_page, and project_id (including whether project_id is optional/derivable) are entirely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List MR discussions" states a verb and resource, but it is essentially a restatement of the title with no scope detail. It does not clarify how discussions differ from the sibling list_merge_request_notes or from the singular get_merge_request_discussion.

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?

No when-to-use guidance and no named alternatives. The description provides no indication whether to use this versus gitlab_list_merge_request_notes or gitlab_get_merge_request_discussion, which an agent facing both must resolve on its own.

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