Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

get_commit

Retrieve details for a specific GitHub commit using repository owner, repo name, and a commit SHA or branch reference.

Instructions

Get details about a specific commit

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>",
      "ref": "<ref>"
    },
    "name": "get_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesCommit SHA or branch name
repoYesRepository name
ownerYesRepository owner

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 provides almost nothing: it does not disclose whether private-repo access is required, how errors surface for an invalid ref, or what the response contains. 'Specific commit' hints that exactly one commit is returned, but nothing beyond that.

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 short sentence with no filler, front-loaded with the verb and resource. It is efficient, though its brevity 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?

For a three-parameter read tool with full schema coverage and no output schema, the essentials for invocation are present via the schema. However, with no annotations and no output schema, the description should say more about what is returned or what ref accepts semantically, leaving a meaningful gap.

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 description coverage is 100%, and the schema already explains owner, repo, and that ref is a commit SHA or branch name. The description adds no syntax, format, or edge-case meaning (e.g., what happens with a short SHA or ambiguous branch) beyond what the schema documents, so baseline 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 + resource ('Get details about a specific commit'), making clear this is a single-commit read rather than a listing. It does not explicitly differentiate itself from siblings like list_commits or compare_commits, and 'details' is left unelaborated.

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 when-to-use guidance, no exclusions, and no mention of alternatives such as list_commits for browsing history or compare_commits for diffs. The agent must infer the appropriate call context from the tool name alone.

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