Skip to main content
Glama

Resolve merge request discussion

gitlab_resolve_merge_request_discussion
Destructive

Marks a single GitLab merge request discussion as resolved, helping close review threads once their feedback has been addressed.

Instructions

Resolve one discussion of a merge request.

PUT .../discussions/:discussion_id with resolved=true. A resolved discussion returns the same answer and writes nothing new.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_resolve_merge_request_discussion"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNo
approval_refNoOwner approval receipt for this operation; required by every owner-approved tool.
discussion_idNo
merge_request_iidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv27.3.26

TDQS

C2.9/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: an already-resolved discussion returns the same answer and writes nothing new, i.e. the operation is idempotent. However, for a mutating tool flagged destructiveHint=true it says nothing about permissions, the effect of resolution on the discussion thread, or reversibility, and it never mentions that an approval receipt may be required.

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?

Two short sentences plus an endpoint notation, with the purpose front-loaded and no filler. The raw 'PUT .../discussions/:discussion_id' fragment is slightly cryptic out of context but is dense with useful information.

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?

This is a destructive, open-world mutation over four parameters with no output schema and only 25% schema coverage, yet the description omits permissions, the approval_ref requirement, which identifiers are mandatory, and what the response looks like. The idempotency note is a good start but leaves the agent under-equipped to call it correctly.

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 only 25% — just approval_ref is documented — and the description adds almost nothing: it names discussion_id implicitly through the URL template but leaves project_id and merge_request_iid entirely unexplained. With zero required parameters the agent gets no signal about which identifiers must actually be supplied.

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?

States a specific verb and resource: 'Resolve one discussion of a merge request', and even pins the endpoint (PUT .../discussions/:discussion_id with resolved=true). An agent can tell this mutates discussion state rather than reading it. It does not explicitly contrast with the reading sibling (gitlab_get_merge_request_discussions), so it falls short of full sibling differentiation.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative. The only hint is the idempotency remark about already-resolved discussions, which tells the agent nothing about when resolving is the right action versus re-reading discussions or creating a note.

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