Skip to main content
Glama

Get group level rule

gitlab_get_group_level_rule
Read-onlyIdempotent

Retrieves details of a group-level merge request approval setting from GitLab, including author, committer, and override approval options.

Instructions

Get details of 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

B3.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior. The description adds useful behavioral detail beyond annotations: the group_id prerequisite and error behavior, plus the fact that the response wraps both the original response and a MergeRequestRuleSettings model.

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 purpose is front-loaded and the description is short, but the boilerplate Args/Returns/Raises structure includes an inaccurate '**kwargs' framing despite the schema defining ten named parameters. That weakens efficiency and clarity.

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 tool with no schema descriptions and no output schema, the description is incomplete. It explains return wrapping and error cases, but leaves most parameter meanings and the roles of the boolean approval settings unclear.

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% and the tool has 10 parameters. The description mentions only group_id as an example, leaving project_id, data, api_parameters, and the seven boolean approval-related parameters unexplained; it therefore does not compensate for the schema's lack of parameter documentation.

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 description states a clear verb and resource: 'Get details of a group-level merge request approval setting.' The 'group-level' scope distinguishes it from project-level and merge-request-level siblings, though it does not explicitly name those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the group-level scope and the note that group_id is required (MissingParameterError if missing). However, there is no explicit guidance on when to choose this tool versus project-level or merge-request-level rule getters.

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