Skip to main content
Glama

Update MR Discussion Note

gitlab_update_merge_request_discussion_note

Update a merge request discussion note's body or resolved state so AI assistants can revise comments and mark threads resolved in GitLab.

Instructions

Update note body/resolved state in MR discussion.

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>",
      "note_id": "<note_id>"
    },
    "name": "gitlab_update_merge_request_discussion_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
note_idYes
resolvedNo
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 / resolved / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / resolved / type
      Added value: +[
      +  "boolean",
      +  "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?

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, open-world mutation, so the safety profile is covered. The description adds useful context that the updatable fields are the body and resolved state, but it says nothing about required permissions, behavior when the note or discussion does not exist, or whether resolution changes are reversible. With annotations carrying the core behavioral profile, this is adequate but not rich.

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 definition is a single front-loaded sentence with no wasted words. It is appropriately concise for what it attempts to convey, though that conciseness comes at the cost of missing detail elsewhere.

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 six-parameter mutation tool with three required identifiers, no output schema, and zero schema description coverage. The description is too thin to be complete: it does not explain the required identifiers, project scoping, error behavior, or what the update returns. For a mutation of this complexity, more context is needed.

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%, so the description must carry the burden of explaining parameters. It only maps to two of the six parameters ('body' and 'resolved') and gives no meaning for the three required identifiers (`merge_request_iid`, `discussion_id`, `note_id`) or for `project_id`. The description therefore leaves most parameter semantics undocumented.

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 ('Update') and resource ('note ... in MR discussion'), and names the two modifiable aspects ('body/resolved state'). It distinguishes update from create/delete siblings by verb, though it does not explicitly clarify how it differs from the sibling `gitlab_update_merge_request_note` (a non-discussion note).

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 guidance, no prerequisites, and no mention of alternatives such as `gitlab_update_merge_request_note` or `gitlab_update_draft_note`. The implied usage is simply 'when you want to modify an existing discussion note', which is minimal.

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