Skip to main content
Glama

Unapprove merge request

gitlab_unapprove_merge_request

Unapprove a specific GitLab merge request using its project ID and IID. Revert an approval status when a change in review status is required.

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.

Input Schema

NameRequiredDescriptionDefault
dataNo
nameNo
group_idNo
user_idsNo
group_idsNo
rule_typeNo
project_idNo
report_typeNo
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. 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 declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=true; the description adds useful non-annotation context: success returns no data, and missing project_id/merge_request_iid raises MissingParameterError. However it omits the actual effect semantics (whose approval is revoked, permission requirements, behavior when no approval exists).

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?

Purpose is front-loaded in a single sentence, but the rest is generic docstring boilerplate ('**kwargs: Additional parameters for the request') that conveys little. The Args section wastes space on kwargs while omitting the parameters that actually matter.

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 13-parameter mutation tool with no output schema and 0% schema description coverage, the description leaves most parameters unexplained and does not state the required identifiers in a structured way (only via an exception clause). An agent cannot reliably construct a correct call from this.

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 0% across 13 parameters, yet the description only names two (project_id, merge_request_iid) as 'e.g.' kwargs. The other eleven parameters (approval_rule_id, rule_type, user_ids, group_id, etc.) are undocumented anywhere, so the agent cannot tell which are relevant to unapproving a merge request.

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 and resource ('Unapprove a specific merge request'), which is clearly distinguishable from the sibling gitlab_approve_merge_request. It does not clarify what 'unapprove' actually removes (the caller's own approval vs. an approval rule or another user's approval), which matters given siblings like gitlab_merge_request_level_approvals.

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?

No guidance on when to use this versus gitlab_approve_merge_request, gitlab_merge_request_level_approvals, or rule-based approval tools, and no stated prerequisites such as needing an existing approval to remove. The agent must infer the workflow entirely.

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