Skip to main content
Glama

intelligent_mr_response

Analyze merge request feedback, implement code changes, resolve fixed discussion threads, and comment only when clarification is needed.

Instructions

Intelligently implement feedback from merge request discussions: analyze feedback, make code changes, resolve threads when fixed, and only comment when clarification is needed

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

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview actions without executing them
projectYesProject ID or path (e.g., "group/project" or "123")
responseStyleNoStyle of generated responsesconcise
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 load. It does disclose the important behavioral traits: this mutates code, resolves threads, and comments sparingly. However it omits authorization needs, scope (all threads vs. unresolved only), ordering, idempotency, and what happens on partial failure - significant gaps for a multi-step write operation.

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 front-loaded sentence with a colon-delimited step list; nothing is wasted. Minor cost is that the run-on enumeration packs four distinct behaviors into one clause without separation.

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?

Given a destructive multi-step mutation with no annotations and no output schema, the definition explains what will happen but not what the caller gets back or how failures/partial completions surface. Adequate to select the tool, thin for invoking it confidently.

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 all four parameters including dryRun and responseStyle are already documented. The description adds no parameter-level meaning beyond the schema, which is the expected baseline here.

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 uses a specific verb-and-resource pairing ('implement feedback from merge request discussions') and enumerates the concrete steps: analyze, change code, resolve threads, comment only when clarification is needed. That bundle distinguishes it from analyze_merge_request_discussions or resolve_discussion, 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 Guidelines3/5

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

Usage is implied by the workflow phrasing - call it when there is MR feedback to act on. There is no explicit when-not guidance, no mention of how it relates to the analysis-only siblings, and no prerequisites stated (e.g. that discussions should be read first).

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