Skip to main content
Glama

github_mcp.list_recent_commits

Read-only

Lists recent commits from a repository's refreshed default-branch snapshot, returning SHA, author details, and subject lines for review without altering history.

Instructions

List recent commits from the refreshed default-branch snapshot. Returns redacted tab-separated lines containing SHA, author name, author email and subject; does not alter history.

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": {
      "repository": "<repository>"
    },
    "name": "github_mcp.list_recent_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of commits, 1–100; default 20.
repositoryYesAllowlisted owner/repo identifier.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.2
    • addedInput schema / properties / limit / description
      Added value: +"Number of commits, 1–100; default 20."
    • addedInput schema / properties / repository / description
      Added value: +"Allowlisted owner/repo identifier."
  2. First observedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and the description usefully adds the return shape (redacted tab-separated lines of SHA, author name, author email, subject). The 'does not alter history' clause largely restates readOnlyHint, but the redaction and format disclosure are genuine additions.

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?

Two sentences, no filler, with the source and output shape front-loaded. Slightly redundant in restating immutability already covered by annotations, but overall tight.

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

Completeness4/5

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

With an output schema present, the description need not explain return values in depth, and annotations cover the safety profile; the added note about redaction closes the main remaining gap. Only the lack of guidance on choosing this over sibling read tools is left open.

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% and both parameters are documented in the schema (limit 1-100 default 20, allowlisted owner/repo). The description only implies recency via 'recent commits' and adds no clarification about the limit or the allowlist constraint, so it is baseline.

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 gives a specific verb and resource ('List recent commits') plus the data source ('the refreshed default-branch snapshot'), which is more precise than the tool name alone. It does not explicitly name a sibling it competes with (e.g. get_diff or list_branches), so it stops short of 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 Guidelines3/5

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

Usage is only implied: 'recent commits from the refreshed default-branch snapshot' hints at a quick, read-only inspection of the default branch, but there is no explicit when-to-use guidance, no exclusions, and no pointer to an alternative for other branches or deeper history.

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