Skip to main content
Glama

Create Merge Request Thread

gitlab_create_merge_request_thread

Creates a new merge request discussion thread, including optional diff positions, so reviewers can comment on specific code changes.

Instructions

Create a new MR discussion thread (supports diff positions).

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

Input Schema

NameRequiredDescriptionDefault
bodyYes
positionNo
created_atNo
project_idNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • removedInput schema / properties / created_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / created_at / 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=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds one piece of real behavioral context, diff-position support, but says nothing about permissions, whether the thread notifies users, or what happens on repeated calls despite idempotentHint=false.

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 well-formed sentence with the key capability front-loaded and no filler. It is efficient but so terse that brevity becomes under-specification rather than crispness.

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 non-idempotent mutation with five undocumented parameters and no output schema, the definition does too little. An agent cannot learn from it what a thread contains, how project/MR identifiers are supplied, or what the diff-position object should look like.

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?

With 0% schema description coverage across 5 parameters, the description carries the full burden and mostly fails. Only the optional position parameter is hinted at ('diff positions'); body, project_id, merge_request_iid, and the unusual created_at (backdating) are entirely unexplained.

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 states a specific verb and resource: 'Create a new MR discussion thread', and adds the parenthetical '(supports diff positions)' to signal that it can anchor a thread to a diff. It is distinguishable from the many note/emoji siblings by the word 'thread', though it never states the thread-versus-note distinction explicitly.

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 when-to-use guidance, no mention of when a thread is preferable to a plain note (gitlab_create_merge_request_note / discussion_note), and no stated prerequisites other than the implicit ones. The agent must infer the choice entirely from the name.

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