Skip to main content
Glama

Create MR Discussion Note

gitlab_create_merge_request_discussion_note

Add a note to an existing GitLab merge request discussion thread to reply within an ongoing review conversation.

Instructions

Add note to existing MR 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": {
      "merge_request_iid": "<merge_request_iid>",
      "discussion_id": "<discussion_id>",
      "body": "<body>"
    },
    "name": "gitlab_create_merge_request_discussion_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
created_atNo
project_idNo
discussion_idYes
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.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the safety profile is largely covered. Beyond restating that it targets an existing thread, the description adds nothing about permissions, ordering, or the meaning of created_at backdating, leaving the behavioral surface thin.

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 front-loaded sentence with no filler or redundancy. It is efficient, though its brevity reflects under-specification rather than discipline.

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 five-parameter mutation with no output schema and zero schema description coverage, the description is far too sparse. An agent cannot tell what the return value contains, how body is formatted, or what created_at implies without inspecting the raw schema.

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% for five parameters, so the description must carry the burden and it does not. Key semantics, including whether body is Markdown, what created_at does, and whether project_id is inferred from context, 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 ('Add note to existing MR discussion thread'), making the operation distinguishable from deletion or update siblings. However, it does not differentiate itself from adjacent creation siblings such as gitlab_create_merge_request_note or gitlab_create_merge_request_thread, which an agent must choose between.

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?

The phrase 'existing... thread' implicitly signals a precondition that the discussion must already exist, which is mild usage guidance. There is no explicit statement of when to use this versus creating a new thread or a top-level MR note, and no exclusions.

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