Skip to main content
Glama

Get project level rule

gitlab_get_project_level_rule
Read-onlyIdempotent

Retrieves a project's merge request approval rule settings so you can inspect approval, reauthentication, and override options.

Instructions

Get details of a project-level merge request approval setting.

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

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

Raises: MissingParameterError: If the project_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.8/5.0
Behavior3/5

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

Annotations already declare the tool as read-only, idempotent, non-destructive, and open-world. The description adds useful behavioral details by naming two error conditions and describing the return as a wrapper around a MergeRequestRuleSettings model. It omits permission requirements and does not reconcile the optional project_id schema with the stated MissingParameterError.

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 Raises section earns its place. However, the generic 'Args: **kwargs: Additional parameters...' section is boilerplate and low-value, slightly weakening an otherwise short description.

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 tool with ten parameters, 0% schema description coverage, and no output schema, the description is too sparse. It names a return model and key error cases, but fails to explain the many boolean approval settings or document expected inputs sufficiently for reliable invocation.

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%, so the description must carry parameter meaning. It mentions only project_id despite the schema exposing ten parameters, and the many boolean approval settings are not explained at all. The generic '**kwargs' line adds little value beyond the schema's field names.

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 uses a specific verb and resource: 'Get details of a project-level merge request approval setting.' This clearly identifies the object being retrieved. It does not, however, distinguish this tool from closely named siblings such as gitlab_get_project_level_merge_request_rule or the plural list variant.

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 to use this tool versus siblings like gitlab_get_project_level_merge_request_rules or gitlab_update_project_level_rule. The only implied requirement is providing project_id via the MissingParameterError note, but no alternatives or exclusions are stated.

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