Skip to main content
Glama

Delete project level rule

gitlab_delete_project_level_rule
DestructiveIdempotent

Delete a project-level merge request approval rule by specifying the project ID and approval rule ID, removing it from the GitLab project configuration.

Instructions

Delete a project-level merge request approval rule.

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

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

Raises: MissingParameterError: If the project_id or approval_rule_id 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

B3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that by disclosing the error conditions (MissingParameterError for missing project_id/approval_rule_id, ParameterError for invalid params) and the empty return payload.

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?

The lead sentence is crisp and front-loaded, but the docstring-style Args/Returns/Raises block is verbose relative to the information delivered, and describing the parameter list as '**kwargs' is confusing rather than efficient.

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 destructive tool with 13 undocumented parameters and no output schema, the description leaves major gaps: which parameters are actually required, what the many unused-looking fields do, and any confirmation/permission requirements. The error and return notes are helpful but insufficient.

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, and the description only references two of them (project_id, approval_rule_id) inside the Raises block. The other eleven fields (name, group_id, user_ids, rule_type, protected_branch_ids, etc.) are left entirely unexplained, and the '**kwargs' framing actively obscures the actual parameter surface.

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 first sentence names a specific verb (Delete) and a precise resource (project-level merge request approval rule), which separates it cleanly from siblings like gitlab_delete_project or gitlab_edit_project_level_rule. It lacks any explicit sibling routing, so it stops short of a 5.

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 guidance on when to use this versus alternatives such as gitlab_update_project_level_rule or the group-level equivalents, and no mention of prerequisites like Maintainer/Owner permissions or the fact that deletion is irreversible beyond what the annotation implies.

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