Skip to main content
Glama

gluecron_get_branch_protection

Read-only

Read the branch-protection rule that applies to a branch (exact name or the glob that covers it): required checks, require_pr_run, required approvals, AI / human review, green gates, force-push / deletion, auto-merge; plus merge_train {on, batch_max, effective_batch_max, host_ceiling} — whether the merge train runs for the repository and how many armed PRs it tests together. Read-only. Returns {protected: false, merge_train} when no rule applies, else {protected: true, pattern, matched_by, required_checks, …, merge_train}.

Input Schema

NameRequiredDescriptionDefault
repoYesRepo name
ownerYesRepo owner — username or organisation slug
branchNoBranch name (default: the repo's default branch)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'Read-only.' It adds useful behavioral detail beyond the annotations by describing the return payload for both no-rule and matching-rule cases, including merge_train fields and the protected false/true distinction.

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 dense but front-loaded: it names the operation, lists relevant rule fields, explains merge_train, and states the return shapes. Every clause contributes useful information, though the field list could be more structurally organized for readability.

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?

For a three-parameter read-only tool with no output schema, the description provides the necessary return-value detail: it explains the protected false case with merge_train and the protected true case with pattern, matched_by, required_checks, and merge_train. This is sufficient for an agent to call and interpret the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents repo, owner, and branch. The description adds meaning beyond the schema by clarifying that the branch parameter accepts either an exact branch name or the glob that covers it, which is useful semantic guidance for selecting the right value.

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 states a specific verb and resource: read the branch-protection rule that applies to a branch. It specifies the scope (exact name or covering glob), enumerates the rule fields returned, and clearly distinguishes this read operation from the sibling set_branch_protection mutation.

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 by 'Read the branch-protection rule' and the read-only note, but the description does not explicitly say when to use this versus alternatives such as set_branch_protection or when not to use it. The context is clear enough for basic selection, but there are no explicit routing instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources