Skip to main content
Glama
CainDez
by CainDez

gitee_create_branch_protection_rule

Create branch protection rules using wildcard patterns to enforce push and merge restrictions on matching branches.

Instructions

Create branch protection rule (wildcard)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner (user/org/enterprise path)
repoYesRepository path name
wildcardYesBranch pattern (e.g. feature/*)
new_wildcardNoRename wildcard
pusher_restrictionNoRestrict push: 0=off,1=admin,2=team
merger_restrictionNoRestrict merge: 0=off,1=admin,2=team
Behavior2/5

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

With no annotations provided, the description alone must disclose behavioral traits. It only says 'Create branch protection rule (wildcard)' without mentioning side effects, permissions required, or if the rule will be active immediately. The minimal description fails to inform the agent of important behavioral details.

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 description is very concise, consisting of a single sentence. While brevity is generally good, it lacks structure and important details, making it insufficient for an AI agent to fully understand the tool's purpose and use.

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?

No output schema is present, and the description does not explain what the tool returns upon success or how the created rule affects the repository. For a creation tool, this lack of contextual information is a significant gap.

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?

All 6 parameters have descriptions in the schema (100% coverage). The tool description adds no additional meaning beyond what the schema already provides, so it meets the baseline but does not enhance understanding.

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 'Create branch protection rule (wildcard)' which clearly identifies the action (create) and resource (branch protection rule). It distinguishes from siblings like update or delete. However, it does not differentiate from the similar tool gitee_protect_branch, which may cause confusion.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., update or delete branch protection rules). There is no mention of prerequisites or contexts where creation is appropriate.

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/CainDez/mcp-gitee'

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