Skip to main content
Glama

github_get_commit

Read details of a single GitHub commit by owner, repo, and optional SHA, branch, or tag. Use it to inspect commit metadata without modifying the repository.

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

Input Schema

NameRequiredDescriptionDefault
refNoSHA / 分支 / 标签
repoYes仓库名
ownerYes仓库所有者(用户或组织)

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 provided, so the description carries the full behavioral burden. It does disclose that the operation is read-only (只读), which is the single most useful trait, but it says nothing about behavior when the ref is missing or ambiguous, private-repo auth requirements, or what data is returned.

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?

One short, front-loaded clause with zero filler; purpose and read-only status land immediately. It is efficient, though the extreme brevity leaves no room for the guidance this tool needs.

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 three-parameter read tool with full schema coverage and no output schema, purpose plus read-only status is the minimum viable. Missing are the selection criteria against the list/search siblings and error behavior for an unresolved ref, which a mutation-free lookup tool should still mention.

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 coverage is 100%: the schema already documents owner, repo, and ref (SHA / branch / tag). The description adds no meaning beyond that, so the baseline of 3 applies.

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: read a single commit's details. The word 单个 (single) implicitly distinguishes it from the github_list_commits sibling, so an agent can tell it retrieves one commit rather than a list. It does not name alternatives explicitly, which keeps it below a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this tool over siblings such as github_list_commits or github_get_pull, nor any prerequisites (e.g. needing a SHA or branch). The only usage signal is the implicit read-only framing, leaving the agent to infer the selection criteria.

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