Skip to main content
Glama

Branch Protection Status

branch_protection_status
Read-onlyIdempotent

Inspect branch protection status and repository rulesets for any branch, revealing required reviews, status checks, and security settings with a clear protected/unprotected conclusion.

Instructions

Read classic branch protection AND repository rulesets for a branch (defaults to the repo's default branch).

Required token scope: repo (or public_repo for public-only repos) with admin/read access to branch protection.

Args:

  • owner, repo: Repository coordinates.

  • branch: Optional. Falls back to the repository's default branch.

Returns: Required reviews / status checks / force-push / deletion settings from both classic protection and rulesets, findings by severity, and a protected/partially_protected/unprotected conclusion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoGitHub repo. Falls back to GITHUB_REPO.
ownerNoGitHub owner. Falls back to GITHUB_OWNER.
branchNoBranch to inspect. Falls back to the repository's default branch.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
branchYes
errorsYes
findingsYes
conclusionYes
enforceAdminsYes
allowDeletionsYes
allowForcePushesYes
rulesetRuleTypesYes
requireCodeOwnerReviewsYes
classicProtectionEnabledYes
requiredStatusCheckContextsYes
requiredApprovingReviewCountYes
requiredConversationResolutionYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds behavioral context beyond annotations: it requires 'repo' or 'public_repo' token scope with admin/read access, and details the type of information returned (required reviews, status checks, etc.). No contradiction with annotations.

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?

The description is well-structured with a title, clear prose, and an Args list. It is concise enough but could be slightly more streamlined; however, it avoids redundancy and is easy to scan.

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

Completeness4/5

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

With an output schema present, the description does not need to detail return values fully. It provides a high-level summary of what is returned and covers key aspects: purpose, token scope, parameter defaults. It is complete for the tool's complexity.

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%, so the baseline is 3. The description adds slight extra context for parameters (e.g., 'Falls back to GITHUB_REPO' for owner/repo, and 'Falls back to the repository's default branch' for branch), which is useful but not substantial beyond the schema.

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 'Read classic branch protection AND repository rulesets for a branch', specifying the verb (Read) and the resource (branch protection and rulesets). It uniquely identifies the tool's purpose among siblings, which are higher-level workflow tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use the tool (to read branch protection defaults) and notes fallback behavior for the branch parameter. However, it does not explicitly state when not to use it or compare with alternatives, but the sibling tools are distinct enough to avoid confusion.

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/SakuraCianna/agentic-sdlc-mcp'

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