Skip to main content
Glama

list_branches

Retrieve available branches from a Gitopia repository to identify targets for cloning or pull requests. Provide repository owner and name to get branch names and SHAs.

Instructions

Use this when you need to discover branches before cloning or creating a PR. Returns a JSON array of branch objects with name and SHA. Requires 'owner' and 'name'. Returns up to 100 branches. See also: get_repo, create_pull_request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
nameYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and successfully discloses the return format (JSON array with name/SHA) and operational limits ('up to 100 branches'). Could mention error cases or pagination behavior.

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?

Five sentences efficiently structured: use case → return format → parameters → limits → related tools. No redundant information; every clause provides distinct value.

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?

Appropriately complete for a 2-parameter read operation: explains return values (compensating for missing output schema), documents the result limit, and provides workflow context. Missing only explicit parameter semantics.

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 coverage is 0% for both parameters, but the description only states they are required ('Requires owner and name') without clarifying these refer to the repository owner and repository name, leaving semantic ambiguity given the tool lists branches.

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 identifies the tool retrieves branch information ('discover branches', 'Returns a JSON array of branch objects'), distinguishing it from sibling creation tools like 'create_feature_branch' by specifying it returns name and SHA data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Excellent explicit guidance: states exact workflow context ('before cloning or creating a PR') and explicitly names related tools ('See also: get_repo, create_pull_request') to guide selection between alternatives.

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/gitopia/gitopia-mcp-server'

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