Skip to main content
Glama
pblarismendi

mcp-github-server

by pblarismendi

protect_branch

Require pull request reviews and approvals to protect a branch from direct pushes, with options to enforce on admins and restrict deletions or force pushes.

Instructions

Protege una rama del repositorio. Requiere PRs para mergear y puede requerir aprobaciones.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesNombre del repositorio
ownerYesPropietario del repositorio
branchYesNombre de la rama a proteger (ej: 'main')
require_prNoRequerir PR antes de mergear
enforce_adminsNoAplicar protección también a administradores
allow_deletionsNoPermitir eliminar la rama
allow_force_pushesNoPermitir force pushes
required_approvalsNoNúmero de aprobaciones requeridas (default: 1)
dismiss_stale_reviewsNoDescartar aprobaciones obsoletas cuando se agregan nuevos commits
require_code_owner_reviewsNoRequerir revisión de code owners
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only mentions PR enforcement and approvals but fails to disclose that this modifies repository settings, may override existing protections, requires write permissions, or has any side effects.

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

Conciseness5/5

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

Two concise sentences, front-loaded with the main purpose. Every word earns its place with no redundancy.

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?

With 10 parameters, no annotations, and no output schema, the description is too brief. It doesn't explain that the tool configures multiple branch protection settings, whether it replaces existing rules, or what the result of a successful call looks like.

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 description coverage is 100%, so all parameters are documented. The description adds minimal extra meaning beyond referencing the PR requirement, but it doesn't add context about parameters like enforce_admins, allow_deletions, or required_approvals.

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 clearly states the tool protects a branch and requires PRs to merge, which is specific and distinguishes it from sibling search/PR tools. However, it could be more explicit about configuring comprehensive branch protection rules, not just PR requirements.

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: use this when you want to require pull requests and approvals before merging. However, there is no explicit when-to-use guidance, prerequisites (like admin permissions), or 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/pblarismendi/mcp-github-server'

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