github_list_branches
Lists branches in a specified GitHub repository (owner/name) and returns each branch’s head commit SHA, with an optional result limit.
Instructions
List branches with their head commit sha.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "github_list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository as 'owner/name'. Defaults to GITHUB_MCP_DEFAULT_REPO when omitted. | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| returned | Yes | ||
| truncated | Yes |