Skip to main content
Glama
revenant20
by revenant20

get_branch

Retrieve detailed branch information including last commit hash, message, author, and timestamps. Verify a branch exists before creating a merge request.

Instructions

Get detailed information about a specific branch by name, including the last commit hash, message, author, and timestamps. Use this before creating a merge request to verify the branch exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesProject owner alias
projectYesProject alias
branchNameYesBranch name
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses what the tool returns (detailed branch info, last commit details) and the verification purpose, implying that a non-existent branch will not be found. For a read-only tool, this is reasonably transparent, though it could mention error behavior or permissions.

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?

Two sentences with no fluff. The first sentence states the purpose and return content; the second gives a concrete use case. Every word earns its place.

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 tool is simple, has 3 well-documented parameters, and no output schema. The description covers the return payload and a practical use case, so it is sufficiently complete for an agent to select and invoke it correctly.

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 description coverage is 100%, so the baseline is 3. The description adds no parameter-specific meaning beyond what the schema already provides (owner, project, branchName). It only repeats the idea of 'by name', which matches branchName.

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 starts with a specific verb ('Get') and names the exact resource ('a specific branch by name'), followed by the key information included (last commit hash, message, author, timestamps). This clearly distinguishes it from sibling tools like list_branches or get_default_branch.

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 gives a concrete usage scenario ('Use this before creating a merge request to verify the branch exists'), which is clear contextual guidance. It does not explicitly exclude alternatives like list_branches, but the 'specific branch' phrasing implies that, so this is slightly above average but not fully explicit.

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/revenant20/gitflic-mcp'

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