Skip to main content
Glama

Get merge request discussions

gitlab_get_merge_request_discussions
Read-onlyIdempotent

Retrieve discussions for a GitLab merge request using its project ID and merge request IID to review comments and threads.

Instructions

List the discussions of a merge request.

GET /projects/:id/merge_requests/:iid/discussions. Raises MissingParameterError without project_id or merge_request_iid.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_get_merge_request_discussions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
per_pageNo
project_idNo
merge_request_iidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv27.3.26

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is well covered. The description adds value by disclosing that project_id or merge_request_iid absence raises MissingParameterError. However, listing behavior like pagination semantics from page/per_page is not addressed.

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?

The description is short and front-loaded with the purpose. The REST path in the middle is somewhat redundant given the tool already wraps that endpoint, but it is not distracting.

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

Completeness3/5

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

For a read-only list tool with annotations carrying the safety profile, the description is functional but light. It omits pagination behavior and any note on the shape of returned discussions, which matters for a paginated listing call with no output schema.

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?

Schema description coverage is 0%, and four parameters have no descriptive text in the schema. The description partially compensates by implying project_id and merge_request_iid are required (error without them), but page and per_page are entirely undiscussed, leaving a real gap for a listing tool.

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?

"List the discussions of a merge request" gives a specific verb (list) and resource (merge request discussions), which is enough to tell it apart from get_commit_discussions and the mutation siblings. The scope is clear, though it never explicitly names the sibling it differs from.

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 mention of alternatives such as commit discussions. The only guidance is the error condition, which is not the same as usage routing.

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