Skip to main content
Glama

add_merge_request_comment

Add a comment to a GitLab merge request using project ID and merge request IID.

Instructions

Add a general comment to a merge request.

Args: project_id: GitLab project ID mr_iid: Merge request IID comment: Comment text to add

Returns: Confirmation message with comment details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mr_iidYes
commentYes
project_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations are absent, so the description must disclose behavioral traits. It mentions the return value ('Confirmation message with comment details'), which is useful, but it does not state side effects, permissions, or constraints (e.g., comment length, auth requirements). As a mutation operation, more transparency is expected. The return info may already be covered by the output schema, reducing the description's added value.

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

Conciseness4/5

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

The description is well-structured with an opening purpose sentence followed by an Args and Returns section. It is concise with no filler, and the purpose is front-loaded. The format is easy to parse and appropriate for its length.

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?

Given the tool's moderate complexity (3 parameters, no annotations, no schema descriptions), the description is insufficiently complete. It lacks sibling differentiation, prerequisites, and any behavioral caveats. While the output schema covers return details, the description still leaves an agent without guidance on when to select this tool over closely related merge request comment tools.

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%, so the description must compensate, but it only repeats the parameter names: 'project_id: GitLab project ID', 'mr_iid: Merge request IID', 'comment: Comment text to add.' These are essentially tautological and add no additional meaning about formats, constraints, or defaults. The description fails to provide the needed extra detail for parameters that lack schema documentation.

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 the action clearly: 'Add a general comment to a merge request.' It specifies the verb 'Add' and the resource 'merge request' with a qualifier 'general' that hints at distinction from line comments. However, it does not explicitly contrast with siblings like add_merge_request_line_comment or reply_to_merge_request_comment, so it is clear but not fully differentiated.

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?

No guidance is provided on when to use this tool versus alternatives such as line comments or replies. The description simply describes the operation without any contextual indicators, prerequisites, or exclusions. An agent would have to infer usage from the name and other tools.

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