Skip to main content
Glama
godrix

@godrix/mcp-gitlab-utils

by godrix

Inline MR diff comment

gitlab_add_mr_inline_comment

Create a review thread on a specific diff line in a GitLab merge request by adding an inline comment. Requires file path, comment text, and optionally line numbers.

Instructions

Creates a review thread on a specific diff line (file + new_line or old_line). Requires write permissions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesComment text.
new_lineNoLine in the new file (additions/changes).
new_pathNoNew path if the file was renamed; default=file_path.
old_lineNoLine in the old file (deletions).
old_pathNoOld path if the file was renamed; default=file_path.
file_pathYesFile path in the diff (e.g. src/app.ts).
repo_pathNoAbsolute local clone path; resolves project and MR from current branch.
project_idNoNumeric ID or group/repo path on GitLab.
merge_request_iidNoMerge request IID. Omit with repo_path to resolve from current branch.
Behavior4/5

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

Annotations already indicate mutability (not read-only, not destructive). The description adds context that it creates a thread on a specific diff line. No contradiction, and it discloses the core behavior.

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 two sentences: first states the purpose, second adds permission requirement. No filler or redundancy; front-loaded and efficient.

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?

Despite 9 parameters and no output schema, the description omits important details like mutual exclusivity of new_line/old_line, error scenarios, or what a 'review thread' entails. This leaves gaps for a complete understanding.

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 parameters. The description briefly mentions 'new_line or old_line' but adds no additional parameter-level meaning beyond the schema.

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

Purpose5/5

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

The description clearly states the action (creates a review thread) on a specific resource (diff line) with file and line identifiers. It distinguishes from sibling tools like gitlab_get_mr_discussions which retrieves threads.

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?

The description mentions a prerequisite (write permissions) but does not provide guidance on when to use this tool versus alternatives like gitlab_prepare_review or gitlab_manage_merge_requests.

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/godrix/mcp-gitlab-utils'

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