Skip to main content
Glama

resolve_discussion

Resolve or unresolve a GitLab merge request discussion thread using the project, merge request IID, and discussion ID to close feedback items or reopen them when needed.

Instructions

Resolve or unresolve a discussion thread

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>",
      "discussionId": "<discussionId>"
    },
    "name": "resolve_discussion"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesProject ID or path (e.g., "group/project" or "123")
resolvedNoWhether to resolve (true) or unresolve (false)
discussionIdYesDiscussion ID to resolve
mergeRequestIidYesMerge request internal ID (iid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool, yet it discloses nothing beyond the name. It does not state that a write/permission scope is required, whether the operation is idempotent, what error results if the discussion ID is invalid, or what the response contains.

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?

A single short sentence with zero waste, and the core verb-resource pair is front-loaded. It reads as a fragment rather than a structured definition, but no wording is superfluous.

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?

For a 4-parameter mutation tool with no annotations and no output schema, the description is too thin: it omits permission requirements, side effects on the merge request's resolved state, and any indication of what is returned. The complete schema mitigates this only partially, since schema coverage addresses inputs, not behavior.

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 project, mergeRequestIid, discussionId, and the resolved boolean (default true) are already fully documented, and the baseline is 3. The description adds nothing about parameter meaning, but the schema already handles it adequately.

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 pair ('resolve or unresolve') and resource ('a discussion thread'), so the agent knows exactly what operation it performs. It does not distinguish itself from nearby siblings such as mark_discussions_as_fixed or remove_resolved_threads, leaving a small ambiguity gap.

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 note that this is the tool for toggling resolution state (as opposed to reading threads or marking them fixed), and no prerequisites such as required permissions or merged-state constraints. The agent must infer all of this.

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