Skip to main content
Glama

Bulk Publish Draft Notes

gitlab_bulk_publish_draft_notes

Publish all merge request draft notes at once, optionally set reviewer state and add a summary note on GitLab 19.2+, so reviews can be finalized in one action.

Instructions

Publish all merge-request draft notes. On GitLab 19.2+ it can also set your reviewer state (requested_changes or reviewed; not a formal approval) and post a summary note, even with no drafts.

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

Input Schema

NameRequiredDescriptionDefault
noteNo
internalNo
project_idNo
reviewer_stateNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.7.0
    • addedInput schema / properties / internal
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / note
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 1000000,
      +      "minLength": 1,
      +      "pattern": "^[^\\u0000]*$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / reviewer_state
      Added value: +{
      +  "enum": [
      +    "requested_changes",
      +    "reviewed"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.6.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already say mutation (readOnlyHint=false), non-idempotent, and open-world, so the baseline is covered; the description goes further by disclosing that it acts on every draft at once, that it can additionally set reviewer state, and critically that this state is "not a formal approval," which prevents confusion with the approval tools. It also discloses the no-drafts edge case. It omits failure semantics, e.g. what happens if one draft fails to publish or whether the batch is atomic.

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

Conciseness5/5

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

Two sentences, no filler, with the primary action front-loaded before the version-gated extras. The parenthetical about formal approval is the one aside and it earns its place by disambiguating against the approval siblings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation with no output schema, the description covers the main action and the notable secondary behavior well, including a version gate. It leaves meaningful gaps: the internal flag and project scoping are unexplained, the note field's purpose is only inferable, and the agent gets no information about what the call returns or how partial failures are reported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 must carry the load and only partly does. It clarifies reviewer_state's two enum values and the caveat that it is not an approval, and identifies that a summary note is posted (implying the note parameter's role). project_id, merge_request_iid, and especially the internal flag receive no explanation, and the note parameter is never tied explicitly to the text supplied in the note field.

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?

"Publish all merge-request draft notes" gives a specific verb, resource, and scope ("all"), which implicitly distinguishes it from the singular gitlab_publish_draft_note sibling. The second sentence adds a distinct secondary capability (setting reviewer state and posting a summary note) so the agent knows this tool does more than its name suggests. It stops short of naming the singular alternative outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by "all" and by "even with no drafts," which tells the agent this call is valid when the draft list is empty. The GitLab 19.2+ qualifier signals a version precondition for the reviewer-state path. However, there is no explicit statement of when to use this versus gitlab_publish_draft_note or gitlab_approve_merge_request, leaving the agent to infer the routing.

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