Skip to main content
Glama

remove_resolved_threads

Permanently deletes resolved discussion threads from a GitLab merge request to clear outdated review comments. Supports a dry-run preview and a limit on processed threads.

Instructions

⚠️ DESTRUCTIVE OPERATION: Permanently delete all resolved comments/notes from a merge request. MANUAL USE ONLY - Use for cleanup/testing only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "mergeRequestIid": "<mergeRequestIid>"
    },
    "name": "remove_resolved_threads"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview what resolved notes would be deleted without actually deleting them
projectYesProject ID or path (e.g., "group/project" or "123")
maxThreadsNoMaximum number of resolved notes to process (default 10 to avoid token limits)
mergeRequestIidYesMerge request internal ID (iid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose the critical trait: deletion is permanent and destructive. It omits permissions/auth requirements, what happens to the MR discussion state afterward, and whether unresolved threads are untouched—gaps that matter for an irreversible write.

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 with the destructive warning front-loaded, which is the right structure for a dangerous tool. Slightly redundant between 'MANUAL USE ONLY' and 'cleanup/testing only', but nothing is wasted.

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

Completeness3/5

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

For a destructive, no-annotation tool with no output schema, the definition covers the danger and the target but leaves behavioral questions open (post-deletion state, permission needs, safer alternatives). Adequate warning, incomplete operational picture.

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 coverage is 100%, so all four parameters (including dryRun and maxThreads) are fully documented in the schema itself. The description adds no parameter-level meaning such as default batch behavior or dryRun semantics, so baseline 3 applies.

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: permanently deleting resolved comments/notes from a merge request, with the scope qualifier 'resolved' distinguishing it from general note deletion. It doesn't name a sibling to contrast with (e.g., delete_issue_note or resolve_discussion), but the action is unambiguous.

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?

'MANUAL USE ONLY - Use for cleanup/testing only' gives a genuine when-to-use restriction, which is more than most definitions offer. However, it names no alternative path (resolving, individual note deletion) and doesn't say when the agent should decline in favor of a safer sibling.

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