Skip to main content
Glama

Create merge request discussion note

gitlab_create_merge_request_discussion_note
Destructive

Posts a reply note to a merge request discussion so teams can continue threaded code review conversations in context.

Instructions

Reply to a discussion of a merge request.

POST .../discussions/:discussion_id/notes. A body longer than 1,000,000 characters is refused before any call.

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

Input Schema

NameRequiredDescriptionDefault
bodyNo
project_idNo
approval_refNoOwner approval receipt for this operation; required by every owner-approved tool.
discussion_idNo
merge_request_iidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv27.3.26

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description usefully adds a pre-flight guard (bodies over 1,000,000 characters are refused before any call), but says nothing about the owner approval receipt the schema flags as required, nor about permissions or failure modes.

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?

Three short sentences, front-loaded with the action, followed by the endpoint and one hard constraint. Nothing is redundant, though the character-limit sentence sits slightly awkwardly before any parameter context.

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?

This is a mutating, open-world write tool with five parameters, zero required fields, and no output schema. The description never says which identifiers must be supplied to make a valid call or that an owner approval receipt is needed, which is the main thing an agent would get wrong.

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 only 20% (just approval_ref), and all five parameters are optional at the schema level. The description mentions the body indirectly through its size limit and discussion_id through the URL template, but leaves project_id, merge_request_iid, and the approval_ref requirement unexplained, so it does not compensate for the coverage gap.

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?

The description gives a specific verb and resource: 'Reply to a discussion of a merge request', plus the concrete endpoint POST .../discussions/:discussion_id/notes. That is enough to distinguish it from generic note tools like gitlab_create_note or gitlab_resolve_merge_request_discussion, though it never explicitly names an alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: you use this when replying to an existing discussion. There is no explicit when-not condition, no statement that the discussion must already exist, and no pointer to a sibling for creating a new discussion versus adding a note to one.

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