Skip to main content
Glama

gitlab_resolve_discussion

Resolve GitLab merge request discussion threads when code review feedback has been addressed. Requires discussion ID and merge request number to close specific review conversations.

Instructions

Resolve a discussion thread Returns: Updated discussion Use when: Code review feedback addressed Required: Discussion ID from get_discussions

Related tools:

  • gitlab_get_merge_request_discussions: Find discussions

  • gitlab_add_merge_request_comment: Add resolution comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject identifier (auto-detected if not provided) Type: integer OR string Format: numeric ID or 'namespace/project' Optional: Yes - auto-detects from current git repository Examples: - 12345 (numeric ID) - 'gitlab-org/gitlab' (namespace/project path) - 'my-group/my-subgroup/my-project' (nested groups) Note: If in a git repo with GitLab remote, this can be omitted
mr_iidYesMerge request number (IID - Internal ID) Type: integer Format: Project-specific MR number (without !) Required: Yes Examples: - 456 (for MR !456) - 7890 (for MR !7890) How to find: Look at MR URL or title - URL: https://gitlab.com/group/project/-/merge_requests/456 → use 456 - Title: "Add new feature (!456)" → use 456 Note: This is NOT the global MR ID
discussion_idYesDiscussion thread ID Type: string Required: Yes Format: SHA-like identifier How to get: From gitlab_get_merge_request_discussions Example: '6a9c1750b37d513a43987b574953fceb50b03ce7' Use case: Resolve specific discussion thread
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the action ('Resolve a discussion thread') and return value ('Updated discussion'), which implies a mutation operation. However, it lacks details on permissions, side effects (e.g., whether it closes the thread or just marks it), or error handling, leaving behavioral gaps for an unannotated tool.

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 well-structured and front-loaded with the core purpose, followed by returns, usage, requirements, and related tools in a bullet-like format. Each sentence adds value without redundancy, making it efficient and easy to parse.

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

Completeness4/5

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

Given the complexity (a mutation tool with 3 parameters), no annotations, and no output schema, the description does well by covering purpose, usage, prerequisites, and related tools. However, it lacks details on behavioral aspects like permissions or side effects, and the output is only briefly mentioned ('Updated discussion') without elaboration, leaving some gaps in completeness.

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?

The schema description coverage is 100%, so the schema fully documents the three parameters. The description adds minimal param semantics by mentioning 'Discussion ID from get_discussions' for 'discussion_id', but doesn't provide additional context beyond what's in the schema. This meets the baseline for high schema coverage.

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 clearly states the verb ('Resolve') and resource ('a discussion thread'), making the purpose evident. It distinguishes from siblings like 'gitlab_add_merge_request_comment' by focusing on resolution rather than commenting. However, it doesn't explicitly differentiate from tools like 'gitlab_get_user_resolved_threads' which might retrieve resolved threads, leaving some ambiguity.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance with 'Use when: Code review feedback addressed', indicating the appropriate context. It also specifies prerequisites with 'Required: Discussion ID from get_discussions' and lists related tools ('gitlab_get_merge_request_discussions', 'gitlab_add_merge_request_comment'), offering clear alternatives and dependencies.

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/Vijay-Duke/mcp-gitlab'

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