Skip to main content
Glama

github_list_branches

Lists branches in a GitHub repository using owner and repository names, with pagination for read-only branch browsing.

Instructions

列出仓库分支(只读)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "github_list_branches"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
repoYes仓库名
ownerYes仓库所有者(用户或组织)
per_pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it only contributes "(只读)" / read-only. It says nothing about pagination defaults, rate limits, authentication needs, or what the response contains for a tool with 4 parameters.

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?

It is a single short phrase with zero filler and the read-only qualifier front-loaded, but its brevity verges on under-specification rather than true conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only listing tool with no output schema, the description is arguably sufficient at a minimum-viable level, but it leaves pagination semantics and return shape unexplained, which matters given the undocumented page parameters.

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 only 50%: owner and repo are documented in the schema, while page and per_page are undocumented in both schema and description. The description adds no meaning beyond what the schema provides and does not compensate for the pagination gap.

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 states a specific verb and resource ("列出仓库分支" – list repository branches), which distinguishes it from siblings such as github_list_tags or github_list_commits. It does not, however, explicitly name or contrast itself with any sibling.

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 read-only nature implies a safe lookup use case, but there is no explicit when-to-use advice, no mention of pagination or when to prefer an alternative listing tool. Usage is only implied by the verb.

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