Skip to main content
Glama

Update Draft Note

gitlab_update_draft_note

Update an existing GitLab merge request draft note by changing its body, position, or discussion resolution state before publishing the review comment.

Instructions

Update a merge-request draft note.

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>",
      "draft_note_id": "<draft_note_id>"
    },
    "name": "gitlab_update_draft_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
positionNo
project_idNo
draft_note_idYes
merge_request_iidYes
resolve_discussionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • removedInput schema / properties / resolve_discussion / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / resolve_discussion / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the mutability profile is covered; the description adds no behavior beyond that. It does not say whether omitted fields are left unchanged, whether the draft remains unpublished after the update, or what permissions or error conditions apply to a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, so it is concise in the literal sense. But the brevity reflects under-specification rather than efficiency: the space saved is space an agent needed for parameter and workflow 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?

For a six-parameter write tool with zero schema description coverage and no output schema, one sentence is not enough. Nothing tells the agent what happens to the draft's state, how position objects are shaped, or how this differs from the sibling update/publish tools, leaving significant gaps for a mutation operation.

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% across six parameters, so the description carries the full burden and adds almost nothing. It never explains body (new text), position (line-anchored diff position), resolve_discussion semantics, or that project_id may be omitted, even though position and resolve_discussion are non-obvious and structured-schema-documented nowhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Update a merge-request draft note" gives a clear verb (update) and a scoped resource (merge-request draft note), which does implicitly separate it from published-note siblings like gitlab_update_merge_request_note. However, it is close to a restatement of the title "Update Draft Note" and never explicitly says it only applies to unpublished draft notes, so the distinction is left to inference.

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 prerequisites, and no pointer to alternatives such as gitlab_publish_draft_note (to make a draft visible) or gitlab_update_merge_request_note (for published notes). The agent must infer all routing decisions from tool names alone.

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