Skip to main content
Glama

Approve Merge Request

gitlab_approve_merge_request

Approve a GitLab merge request by IID, optionally scoped to a project, to unblock code review and merge workflows.

Instructions

Approve a merge request.

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": {
      "merge_request_iid": "<merge_request_iid>"
    },
    "name": "gitlab_approve_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaNo
project_idNo
approval_passwordNo
merge_request_iidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.0
    • removedInput schema / properties / approval_password / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / approval_password / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / sha / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / sha / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds nothing beyond that. It does not explain what an approval does to MR state, whether it can be repeated, or what happens when approval rules/passwords are required — meaningful gaps for a non-idempotent mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, so nothing is wasted, but it is under-specified rather than well-structured; there is no front-loaded detail worth having.

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 write operation with four parameters, zero schema coverage, and no output schema, the description should carry the burden of explaining parameters and effects. It supplies none of that, leaving the definition inadequate for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, and the description compensates for none of them. In particular sha (commit-pinning) and approval_password are non-obvious and undocumented, leaving the agent to call blind on optional parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence 'Approve a merge request' simply restates the tool title and name with no additional scope, target detail, or differentiation from siblings such as gitlab_unapprove_merge_request or gitlab_merge_merge_request.

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 prerequisites, and no mention of alternatives such as unapprove or merge. The agent must infer from the name alone that this records an approval rather than merging the request.

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

Deploy Server

Other Tools