Skip to main content
Glama

Branch Protection Status

branch_protection_status
Read-onlyIdempotent

Check branch protection status and ruleset compliance for any branch, identifying required reviews, status checks, and security gaps to verify protection completeness.

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, verification gaps, and a protected/partially_protected/unprotected/unknown 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
trustBoundaryNo
allowDeletionsYes
allowForcePushesYes
rulesetRuleTypesYes
rulesetsVerifiedYes
verificationGapsYes
requireCodeOwnerReviewsYes
classicProtectionEnabledYes
classicProtectionVerifiedYes
requiredStatusCheckContextsYes
requiredApprovingReviewCountYes
requiredConversationResolutionYes
Behavior4/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true. The description adds valuable context beyond annotations: required token scope, specific return fields (reviews, status checks, force-push settings), and conclusion categories. This transparency helps the agent understand the tool's behavior and requirements.

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?

The description is concise, structured with paragraphs and bullet points, and front-loaded with the core purpose. Every sentence adds value with no redundancy or fluff.

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

Completeness5/5

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

The description covers the tool's function, fallback behavior, token requirements, return value contents, and conclusion categories. With an output schema present and annotations covering safety, the description is complete for an agent to correctly invoke the tool.

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?

Input schema descriptions already fully document all three parameters (100% coverage). The tool description merely restates the parameter names without adding new meaning. Baseline score of 3 is appropriate given the schema does the heavy lifting.

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 tool reads classic branch protection and repository rulesets for a branch, defaulting to the repository's default branch. The verb 'Read' and specific resources ('classic branch protection AND repository rulesets') make the purpose precise and distinguishable from siblings.

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 compared to siblings. The description lacks explicit directives on when to choose this tool over alternatives, such as other tools in the sibling list.

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