Skip to main content
Glama

create_mr_approval_rule

Creates a merge request approval rule for a project, specifying required approvers and approval count. Run as a dry run by default to preview before applying.

Instructions

Create a project-level MR approval rule. dry_run=true by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID
nameYesRule name
approvals_requiredYesNumber of approvals required
rule_typeNoRule type. Default: regular.
user_idsNoUser IDs who can approve
group_idsNoGroup IDs whose members can approve
protected_branch_idsNoProtected branch IDs this rule applies to (default: all)
applies_to_all_protected_branchesNoApply to every protected branch
dry_runNoDry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation.
Behavior4/5

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

Annotations indicate mutation (readOnlyHint false). Description adds key behavioral trait: dry_run=true by default, which is not in schema. Does not mention permissions or side effects, but this is sufficient for a tool with clear mutation intent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loads the key action and default behavior. Efficient but could be slightly expanded without harming conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite 9 parameters and no output schema, the description is very brief. It does not explain the two-step process of dry_run then actual creation, nor the purpose of approval rules. Schema covers param details, but overall context is slightly lacking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed descriptions for all 9 parameters. The description adds no new meaning beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Create' and resource 'project-level MR approval rule', distinguishing it from siblings like update, delete, list. Scope is explicit.

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?

The description notes dry_run default but does not provide explicit guidance on when to create vs update, or when to set dry_run to false. Sibling tools exist but no alternatives mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wanadev/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server