Skip to main content
Glama

github_list_commits

Lists a GitHub repository's commit history read-only, with filters for SHA, file path, author, and date range to pinpoint changes.

Instructions

列出提交历史(只读,支持 sha/path/author/since/until 过滤)。

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_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaNo分支/标签/SHA,默认分支
pageNo
pathNo只看改动了这个文件的提交
repoYes仓库名
ownerYes仓库所有者(用户或组织)
sinceNoISO 时间
untilNo
authorNo
per_pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it does contribute the non-obvious fact that the operation is read-only. It says nothing about pagination behavior (page/per_page exist in the schema), result ordering, default time window, or rate limits, which are the traits an agent would need before calling a 9-parameter list endpoint.

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

Conciseness4/5

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

A single front-loaded clause with zero filler; the read-only and filter facts come first. It is efficient, though for a 9-parameter endpoint the terseness edges toward under-specification rather than crispness.

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?

Nine parameters, no annotations, and no output schema mean the description must do more of the work, and the pagination and ordering semantics are absent from both the description and (for page/per_page) the schema. It is adequate to identify the tool but not to invoke it confidently on large histories.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 56%, and the description does partially compensate by naming author and until, which have no descriptions in the schema, and by framing sha/path/since as filters rather than opaque fields. It leaves page, per_page, owner, and repo entirely to the schema, so the pagination contract remains undocumented anywhere.

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?

States a specific verb and resource ('列出提交历史') plus the supported filter axes, which is enough to separate it from github_get_commit or github_list_branches by name alone. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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 parenthetical '只读' plus the filter list implies when this tool is appropriate (browsing history, narrowing by file/author/time). There is no explicit when-not guidance and no pointer to github_get_commit for a single commit, so routing must be inferred from the tool names.

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