Skip to main content
Glama

analyze_merge_request_discussions

Analyzes merge request discussions to show thread resolution status and open questions, helping reviewers track unresolved feedback and needed follow-ups.

Instructions

Analyze merge request discussions for thread resolution status and open questions

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": "analyze_merge_request_discussions"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesProject ID or path (e.g., "group/project" or "123")
mergeRequestIidYesMerge request internal ID (iid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'Analyze' implies a non-destructive read and it discloses the analytical dimensions (resolution status, open questions), but it never states read-only status, whether results are aggregated or per-thread, or any size/rate considerations for a discussion-heavy MR.

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?

A single front-loaded sentence with no filler; the outcome ('thread resolution status and open questions') is stated immediately after the action.

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 two-parameter read tool with no output schema and no annotations, the description is adequate but thin: it says what is analyzed yet leaves the return shape, aggregation level, and sibling selection ambiguous. Nothing an agent needs is outright wrong, but key context is missing.

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 and mergeRequestIid are already fully documented in the schema. The description adds no additional parameter meaning (e.g., whether an iid vs global id is accepted, or behavior for empty discussions), so the 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 (analyze) and resource (merge request discussions) plus the two things it reports on: thread resolution status and open questions. This differentiates it from plain retrieval siblings like get_merge_request_discussions, though no sibling is named explicitly.

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 explicit when-to-use or when-not-to-use guidance. The contrast with get_merge_request_discussions or get_merge_request_thread_summary is only implied by the word 'analyze' — the agent must infer that this is the summarized/aggregated variant rather than a raw fetch.

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