Skip to main content
Glama

github_get_branch

Retrieve detailed information about a specific branch in a GitHub repository by providing the owner, repository name, and branch name.

Instructions

Get detailed information about a specific branch.

Args: owner: Repository owner repo: Repository name branch: Branch name session_name: GitHub session to use

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
ownerYes
branchYes
session_nameNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

There are no annotations, so the description carries the transparency burden. The verb 'Get' implies a read-only operation, which is a clear behavioral trait. However, it does not disclose whether a session/authentication is required, potential errors (e.g., branch not found), or any additional side effects. It adds minimal value beyond the obvious.

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

Conciseness3/5

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

The description is short and front-loaded, which is good, but the 'Args:' block duplicates the schema information without adding new meaning. It is not maximally concise because it repeats what the input schema already defines, rather than focusing only on unique clarifications.

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?

For a simple read operation with an output schema available, the description covers the essential purpose and identifies the resource. It does not explain the session_name parameter's meaning or when it is needed, but the required parameters (owner, repo, branch) are self-explanatory in the GitHub context, and the output schema covers return details.

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?

Schema description coverage is 0%, so the description must compensate for parameter meaning. It lists 'owner', 'repo', 'branch', and 'session_name' but only repeats the parameter names without adding any descriptions, defaults, or usage nuance. This fails to provide extra semantic value beyond the schema's raw names.

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 'Get detailed information about a specific branch' clearly states a specific verb ('Get') and resource ('branch'), differentiating it from sibling tools like list_branches or create_branch. It names the target resource precisely without ambiguity.

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 usage context is implied by the description: use when you need detailed info on a single branch rather than a list. However, it does not explicitly mention when to avoid it (e.g., when only a list is needed) or name alternative tools, so it falls at 'implied usage'.

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/Pawangunjkar/github-mcp'

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