Skip to main content
Glama

get_branch_protection

Retrieve the branch protection configuration for a repository branch. Returns a 404 status if the branch is unprotected, enabling verification of protection rules.

Instructions

Get the branch-protection configuration for a branch (404 -> unprotected).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
ownerYes
branchNomain
Behavior2/5

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

The only behavioral trait disclosed is the 404 response meaning unprotected branch. No annotations are present, so the description carries the burden. It fails to mention read-only nature, permission requirements, or potential errors like missing branch vs no protection (both 404). Significant gaps remain.

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 extremely concise with a single sentence and a parenthetical note. No superfluous content; information is front-loaded and immediately actionable.

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?

Given no output schema and no parameter descriptions, the description is insufficient for an agent to fully understand the tool's behavior. It lacks explanation of return structure, error handling beyond 404, and usage context. With 3 parameters and minimal guidance, completeness is low.

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?

The input schema has no descriptions (0% coverage). The description does not clarify parameters beyond their names, which are self-explanatory (owner, repo, branch). The default for branch is already in the schema, so no added value. Agents need more context on valid values or constraints.

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 verb 'Get' and the resource 'branch-protection configuration for a branch'. The parenthetical clarification (404 -> unprotected) adds useful context. However, it slightly overlaps with the return value interpretation rather than purely the action, and could be more specific about the configuration details.

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?

The description implies usage for reading branch protection but does not explicitly state when to use this tool versus alternatives like set_branch_protection. No exclusions or prerequisites are mentioned, leaving the agent to infer from sibling tool names.

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/mholzinger/ghe-mcp-gateway'

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