Skip to main content
Glama

Edit group level rule

gitlab_edit_group_level_rule
Idempotent

Modify group-level merge request approval settings in GitLab, such as author/committer approval, approval retention, and override permissions.

Instructions

Edit a group-level merge request approval setting.

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

Returns: Response: A wrapper containing the original response and a MergeRequestRuleSettings model.

Raises: MissingParameterError: If the group_id is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
dataNo
group_idNo
project_idNo
api_parametersNo
allow_author_approvalNo
allow_committer_approvalNo
retain_approvals_on_pushNo
selective_code_owner_removalsNo
require_reauthentication_to_approveNo
allow_overrides_to_approver_list_per_merge_requestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.5/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the description adds little. It does mention MissingParameterError and ParameterError, which is mildly useful, but it doesn't say what a partial edit does to unspecified booleans or what permission level is required.

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 definition is a raw docstring dump, including Args/Returns/Raises sections. Of these, only the Returns note about the MergeRequestRuleSettings model earns its place. The '**kwargs' line is wasted and inaccurate, and the purpose statement is not front-loaded with anything actionable.

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 10-parameter mutation tool with zero schema description coverage and no output schema, the description is far too thin. It omits which settings are editable and how to scope the request to a group versus a project, so an agent cannot confidently construct a call from the description alone.

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 10 parameters, so the description must do the explaining, and it doesn't. It mentions only group_id (in the Raises block) and a vague '**kwargs', leaving all six behavior-defining flags (allow_author_approval, retain_approvals_on_push, selective_code_owner_removals, require_reauthentication_to_approve, etc.) unexplained beyond their names. The '**kwargs' framing is also misleading, because group_id and the flags are explicit top-level properties.

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 states a specific verb and resource: 'Edit a group-level merge request approval setting.' The 'group-level' qualifier distinguishes it from sibling tools such as gitlab_edit_project_level_rule and gitlab_update_project_level_rule, though it doesn't name those siblings outright.

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?

The description gives no guidance on when this tool should be used instead of alternatives. It doesn't state prerequisites, for example admin or owner permissions, and doesn't mention the project-level or merge-request-level variants. An agent must infer all of that from the name alone.

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