Skip to main content
Glama

Create Draft Note

gitlab_create_draft_note

Creates a draft note on a GitLab merge request, letting you prepare review comments before publishing them.

Instructions

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

Input Schema

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

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

Annotations already disclose non-read-only, non-idempotent, non-destructive, open-world behavior, so the description gains little added credit. It does not explain the defining behavioral trait of a draft note — that it is private until published — nor whether a note ID is returned or what position/resolve_discussion do to the created record.

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 waste-free, but its brevity reflects under-specification rather than discipline. There is no structure directing an agent to required inputs or the publish follow-up.

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 5-parameter mutation tool with no output schema and zero schema descriptions, this is far too thin. Key facts an agent needs — which project/MR scope is required, what resolve_discussion toggles, and that the note stays unpublished — are all missing.

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 5 parameters, so the description carries the full burden and fails to. It never mentions body, project_id, merge_request_iid, position, or resolve_discussion — the word 'merge-request' only weakly signals the required IID context, and the meaning of position/resolve_discussion is entirely absent.

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 ('Create') and a specific resource ('merge-request draft note'), which is enough to distinguish it from siblings like gitlab_create_merge_request_note or gitlab_create_note. It stops short of explaining what a draft note actually is (an unpublished, author-only note), so the distinction rests on the reader already knowing the domain.

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 the follow-up step (gitlab_publish_draft_note) that gives a draft note its purpose, and no mention of prerequisites or the bulk alternative. An agent must infer the entire workflow from sibling names.

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