get_recent_commits
List recent commits of one repository with SHA, author, date, and message, optionally filtering by days, author, or branch to answer what changed or who committed.
Instructions
List the most recent commits of ONE repository: SHA, author, date and message, optionally filtered by days back, author login, or branch. Use for 'what changed', 'who committed', 'last commit', or activity in the last N days. Do NOT use for repository metadata such as stars or language (use get_repository) or for pull requests (use list_pull_requests).
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": {
"repo": "<repo>"
},
"name": "get_recent_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository as 'owner/name' (e.g. 'octocat/hello-world'). A bare name like 'hello-world' is resolved against the authenticated user's account. | |
| limit | No | Maximum number of items to return (1-50). Totals are reported separately, so a small limit is fine when only a count is needed. | |
| author | No | Only commits by this GitHub login or email. | |
| branch | No | Branch or tag name. Omit for the default branch. | |
| since_days | No | Only commits from the last N days (1-365). Omit for the latest commits regardless of age. |