Skip to main content
Glama

Require code owner approvals single branch

gitlab_require_code_owner_approvals_single_branch

Enable required code owner approvals for a specified branch in a GitLab project, enforcing code owner review before changes merge.

Instructions

Require code owner approvals for a specific branch in a project.

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

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

Raises: MissingParameterError: If the project_id or branch is missing. ParameterError: If invalid parameters are provided.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_require_code_owner_approvals_single_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
pageNo
branchNo
per_pageNo
max_pagesNo
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv27.3.20
    • removedInput schema / properties / api_parameters
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • changedInput schema / properties / page / default
      Previous value: -1New value: +null
    • changedInput schema / properties / per_page / default
      Previous value: -100New value: +null
    • addedInput schema / properties / project_id / default
      Added value: +null
    • removedInput schema / required
      Removed value: -[
      -  "project_id"
      -]
  2. First observedv27.3.13

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already state readOnlyHint=false, idempotentHint=false, openWorldHint=true, and destructiveHint=false, so safety semantics are covered. The description adds only generic docstring boilerplate: a '**kwargs' catch-all and an error list that is useful but not specific. It never says whether this is a toggle, how to revert it, or what permissions are required, which matters for a non-idempotent mutation.

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 short and front-loaded, which is good. However, the Args/Returns/Raises block is auto-generated boilerplate, and the '**kwargs: Additional parameters for the request' line actively wastes space by describing nothing.

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 six-parameter mutation with 0% schema description coverage and no output schema, the description is thin. It omits permission requirements, the effect on existing branch protection settings, and the meaning of the pagination-like parameters, leaving an agent unable to call it confidently beyond the two obvious fields.

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 six parameters, so the description must carry the burden and it does not. It names only project_id and branch, and even that is buried inside a '**kwargs ... (e.g., project_id, branch)' gloss. The ref, page, per_page, and max_pages parameters are left completely unexplained, and the description also implies project_id and branch are required while the schema marks everything optional.

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 and resource: 'Require code owner approvals for a specific branch in a project.' That is enough to distinguish it from neighboring mutation tools such as gitlab_merge_request_level_approvals or gitlab_protect_branch, though the description never names those siblings explicitly to sharpen the distinction.

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 instead of the merge-request-level or project-level approval tools, nor on prerequisites such as maintainer permissions. The only usage-adjacent content is the Raises block, which describes failure modes rather than selection criteria.

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