Skip to main content
Glama

Unapprove merge request

gitlab_unapprove_merge_request
Destructive

Remove an approval from a specific GitLab merge request by providing its project ID and merge request IID, so you can correct or revoke a prior approval status.

Instructions

Unapprove a specific merge request.

Args: **kwargs: Additional parameters for the request (e.g., project_id, merge_request_iid).

Returns: Response: A wrapper containing the original response (no data for successful operation).

Raises: MissingParameterError: If the project_id or merge_request_iid is missing. ParameterError: If invalid parameters are provided.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_unapprove_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
nameNo
group_idNo
user_idsNo
group_idsNo
rule_typeNo
project_idNo
report_typeNo
approval_refNoOwner approval receipt for this operation; required by every owner-approved tool.
approval_rule_idNo
merge_request_iidNo
approvals_requiredNo
protected_branch_idsNo
applies_to_all_protected_branchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv27.3.26
    • addedInput schema / properties / approval_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Owner approval receipt for this operation; required by every owner-approved tool."
      +}
  2. First observedv27.3.13

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is known. The description adds only that the call returns an empty wrapper on success and names two error types, but it does not say what state is destroyed (the caller's approval token), who may revoke, or why a repeat call is not idempotent. Useful but thin beyond the annotations.

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

Conciseness2/5

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

The opening sentence is correctly front-loaded, but the following Args/Returns/Raises block is auto-generated boilerplate: "**kwargs: Additional parameters for the request" conveys nothing and actively obscures the real parameter requirements. The space used by that line would be better spent naming the two identifying parameters directly.

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 destructive 14-parameter mutation with no output schema, the definition leaves the key requirement (an owner approval receipt, per the schema's approval_ref description) unmentioned, and does not specify which parameters identify the approval being revoked. It does tell the agent the call returns no data and what errors to expect, which keeps it at minimum viable rather than inadequate.

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

Parameters2/5

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

Schema description coverage is 7% across 14 parameters, so the schema does almost no work. The description only names project_id and merge_request_iid as the kwargs that trigger MissingParameterError, and is silent on approval_ref, approval_rule_id, group_id, user_ids and the other eight fields, so an agent cannot tell which apply to this operation.

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?

"Unapprove a specific merge request" gives a specific verb and resource, and the title reinforces it. It distinguishes itself from generic merge-request tools only by the verb; it never names the counterpart gitlab_approve_merge_request or clarifies how the two differ in effect.

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 mention of preconditions (an existing approval, appropriate role), no statement of when to prefer this over gitlab_approve_merge_request or API-level alternatives, and no note about what happens if no approval exists. Only error conditions are listed.

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