Skip to main content
Glama

update_draft_note

Modify draft comments on GitLab merge request code diffs before publishing them for review.

Instructions

Update an existing draft note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID or complete URL-encoded path to project
merge_request_iidNoThe IID of a merge request
draft_note_idNoThe ID of the draft note
bodyNoThe content of the draft note
positionNoPosition when creating a diff note
resolve_discussionNoWhether to resolve the discussion when publishing
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but only states the basic action. It doesn't mention authentication requirements, rate limits, whether this is a destructive operation (though 'update' implies mutation), what happens when invalid parameters are provided, or what the typical response looks like. For a complex tool with 6 parameters including nested objects, this is inadequate behavioral context.

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?

The description is maximally concise at just 4 words. Every word earns its place, and it's front-loaded with the core action. There's no wasted verbiage or unnecessary elaboration.

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 complex mutation tool with 6 parameters (including deeply nested position objects), no annotations, and no output schema, the description is severely incomplete. It doesn't explain the tool's role in the draft note lifecycle, how it relates to sibling tools like 'publish_draft_note' or 'delete_draft_note', what happens on success/failure, or provide any context about the GitLab-specific complexities hinted at in the schema. The description fails to compensate for the lack of structured metadata.

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 100%, so the schema already documents all 6 parameters comprehensively. The description adds no parameter information beyond what's in the schema - it doesn't explain which parameters are most important, how they interact, or provide usage examples. With complete schema coverage, the baseline of 3 is appropriate as the description doesn't add value but also doesn't need to compensate for gaps.

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

Purpose2/5

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

The description 'Update an existing draft note' is a tautology that restates the tool name. It doesn't specify what aspects can be updated (content, position, resolution status) or distinguish it from sibling tools like 'update_merge_request_note' or 'update_issue_note'. The purpose is vague beyond the basic verb-object structure.

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

Usage Guidelines1/5

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

The description provides zero guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (needing an existing draft note), when to use it versus creating a new draft note, or how it differs from other note-updating tools in the sibling list. No usage context or exclusions are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zereight/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server