Skip to main content
Glama

push_code_review_comments

Pushes code review comments to GitLab merge requests, including inline line-level comments and file-level feedback.

Instructions

将代码审查评论推送到GitLab MR,支持行内评论和文件级评论

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": {
      "projectPath": "<projectPath>",
      "mergeRequestIid": "<mergeRequestIid>",
      "reviewComments": "<reviewComments>"
    },
    "name": "push_code_review_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectPathYes项目路径,格式: owner/repo
commentStyleNo评论风格detailed
reviewCommentsYes代码审查评论列表
summaryCommentNo总体审查评论(可选)
mergeRequestIidYes合并请求的内部ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it does not state that this writes to an external system, whether re-running duplicates existing comments, required permissions, or error behavior. The only behavioral content is the inline/file-level distinction, which is helpful but thin for a mutation tool.

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 no filler, stating action and capability up front. It is efficient, though the terseness leaves no room for the prerequisite and side-effect context a write tool needs.

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 5-parameter external mutation with no annotations and no output schema, the description omits what is returned, whether the push is atomic, and what permissions or MR state are required. The rich schema covers inputs, but the operational picture an agent needs before calling is incomplete.

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 each parameter is already documented. The description adds a small amount by linking inline comments to the optional lineNumber and file-level comments to its absence, but does not explain commentStyle tiers or how summaryComment interacts with reviewComments.

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?

Names a concrete verb-plus-resource action: pushing code review comments to a GitLab MR, and distinguishes two modes (inline vs. file-level). It is clearly not a read tool like get_merge_request_changes, though it never explicitly contrasts itself with siblings.

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 only implied: an agent can infer this is the write-back step that follows analysis of an MR. There is no statement of prerequisites (GitLab auth/project access), sequencing relative to analyze_mr_changes, or conditions under which inline comments should be preferred over file-level ones.

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