Skip to main content
Glama

add_merge_request_note

Adds a comment to a GitLab merge request or replies to an existing discussion thread, enabling review feedback and threaded conversation directly on the merge request.

Instructions

Add a note (comment) to a merge request or reply to a discussion thread

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>",
      "body": "<body>"
    },
    "name": "add_merge_request_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe comment/note content to add
projectYesProject ID or path (e.g., "group/project" or "123")
discussionIdNoDiscussion ID to reply to (for threaded replies)
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 provided, so the description carries the full behavioral burden. It discloses the two modes (new note vs threaded reply) but says nothing about required permissions, note visibility, editability, or failure behavior for a write operation — a significant gap for a mutation tool with zero annotation coverage.

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 efficient sentence with the verb and resource front-loaded. No wasted wording, though it is terse enough that it leaves behavioral questions unanswered.

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 simple four-parameter write tool with full schema coverage and no output schema, the definition covers the core action adequately. However, with no annotations at all, it omits permission requirements and the semantics of the threaded-reply mode, leaving real gaps.

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%, so the schema already documents all four parameters including body, project, discussionId, and mergeRequestIid. The description adds only the implicit mapping of the thread-reply mode to discussionId, which is a marginal addition over structured data.

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 (Add) and resource (note/comment) on a named target (merge request), and names the second mode (reply to a discussion thread). Clear enough to distinguish it from add_issue_note by resource, though it does not explicitly call out sibling differences.

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 explicit when-to-use or when-not guidance. The phrase 'or reply to a discussion thread' hints that a threaded reply is a supported mode, but it never says what condition selects it (e.g., set discussionId) or when to prefer this over other note-related tools.

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